HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: compiling shared libraries question
Operating System - HP-UX
1827808
Members
13671
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-25-2004 06:50 AM
05-25-2004 06:50 AM
compiling shared libraries question
Have a rp3440 machine up and running and are busy porting our software to it. I have run into a problem when trying to build a shared library. Here is the output of the build process - which seems to run just fine:
ld -b -o libz.sl.1.1.3 adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o +h zlib.dll
ld: (Warning) At least one PA 2.0 object file (adler32.o) was detected. The linked output may not run on a PA 1.x system.
rm -f libz.sl libz.sl.1
ln -s libz.sl.1.1.3 libz.sl
ln -s libz.sl.1.1.3 libz.sl.1
cp libz.sl /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll
chmod 777 /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll
The last two lines copy the library to our directory and sets it to be world executable/writeable/readable ...
When I try to use it from within our system, I get this message:
/usr/lib/pa20_64/dld.sl: '/home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll' is not a valid load module: Bad magic number
When looking at the file using the UNIX file command, I get:
file /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll
/home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll: PA-RISC2.0 shared library -not stripped
Which looks all right to me. Anyone knows how I can get around this? Thanks in advance.
ld -b -o libz.sl.1.1.3 adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o +h zlib.dll
ld: (Warning) At least one PA 2.0 object file (adler32.o) was detected. The linked output may not run on a PA 1.x system.
rm -f libz.sl libz.sl.1
ln -s libz.sl.1.1.3 libz.sl
ln -s libz.sl.1.1.3 libz.sl.1
cp libz.sl /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll
chmod 777 /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll
The last two lines copy the library to our directory and sets it to be world executable/writeable/readable ...
When I try to use it from within our system, I get this message:
/usr/lib/pa20_64/dld.sl: '/home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll' is not a valid load module: Bad magic number
When looking at the file using the UNIX file command, I get:
file /home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll
/home/intergy/Code/Shared/Core/bin/ZipUtility/zlib.dll: PA-RISC2.0 shared library -not stripped
Which looks all right to me. Anyone knows how I can get around this? Thanks in advance.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 07:11 AM
05-25-2004 07:11 AM
Re: compiling shared libraries question
Almost sounds like a mis-match between 32 and 64 bit libraries....
Rgds...Geoff
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 07:27 AM
05-25-2004 07:27 AM
Re: compiling shared libraries question
It is definitely complaining about trying to load a 32-bit shared library from a 64-bit program.
You need to compile the files for the shared library with a "+DD64" or "+DA2.0W" option to create 64-bit code.
You need to compile the files for the shared library with a "+DD64" or "+DA2.0W" option to create 64-bit code.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP