1834646 Members
2297 Online
110069 Solutions
New Discussion

dld.sl bad magic error

 
joe daly
New Member

dld.sl bad magic error

Installed latest qpk but did not seem to help.
Anyone have suggestion?

Error:
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/pa20_64/libdld.1
/usr/lib/dld.sl: Exec format error

Workstation Info:
HP-UX B.11.11 U 9000/785
$ what /usr/lib/dld.sl
/usr/lib/dld.sl:
SMART_BIND
92453-07 dld dld dld.sl B.11.18 000922
$ what /usr/lib/pa20_64/libdld.1
/usr/lib/pa20_64/libdld.1:
92453-07 dld dld libdl.1 PA64 B.11.18 REL 000922
3 REPLIES 3
Jeff Schussele
Honored Contributor

Re: dld.sl bad magic error

Hi Joe,

I notice this is a workstation class system.
Is it 32 or 64 bit?

getconf KERNEL_BITS

If it comes back 32 then there's your problem because that's a 64 bit lib file. You wouldn't be able to use it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
joe daly
New Member

Re: dld.sl bad magic error

Opps - this should go under >hpux >patch > community (sorry can someone move it?)

$ getconf KERNEL_BITS
64
Mike Stroyan
Honored Contributor

Re: dld.sl bad magic error

It doesn't look like it is the kernel that is having 64-bit issues. The program itself is a 32-bit program that is trying to pull in a 64 bit libdld.1.

I can see that the program is 32-bit because it is using /usr/lib/dld.sl instead of /usr/lib/pa20_64/dld.sl . The program may have a dynamic dependency on "libdld.1" and the SHLIB_PATH has been set to make it look in /usr/lib/pa20_64. Or perhaps LD_PRELOAD is explicitly requesting it to load /usr/lib/pa20_64/libdld.1 .