1753283 Members
5628 Online
108792 Solutions
New Discussion юеВ

(invalid magic number)

 
SOLVED
Go to solution
Eder Urruela
Frequent Advisor

(invalid magic number)

I'm new working with UNIX and I was trying to compile a program a it returns me te following error.

/opt/XPADE/v3/usr/ccs/lbin/ld32: ../../lib/libXwnlio.a: Not a valid library (inv
alid magic number). Possibly a 64-bit PA archive library (Mismatched ABI).
*** Error exit code 1

The library libXwnlio.a has been compiled by me in 32bits mode.

I have tryed to compile with de modificator +DD64 but I hadn't success and It gave me the following messege.

1 -lm
ld: Mismatched ABI (not an ELF file) for ivibuild.o
Fatal error.
*** Error exit code 1

Any ideas, what could I do?

Thanks!
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: (invalid magic number)

Are you working with PA or Integrity?
You need to make sure you compile AND link with the same options, +DD64 or without.

What does "file ivibuild.o" show?
Eder Urruela
Frequent Advisor

Re: (invalid magic number)


Before I forced the compilation with +DD32, but the

I don't know if I am working with PA or with integrity, but I generated this library as root user, and te ivibuild I am trying to generate as other user, I know that isn't the best chosen but It was easier because it's a very old program.

Now I'm compiling the librarys under the same user than the other files. and the problem has disarpear in libXwnlio.a and the same error has apeared in other library, so I supose that the problem is that I generated libraries under diferent users.

Thanks I'm going to continue working with it.

Could you explain me the diference between PA and Integrity?

Thanks again!
James R. Ferguson
Acclaimed Contributor

Re: (invalid magic number)

Hi:

> I don't know if I am working with PA or with integrity,

Do:

# uname -m

If a string containing "9000" is returned ( e.g. 9000/899 ) then you have a PA-RISC machine. An Itanium server will return "ia64".

For an overview of the PA-RISC and Itanium architectures, see:

http://en.wikipedia.org/wiki/PA-RISC

http://en.wikipedia.org/wiki/Itanium

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor
Solution

Re: (invalid magic number)

>I don't know if I am working with PA or with integrity

It should be obvious. Integrity good, PA old. ;-)

Never mind: /opt/XPADE/
This means you are doing PA development on Integrity.

>the same error has appeared in other library, so I suppose that the problem is that I generated libraries under different users.

I would assume it's because you weren't consistent in your +DD option, rather than switching users.

You need to remove all of your objects & libs and start over.
Eder Urruela
Frequent Advisor

Re: (invalid magic number)

I type #uname -m, and It returns a ia64 so I'm working with an Itanium server and that's also true I'm doing an a PA development on Itanium server.

The ivibuild is an old program developed years ago and now I'm trying to do a new compilation with a new machine.├Г┬з

Thanks again.
Dennis Handly
Acclaimed Contributor

Re: (invalid magic number)

>I'm trying to do a new compilation with a new machine

Are you also going to compile it natively to run on Integrity?