HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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ï¼ ï¼

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

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...