Operating System - HP-UX
1834150 Members
2764 Online
110064 Solutions
New Discussion

Re: Linker error : Not a valid library (invalid magic number .....)

 
sanjai
Occasional Contributor

Linker error : Not a valid library (invalid magic number .....)

Hi,
I???m in the process of compiling and linking our application with some third party libraries. During the linking phase I???m getting error below.
libsslc.a: Not a valid library (invalid magic number Possibly a 64-bit PA archive library (Mismatched ABI)
I???m compiling and linking with the option +DA2.0
Platform I???m using is
HP-UX 11.11 and the aCC version is A.03.33.
When I use the file command against ???libsslc.a??? it gives ???archive file??? however when I use the same command to check other archive files (which links properly) from the same vendor, it gives
"archive file -PA-RISC2.0 relocatable library"
Does any one have any idea on this ?
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Linker error : Not a valid library (invalid magic number .....)

The very first thing that I would check is that
your 3rd-party library is even an HP-UX library. The most probable killer is that you are attempting to link 32-bit and 64-bit code - and that dog won't hunt.
If it ain't broke, I can fix that.
sanjai
Occasional Contributor

Re: Linker error : Not a valid library (invalid magic number .....)

Thanks for reply. They are compiled for HP-UX on 64 bit mode.
A. Clay Stephenson
Acclaimed Contributor

Re: Linker error : Not a valid library (invalid magic number .....)

Yes but it appears that your 3rd party library is not HP - or at least not PA-RISC - it might be Itanium. You really need to make sure about your 3rd-party library.
If it ain't broke, I can fix that.