- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Bad magic number for shared library: /usr/lib/...
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
тАО12-15-2010 10:27 AM
тАО12-15-2010 10:27 AM
Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/pa20_64/libc.2
/usr/lib/dld.sl: Exec format error
[HP ARIES32]: Core file for 32-bit PA-RISC application
[HP ARIES32]: /opt/java1.4/bin/javac saved to /usr/sap/XXX/DVEBMGS01/j2ee/cluster/server2/core.javac.
Thanks
Jags
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 10:46 AM
тАО12-15-2010 10:46 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
It appears that you have a 32-bit application attempting to invoke a 64-bit library.
What patch did you install and what command line options did you use to do so?
There are a large number of threads if you search for "Bad magic number for shared library".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 10:51 AM
тАО12-15-2010 10:51 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
Thanks for your quick response. My application is a 64 bit application and i am trying to install SAP Java Patch using SAP Software Deployment(SDM) tool. I have seen there are large number of threads on this but i could't find solution for my problem. I was able to do the same patch in a diffent SAP system and i compared LD_LIBRARY_PATH and SHLIB_PATH env variables for these systems and i dont see any difference in these varaibles.
Thanks
Jags
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 11:14 AM
тАО12-15-2010 11:14 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
I understand from the error message:
The Patch you are trying to install is 64bit but the SAP JAVA application is 32 Bit.
Similiar Link:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=979798
HTH,
Regards,
Surendar
Note: If you are the author of this question and wish to assign points to any of the answers, please login and assign points.
For more information on assigning points ,click here :
http://forums11.itrc.hp.com/service/forums/helptips.do
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 11:21 AM
тАО12-15-2010 11:21 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
here is the variables
SHLIB_PATH=/oracle/XXX/102_64/lib:/oracle/XXX/102_64/rdbms/lib:/oracle/XXX/102_64/lib:/oracle/XXX/102_64/lib:/usr/sap/XXX/SYS/exe/ru
n:/oracle/client/10x_64/instantclient
LD_LIBRARY_PATH=/oracle/XXX/102_64/lib:/usr/lib/pa20_64:/usr/lib:/etc/opt/resmon/lib:/opt/gnome/lib:/opt/wlm/lib
Do i need change anythihg in these variables
I have the same env variables in a diffenent system where i am able to install the patch successfully
Thanks
Jags
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 01:47 PM
тАО12-15-2010 01:47 PM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
As JRF said, you are trying to use a 64 bit libc with a 32 bit PA application.
>I compared LD_LIBRARY_PATH and SHLIB_PATH env variables for these systems and I don't see any difference in these variables.
Is java different? Any reason it is using a PA java? (Is that the common driver?)
>here are the variables
SHLIB_PATH=/oracle/XXX/102_64/lib:/oracle/XXX/102_64/rdbms/lib:/oracle/XXX/102_64/lib:/oracle/XXX/102_64/lib:/usr/sap/XXX/SYS/exe/run:/oracle/client/10x_64/instantclient
Remove ALL 64 bit paths from SHLIB_PATH. Only put them in LD_LIBRARY_PATH.
>LD_LIBRARY_PATH=/oracle/XXX/102_64/lib:/usr/lib/pa20_64:/usr/lib:/etc/opt/resmon/lib:/opt/gnome/lib:/opt/wlm/lib
>Do I need change anything in these variables?
Remove the default shlib paths:
/usr/lib/pa20_64:/usr/lib
>I have the same env variables in a different system where I am able to install the patch successfully
Does it have the same java? Is it an Integrity system too?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2010 01:38 AM
тАО12-16-2010 01:38 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
compare 'java -version'
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2010 06:07 AM
тАО12-16-2010 06:07 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
I compared the Java version and its same on both systems.
Jave is not diffent on these two systems.
Thanks
Jags
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2010 12:02 AM
тАО12-17-2010 12:02 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
You could always use tusc on both systems and see where it diverges.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2011 06:53 AM
тАО02-04-2011 06:53 AM
Re: Bad magic number for shared library: /usr/lib/pa20_64/libc.2 Error
I still facing this issue. AS all suggested i checked the java version and all the env variables and all look good.Couls some one assist me on how to fix this issue
thanks
Jaggu