Operating System - Linux
1748139 Members
3874 Online
108758 Solutions
New Discussion

How to get new Expat.sl compatible with HP-UX11v2

 
sathis kumar
Frequent Advisor

How to get new Expat.sl compatible with HP-UX11v2

Hi,

I am creating a shared library against HPUX 11v2 m/c by using the following command:
ld -b -o
-a shared -L../lib -lequinox -a shared -L../lib -l:Expat.sl -lm -lc

But the above command ends up with the following output.

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

all the object files are of type:
ELF-32 relocatable object file - IA64
But the library Expat.sl is of type:
PA-RISC1.1 shared library -not stripped

Could you please help me in this regard. From where I can get the new Expat.sl which is of ELF-32 file -IA64.

Please let me know in case of any questions.

Thanks in advance.
Regards,
Sathis.
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: How to get new Expat.sl compatible with HP-UX 11.23

>ld -b -o ... -lc

I assume you know you need a shared lib name after that -o? You should also remove the -lc. libc does NOT belong on shlibs, only executables.

>From where I can get the new Expat.sl which is of ELF-32 file -IA64.

Where did you get your PA version of that lib?

Here is another link from years ago. It may tell you where to get the source. You may also have to port that too:

http://h30499.www3.hp.com/t5/Languages-and-Scripting/Perl-XML-Parser-linking-against-libexpat-fails/td-p/3061476