- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/lib/dld.sl: Bad magic number for shared libra...
Operating System - HP-UX
1753879
Members
7435
Online
108809
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО09-28-2007 04:10 AM
тАО09-28-2007 04:10 AM
Hi all:
Got a A500-6x running 11.11. I downloaded and installed gcc (with all dependencies) from the UTAH porting center.
I compiled a nagios plugin on this system with no problems and it works.
I am taking this binary and copy it to an ia64 (rx4640) system running 11.23.
When I run the same plugin I get the following error (Here is the complete error message)
/usr/lib/dld.sl: Bad magic number for shared library: /usr/local/lib/libiconv.sl
/usr/lib/dld.sl: Exec format error
ARIES32: Core file for PA32 application saved to /usr/local/nagios/libexec/core.check_swap
Abort(coredump)
I did some searching and all I can find is from the following post.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147120
"file /usr/local/bin/gcc: PA-RISC2.0 shared executable dynamically linked" and "file /usr/local/lib/libiconv.sl: PA-RISC2.0 shared library -not stripped"
This is the result from the 11.11 system.
On the 11.23 system there is no gcc. "file /usr/local/lib/libiconv.sl: ELF-32 shared object file - IA64"
I am hesitant to move the libiconv.sl to the libiconv.so as stated in the previous post. This ia64 system is a TST/DEV running SG and a host of Oracle DBs and apps.
Any other ideas on working around this? Maybe a switch during the compile?
Many thanks!
Got a A500-6x running 11.11. I downloaded and installed gcc (with all dependencies) from the UTAH porting center.
I compiled a nagios plugin on this system with no problems and it works.
I am taking this binary and copy it to an ia64 (rx4640) system running 11.23.
When I run the same plugin I get the following error (Here is the complete error message)
/usr/lib/dld.sl: Bad magic number for shared library: /usr/local/lib/libiconv.sl
/usr/lib/dld.sl: Exec format error
ARIES32: Core file for PA32 application saved to /usr/local/nagios/libexec/core.check_swap
Abort(coredump)
I did some searching and all I can find is from the following post.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147120
"file /usr/local/bin/gcc: PA-RISC2.0 shared executable dynamically linked" and "file /usr/local/lib/libiconv.sl: PA-RISC2.0 shared library -not stripped"
This is the result from the 11.11 system.
On the 11.23 system there is no gcc. "file /usr/local/lib/libiconv.sl: ELF-32 shared object file - IA64"
I am hesitant to move the libiconv.sl to the libiconv.so as stated in the previous post. This ia64 system is a TST/DEV running SG and a host of Oracle DBs and apps.
Any other ideas on working around this? Maybe a switch during the compile?
Many thanks!
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2007 04:38 AM
тАО09-28-2007 04:38 AM
Solution
Hello Rick.
Check this link out.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542148
Check this link out.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542148
Knowledge is power.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2007 07:31 PM
тАО09-28-2007 07:31 PM
Re: /usr/lib/dld.sl: Bad magic number for shared library: /usr/local/lib/libiconv.sl
Fabian's link seems to give you the details.
But your real problem is that you didn't copy nagios and ALL of its shlibs to your IPF system. And at that step, look for collisions.
Ideally, an IPF shlib should NOT be in this path /usr/local/lib/libiconv.sl and NOT end in .so. I.e. it should be in /usr/local/lib/hpux32/libiconv.so.
If you don't dare change it, you must copy your shlibs in another directory and use SHLIB_PATH to point to that one.
>Maybe a switch during the compile?
It has nothing to do with the compiler. This is a linker/dld issue.
But your real problem is that you didn't copy nagios and ALL of its shlibs to your IPF system. And at that step, look for collisions.
Ideally, an IPF shlib should NOT be in this path /usr/local/lib/libiconv.sl and NOT end in .so. I.e. it should be in /usr/local/lib/hpux32/libiconv.so.
If you don't dare change it, you must copy your shlibs in another directory and use SHLIB_PATH to point to that one.
>Maybe a switch during the compile?
It has nothing to do with the compiler. This is a linker/dld issue.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP