- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: static library problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2001 07:11 AM
09-18-2001 07:11 AM
static library problem
When I run a statically built (archive) executable on HPUX 11.0 with aCC: HP ANSI C++ B3910B A.03.25 I see the following error message:
$ a.out aCC runtime: ERROR: Unexpected use of shared libraries
aCC runtime: ERROR: Read aCC manpage, +A option
/usr/lib/libnss_files.1 Abort(coredump)
The +A option is used during compile and it seems to make no difference i/ ensure a static archive executable.
please suggest me, how to create static library version with out above problem
Thanks
satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 09:55 AM
09-24-2001 09:55 AM
Re: static library problem
#0 0x5001d0 in kill ()
#1 0x50e6b8 in raise ()
#2 0x50958c in abort_C ()
#3 0x4f3568 in abort ()
#4 0x5150c4 in shl_load ()
#5 0x50b004 in SO_per_src_lookup ()
#6 0x4f6e58 in nss_get_backend_u ()
#7 0x4f7828 in nss_search ()
#8 0x4a837c in __gethostbyname_r ()
#9 0x4a84d0 in gethostbyname ()
#10 0x4516a8 in _X11TransSocketINETConnect ()
#11 0x4524a4 in _X11TransConnect ()
#12 0x44ce18 in _X11TransConnectDisplay ()
#13 0x432204 in XOpenDisplay ()
#14 0x3e4e64 in XtOpenDisplay ()
#15 0x3e505c in _XtAppInit ()
#16 0x3ee9dc in XtOpenApplication ()
By seeing the above trace, getHostbyName() internaly calls shl_load().
because of usage os shl_load() function. system throughs the error message
but why getHostbyName calls shl_load. Then How i can create the version by using A++(because aCC manual shows we can not use +A for shl_load call used any where)
is there any wrong with HP system. do we need any patch?
please respond to this, this is very critical to me.
satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 10:38 AM
09-24-2001 10:38 AM
Re: static library problem
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 11:30 AM
09-24-2001 11:30 AM
Re: static library problem
good to see your reply. as per ur suggestions. i tried following options.
-Wl,a archived_shared (it gave error during linking about the syntax).
I tried the following option
-Wl,-a,archive
it created the executable. it gives the following error during execution.
Error: Can't open display: XX100:0.0
even though DISPLAY env and xhost defined properly(i tested by invoking xclock)
thanks
satya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 11:42 AM
09-24-2001 11:42 AM
Re: static library problem
As for the display problem, what is tha application trying to do? Is the display that its trying to use your workstation/PC and what is the DISPLAY environment variable set to?
Also, just out of curiosity, what is this app if you don't mind me asking?
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 11:52 AM
09-24-2001 11:52 AM
Re: static library problem
I am working on SUN workstion and remote login to HP machine.
i used setenv DISPLAY HP_IP:0.0
in login xterm window.
and i gave xhost HP_IP in my xterm(SUN).
i tested by invoking the xterm and xclock .
Even if i am sitting in front of the HP machine and i am using same work station(executable lies on the same machine). it gave same error.
I am developing a GUI, which contains tree object and other common moti objects.
Thanks
Satya