- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to compile on 11.0 a "portable" binary wich us...
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
06-19-2002 06:53 AM
06-19-2002 06:53 AM
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory
Abort(coredump)
The /usr/lib/libc.2 only exists on 11.0 systems. How should I compile the binary ?
I'm using this:
cc +DAportable -Ae x_outedi.c
I also tried this option: -Wl,-E
Can you help ?
Regards,
Andre'
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 06:58 AM
06-19-2002 06:58 AM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
I know this because some of our code ran on 10.20 but not on 11.00 for this reason. the code was not aware of the NIS+/authentication stuff. I got it to work provided we were not using NIS+ (or setuid etc).
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 07:01 AM
06-19-2002 07:01 AM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
I'm afraid that you are not 'playing by the rules'. Your only completely safe method is to compile on the 10.20 box using the +DAportable option. That code will execute on
10.20,11.0, and 11.11. If you are able to get 11.0 code to run on 10.20 then it's 'working by accident'. You might try making a statically linked version but still the safe answer is to compile/link on 10.20.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 07:16 AM
06-19-2002 07:16 AM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 07:34 AM
06-19-2002 07:34 AM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2002 09:08 AM
06-19-2002 09:08 AM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
# include
# include
# include
how do I specify the libraries ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 10:53 PM
06-24-2002 10:53 PM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
there is only one solution for your problem:
installing everything again!
The /stand filesystem *needs* contignous allocation of space *and* it needs to be put at a special place on the disk, so you can't simply recreate it! As you told us, this is a new installation anyway, just do it again.
Sorry for the bad news...
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:09 PM
06-24-2002 11:09 PM
Re: How to compile on 11.0 a "portable" binary wich uses /usr/lib/libc.2
Hi Andre
The last entry made by Peter must have been
ment for some other problem, so ignore it.
But as this call came to the top I might just
as well give it a comment.
What you are trying to do is not supported
by HP. It is not supported to compile/link
on one HP-UX release and run the program on
an older version.
So you have two options:
1. Have the compiler on hp-ux 11.00 and
hp-ux 10.20
2. Compile on 10.20 and run the program
on 11.00.
This will only work if your program
is a socalled "well-behaved" program.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 06:20 AM
07-10-2002 06:20 AM
SolutionIf you compile an app on win2K, it will NOT run in windows95. Lib's are different that the program is linked to. This is NOT because of the compiler, but because of the system. Hence, no matter what arguments you give to the compiler certain system calls just dont work.
Same with HP-UX11 and 10.20. HP-UX 11 has updated libraries, including now using libc.2 instead of libc.1 as in 10.20.
Since libc.2 is backwards compatable, you can compile code against libc.1 and it will work with libc.2, but NOT the other way around.
Solution: move your compoiler license to a 10.20 box to compile your code untill all of your systems are running 11.X
Regards,
Shannon