Operating System - HP-UX
1830898 Members
3020 Online
110017 Solutions
New Discussion

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

 
Dinesh Verma
Advisor

/usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

/usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0
/lib/libnnz10.sl
/usr/lib/dld.sl: Exec format error
Abort(coredump)
10 REPLIES 10
Jeeshan
Honored Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

Hi Dinesh

when you find this error?
a warrior never quits
Yogeeraj_1
Honored Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

hi,

Questions:
is this a new installation?
when did you encounter this error message?


revert!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Dinesh Verma
Advisor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

After make excutable file and try to run this executable the above error messages are coming.
Jeeshan
Honored Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

you can link this to /usr/lib folder

#ln -s /oracle/app/product/10.2.0
/lib/libnnz10.sl /usr/lib/libnnz10.sl
a warrior never quits
Dinesh Verma
Advisor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

After linking this file in /usr/lib folder same error is coming
Jeeshan
Honored Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

then try to link with the lib32

#ln -s /oracle/app/product/10.2.0
/lib32/libnnz10.sl /usr/lib/libnnz10.sl
a warrior never quits
Dinesh Verma
Advisor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

Linking the lib32 in /usr/lib folder same error is coming
Dennis Handly
Acclaimed Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

What does this show:
file /oracle/app/product/10.2.0/lib/libnnz10.sl

It should be a 32 bit shared lib, not a 64 bit ELF file.
Dinesh Verma
Advisor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

it is showing 64bit ELF file

/oracle/app/product/10.2.0/lib ->file libnnz10.sl
libnnz10.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)

how this file change into 32bit.
Dennis Handly
Acclaimed Contributor

Re: /usr/lib/dld.sl: Bad magic number for shared library: /oracle/app/product/10.2.0/lib/libnnz10.sl

>how this file change into 32bit?

You must find the corresponding 32 version of this file.
find /oracle -name "libnnz10.*"