Operating System - HP-UX
1759497 Members
2924 Online
108883 Solutions
New Discussion

Bad system id when loading a library

 
SOLVED
Go to solution
Brian Newborn
New Member

Bad system id when loading a library

Hi,

We have an application that tries to load a library. The error we get is

/usr/lib/dld.sl: Bad system id for shared library: /software/d236test/hps_apps/bin/ZFFDVZF.dll

/usr/lib/dld.sl: Exec format error

I know it says dll but it really is a library and we do this all the time (not with this particular library). This library was sent to us from a client. I'm just curious what a bad system id means?

System: HP9000, HP-UX 11. Client has same set up as well.

Thanks,
Brian
1 REPLY 1
Patrick Wessel
Honored Contributor
Solution

Re: Bad system id when loading a library

Possible causes and the fixes are:

1.If libc is older than dld.sl or vice versa, then the two libraries will have
difficulties understanding each other. Update both by installing the latest
libc and dld.sl patches.

2.If the error was encountered while attempting to run a COBOL program, then
it is possible that the executable was created on a PA1.1 machine using a
shared library that was created on a PA2.0 machine. The linker did not give the
typical warning that a PA2.0 object was detected. Instead, the only error
returned occurred at runtime, when dld.sl attempted to bind the shared libraries.
The only solutions are to:

compile and run the program on the same machine.
install the latest dld.sl and libc patches on both machines and recompile.

3.If /lib is not linked to /usr/lib, then the shared libraries will not have a reference
point.

ln -s /usr/lib /lib
There is no good troubleshooting with bad data