- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- migrating C code from hp11 32-bit to hp11.11 64-bi...
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
Discussions
Discussions
Forums
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
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
тАО08-01-2006 10:54 PM
тАО08-01-2006 10:54 PM
We are currently in the process of compiling all our C code on HP-UX 11.11i 64-bit in preparation for a migration from our current HP-UX 11.00 32-bit system. We are getting a few errors around libraries not being there anymore.
e.g.
cc: informational note 404: LPATH is /usr/lib/pa20_64:/opt/langtools/lib/pa20_64
:
/usr/ccs/bin/ld /opt/langtools/lib/pa20_64/crt0.o cxdm200a.o -L/usr3/devel/lib/
-L/opt/informix/lib/esql -L/opt/informix/lib -lwb -lNoncomp -ltamm -ldbio_inf -l
wb -lNoncomp -lmap -ltamm -lwb -lNoncomp -ltblio -lcurses -lsql -lasf /opt/infor
mix/lib/netstub.a /usr/epic/lib/xcs.a /opt/informix/lib/esql/libixos.a -lsec -lg
en -lgls -los -lm -lm -lmalloc -lsgm -o /usr3/devel/bin/cxdm200a -u main -lc
cc: informational note 413: Entering Link editor.
ld: Can't find library for -lmalloc
Fatal error.
This also happens for -lnet.
The compiler is looking for libnet.a and libmalloc.a which reside in /usr/lib. However when compiling in 64-bit mode it doesn't look in /usr/lib for libraries but in /usr/lib/pa20_64 which I assume are all the 64bit libraries. but libnet.a and libmalloc.a are not in that path and copying the versions in /usr/lib to the new path doesn't work either. I assume that's because they are 32-bit and not recognised.
My questions are (eventually!):
1. Are there 64-bit versions of libnet.a and libmalloc.a?
2. If not, can I just take them out of the compilation and hope that the system works OK?
Please excuse my ignorance at what these libraries are for. Although I now support this system I didn't originally write the code so I have no idea what libnet.a and libmalloc.a do and whether we need them!
Thanks in anticipation!
Dave
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2006 01:01 PM
тАО08-02-2006 01:01 PM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2006 08:13 PM
тАО08-02-2006 08:13 PM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2006 04:40 AM
тАО08-03-2006 04:40 AM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
BTW, not to muddy the waters, and certainly not to delay a 64-bit port, but you do know that 11iv1 does still support 32-bit _applications_ right? Ditto for 11iv2 (11.23), which if your hardware supports it I would suggest as the migration goal over 11iv1 (11.11).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2006 06:23 AM
тАО08-03-2006 06:23 AM
Solution__emptylib | 0|extern|entry |$CODE$
While my memory of the really old libraries is foggy, I'd guess the __emptylib is a strong sign that the contents of these libraries long ago moved to some other library, such as libc, and that the empty libraries were kept around to maintain compatibility for those who had not updated their makefiles, etc.
If I were in your shoes, I would be very strongly tempted to just remove the '-lmalloc' and '-lnet' and move on.
By the way, even on 10.20, libmalloc.a has the '__emptylib' symbol in it, so this change was probably made long, long ago. I no longer have easy access to pre-10.20 systems to dig further back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2006 07:40 PM
тАО08-03-2006 07:40 PM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
Thanks again for your responses!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2006 06:29 AM
тАО08-04-2006 06:29 AM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2006 04:30 AM
тАО11-08-2006 04:30 AM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
Doug also answered my initial question about what whether I could just leave the libraries out. Cheers Doug!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2007 11:03 PM
тАО09-27-2007 11:03 PM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2007 06:58 PM
тАО09-28-2007 06:58 PM
Re: migrating C code from hp11 32-bit to hp11.11 64-bit
At one time it was a higher performance malloc but the one in libc was fixed to be faster.
(I'm not sure what was in libnet.)
>I assume that's because they are 32-bit and not recognised.
Exactly.