- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bad magic number for shared library
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
10-26-2007 01:48 AM
10-26-2007 01:48 AM
bad magic number for shared library
SHLIB_PATH=/users/oracle/product/9.2.0/lib32:/users/oracle/product/9.2.0/lib:/opt/hpws/apache/php/lib/php/extensions:/opt/hpws/apache/lib:/opt/hpws/apache/lib/LDAP:/opt/hpws/apache/lib::/usr/local/lib
Below is chatr oci8.sl:
shared library
shared library dynamic path search:
SHLIB_PATH enabled second
embedded path enabled first /usr/local/lib
internal name:
oci8.sl
shared library list:
dynamic /opt/oracle/lib32/libclntsh.sl.9.0
dynamic /usr/lib/libc.2
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references enabled
Thanks for any suggestion.
Tammy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 05:00 AM
10-26-2007 05:00 AM
Re: bad magic number for shared library
Check these threads out for possible solutions.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1123737
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=542148
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147159
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1147120
Remember to award points for helpfull answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 05:32 AM
10-26-2007 05:32 AM
Re: bad magic number for shared library
2 of them can not be displayed. The other two do not help... I am using the sw bundle distrubed from HP. I did not compile any program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 07:04 AM
10-26-2007 07:04 AM
Re: bad magic number for shared library
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01020321-1
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00997428-1
It sound like a recompilation problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 07:27 AM
10-26-2007 07:27 AM
Re: bad magic number for shared library
Below is the export SHLIB_PATH.
export SHLIB_PATH=$ORACLE_HOME/lib32:$APACHE_PREFIX/php/lib/php/extensions:$SHLI
B_PATH
Below are the error messages from error_log file. Looks the oci8.sl is using /users/oracle/product/9.2.0/lib/libclntsh.sl.9.0 instead in lib32 library.
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - Bad magic number for shared library: /users/oracle/product/9.2.0/lib/libclntsh.sl.9.0 in Unknown on line 0
[Fri Oct 26 09:40:49 2007] [notice] Apache/2.0.59 HP-UX_Apache-based_Web_Server (Unix) DAV/2 PHP/5.2.2 configured -- resuming normal operations
englb146 ...hpws/apache/logs #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 07:40 AM
10-26-2007 07:40 AM
Re: bad magic number for shared library
http://www.webservertalk.com/archive292-2004-9-392483.html
http://www.webservertalk.com/archive292-2005-7-1122087.html
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=543174&admit=-682735245+1193427416713+28353475
I dont know if i already sent this thread but it explains something about mixing 32bit a 64bit libraries as a reason for "bad magic number" libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 07:54 AM
10-26-2007 07:54 AM
Re: bad magic number for shared library
I do think the mix of 32 bit and 64 bit is the reason. Do you know where I can download the latest verion of hpuxwsApache that run on hpux 11.11 PA-RISC2 64 bit?
Tammy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 07:55 AM
10-26-2007 07:55 AM
Re: bad magic number for shared library
Dont know if this is related but have you checked file permissions, and group permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 08:02 AM
10-26-2007 08:02 AM
Re: bad magic number for shared library
englb146 ...product/9.2.0/lib # ll libclntsh*
lrwxr-xr-x 1 root sys 16 Feb 10 2006 libclntsh.sl -> libclntsh.sl.9.0
-rwxr-xr-x 1 oracle dba 13647280 Apr 1 2003 libclntsh.sl.9.0
englb146 ...product/9.2.0/lib # cd ../lib32
englb146 ...product/9.2.0/lib32 # ll | grep libclntsh
lrwxr-xr-x 1 oracle dba 16 Feb 10 2006 libclntsh.sl -> libclntsh.sl.9.0
lrwxrwxr-x 1 root sys 16 Oct 25 16:32 libclntsh.sl.8.0 -> libclntsh.sl.9.0
-rwxr-xr-x 1 oracle dba 16310272 Apr 1 2003 libclntsh.sl.9.0
englb146 ...product/9.2.0/lib32 #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 08:04 AM
10-26-2007 08:04 AM
Re: bad magic number for shared library
see if this helps.
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSSUITE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 08:24 AM
10-26-2007 08:24 AM
Re: bad magic number for shared library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 10:07 PM
10-26-2007 10:07 PM
Re: bad magic number for shared library
englb146 ...product/9.2.0/lib # ll libclntsh*
What does file(1) show for that file and the ones in lib32/?