Operating System - HP-UX
1752805 Members
5804 Online
108789 Solutions
New Discussion юеВ

Bad magic number for shared library

 
liuyongxyz
Occasional Advisor

Bad magic number for shared library

hi,everyone:
Now i'm compiling php,but it appares error always:
"checking lex output file root... /usr/lib/dld.sl: Bad magic number for shared library: /usr/local/lib/libintl.sl"

/usr/lib/dld.sl: s800 shared library -not stripped

/usr/local/lib/libintl.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64)

Thanks!!!
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Bad magic number for shared library

You have a 32 bit application with a 64 bit shlib, libintl.sl. This shlib is in an illegal path. The proper path for PA64 bit shlibs lib/pa20_64/, not lib/. If it was in the proper place, there would be no way to make this mistake.
liuyongxyz
Occasional Advisor

Re: Bad magic number for shared library

3ku,

Yes, my PA64 bit shlibs is lib/pa20_64

I'm crazy├п┬╝ ├п┬╝
Dennis Handly
Acclaimed Contributor

Re: Bad magic number for shared library

>my PA64 bit shlibs is lib/pa20_64

But /usr/local/lib/libintl.sl wasn't.
liuyongxyz
Occasional Advisor

Re: Bad magic number for shared library

"libintl.sl" all 64bit in my system.
is libintl.sl wrong or dld.sl for my system?
liuyongxyz
Occasional Advisor

Re: Bad magic number for shared library

libintl.sl was built by gettext in same env
Dennis Handly
Acclaimed Contributor

Re: Bad magic number for shared library

>libintl.sl all 64bit in my system. is libintl.sl wrong or dld.sl for my system?

Your executable is 32 bit, that's why it shows an error by /usr/lib/dld.sl.

Again, if you put libintl.sl in /usr/local/lib/pa20_64/libintl.sl, your mistakes would be more obvious.
liuyongxyz
Occasional Advisor

Re: Bad magic number for shared library

thank you!!
Although I don't solve the problem fundamentally , but I removed the support of the "gettext", it is compiled over...