1833783 Members
2128 Online
110063 Solutions
New Discussion

Bad magic number

 
SOLVED
Go to solution
Bob Manocchia
Regular Advisor

Bad magic number

I'm trying to install hobbit 4.2.0 on an hpux 11.23 itanium server. I ran configure and it worked fine with a little tweaking. I run /usr/local/bin/gmake and get the following error:

/usr/lib/dld.sl: Bad magic number for shared library: /usr/local/lib/libiconv.sl
/usr/lib/dld.sl: Exec format error

Any help would be appreciated.
7 REPLIES 7
Dennis Handly
Acclaimed Contributor
Solution

Re: Bad magic number

You probably have a mismatch of executable and shlib. What does these show:
$ file /usr/local/bin/gmake
$ file /usr/local/lib/libiconv.sl

Libs on IPF should be in .../lib/hpux32/.
Bob Manocchia
Regular Advisor

Re: Bad magic number

Here it is:

file /usr/local/bin/gmake
/usr/local/bin/gmake: PA-RISC2.0 shared executable dynamically linked
.file /usr/local/lib/libiconv.sl
/usr/local/lib/libiconv.sl: ELF-32 shared object file - IA64
Dennis Handly
Acclaimed Contributor

Re: Bad magic number

You have a PA executable and an IPF shlib. You need to move /usr/local/lib/libiconv.sl to /usr/local/lib/hpux32/libiconv.so.

And either get an IPF version of gmake or get PA versions of libiconv.
Bob Manocchia
Regular Advisor

Re: Bad magic number

I've installed the ia64 11.23 version of make but I'm not sure about the move of libiconv.sl. The directory /usr/local/lib/hpux32 soesn't exist. Should I create it and then move the file there under the new name?
Dennis Handly
Acclaimed Contributor

Re: Bad magic number

>I'm not sure about the move of libiconv.sl. The directory /usr/local/lib/hpux32 doesn't exist. Should I create it and then move the file there under the new name?

Yes. I assume you can check to make sure this doesn't break anything.
Bob Manocchia
Regular Advisor

Re: Bad magic number

T installed the newer version of the gcc compiler and it now matches gmake and I got past this error only to run into another one.

Thanks
Dennis Handly
Acclaimed Contributor

Re: Bad magic number

You haven't assigned any points to this thread. Did you get any useful answers?
Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33

You can reopen the thread by:
http://forums1.itrc.hp.com/service/forums/helptips.do?#41