- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- porting code from HP-UX 10.20 to HP-UX 11.00
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
12-03-2001 01:26 AM
12-03-2001 01:26 AM
porting code from HP-UX 10.20 to HP-UX 11.00
Now I have to port that to HP-UX 11.00
When I compiled the code using( aCC C.03.30) in HP-UX 11.00, I got the following kind of warnings
Warning 7004: Exact position unknown; near ["/usr/include/sys/_inttypes.h", line 58]. # Debug information may be corrupt: 2 unresolvable reference s (7004)
When I tried to run the executable created , I got the following error.
aCC runtime: ERROR: Unexpected use of shared libraries
aCC runtime: ERROR: Read aCC manpage, +A option
/usr/lib/libnss_dns.1
Abort(coredump)
Please suggest to solve this problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 05:02 AM
12-03-2001 05:02 AM
Re: porting code from HP-UX 10.20 to HP-UX 11.00
The warning on corrupt debug information can be ignored, although it may indicate a potential problem if you try to debug your code with gdb. I've seen this error on some of our code but its never caused any problems. I will get around to logging a call on it one day.
The other error you're getting regarding the "unexpected use of shared library" is probably because you're using gethostbyname() or a similar call while compiling with +A. These resolver calls use shl_load to load the libnss_*.sl libraries depending on your /etc/nsswitch.conf settings, therefore you cannot use +A. Try -Wl,-b,archive_shared instead.
For more information see the gethostbyname() man page or the HPUX 11.0 release notes in /usr/share/doc.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 05:13 AM
12-03-2001 05:13 AM
Re: porting code from HP-UX 10.20 to HP-UX 11.00
-Wl,-a,archive_shared
Cheers,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 07:27 AM
12-03-2001 07:27 AM
Re: porting code from HP-UX 10.20 to HP-UX 11.00
Try this patch,
http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=8c00463a0b9fd1270a?PATCH_PATH=/hp-ux_patches/s700_800/11.X/PHCO_23963&HW=s800&OS=11.00
You can also look for the compiler patches.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 08:40 AM
12-03-2001 08:40 AM
Re: porting code from HP-UX 10.20 to HP-UX 11.00
Thanks for your suggestions. I compiled the code with
-Wl,aarchived_shared option. I got the same kind of warnings.
But I could run my software without any problems.
Could you please suggest me how to get rid of those warnings?
Please explain why the same kind of problem did not occur with Hp-UX 10.20.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2001 08:53 AM
12-03-2001 08:53 AM
Re: porting code from HP-UX 10.20 to HP-UX 11.00
Try the latest aCC patches, and if that fails log a call with HP.
Regards,
Steve