- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.00 aCC port
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-27-2000 07:46 AM
09-27-2000 07:46 AM
I'm attempting to port an application from HP/UX 10.20 using aCC to HP/UX 11.00 using aCC. I'm getting a runtime error :
/usr/lib/dld.sl: Unresolved symbol: __head (data) from /usr/lib/libC.2
/usr/lib/dld.sl: Unresolved module for symbol: _main (code)
I am using aCC to handle the link phase, anyone have a helpful hint? I'm hoping it's just a stupid user trick.
Thanks
Guy Mason
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2000 08:02 AM
09-27-2000 08:02 AM
Re: HPUX 11.00 aCC port
Hopefully a programmin guru maybe able to clear this up easily ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2000 08:12 AM
09-27-2000 08:12 AM
SolutionThis maybe a C++ library that's not supported for use with aC++ ?
If you do a "what /usr/lib/libC.sl" ?
do you find the following output:
$ what /usr/lib/libC.2
/usr/lib/libC.2:
HP C++ HPCPLUSPLUS A.12.10 (980319)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2002 04:33 PM
01-22-2002 04:33 PM
Re: HPUX 11.00 aCC port
Like Guy, I am trying to port an application from HP-UX 10.20 and 11.0 with CC to 11i with aCC. I am experiencing the same runtime error (only in libC.1 rather than libC.2). My gdb output looks like this:
/usr/lib/dld.sl: Unresolved symbol: __head (data) from /usr/lib/libC.1
/usr/lib/dld.sl: Unresolved module for symbol: _main (code)
Was this problem ever solved? If so, what was the solution?
Alex, /usr/lib/libC.1 is a real file on my system, not a symlink. (Though /usr/lib/libC.sl is a symlink to /usr/lib/libC.2) Additionally, my what output is as follows for libC.1 and libC.2
$what /usr/lib/libC.1
/usr/lib/libC.1:
HP C++ HPCPLUSPLUS A.10.46 (991208)
$what /usr/lib/libC.2
/usr/lib/libC.2:
HP C++ HPCPLUSPLUS A.12.15 (991217)
Would the version difference cause a problem? Thanks in advance,
Matthew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 01:03 PM
01-23-2002 01:03 PM
Re: HPUX 11.00 aCC port
Try doing an "ldd" on your executable
(/usr/ccs/bin/ldd), and look for what's shown about the version and location of libC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 09:36 AM
01-31-2002 09:36 AM
Re: HPUX 11.00 aCC port
Symbol __head is defined by /usr/lib/libcxx.a
That was part of the older C++ compiler which
installs under /opt/CC/
Actually when CC is installed, libcxx.a is
a symlink to /opt/CC/lib/libcxx.a
If this gets linked into the executable, and
you authorize re-export of symbols to dynamically loaded shared libraries (ld -E or
aCC -Wl,-E) then these libraries should see
symbol __head correctly
If you recompile *everything* so that no code
compiled with CC is left, you should no longer need the __head symbol and libcxx.a
File /usr/share/html/C/linker/linkhelp.html
contains the theory about ld -E.
hp# pwd
/usr/lib
hp# nm -r libcxx.a | grep __head | grep -v undef
libcxx.a:__head |1073741832|extern|data |$SHORTDATA$
Hope this helps,
Jean-Paul Marinier