[Expat-bugs] Expat-bugs Digest, Vol 85, Issue 3

Albrecht Fritzsche ali at mental.com
Fri Nov 23 12:26:21 CET 2007


expat-bugs-request at libexpat.org wrote:

> Date: Thu, 22 Nov 2007 23:44:26 -0800
> From: "SourceForge.net" <noreply at sourceforge.net>
> Subject: [Expat-bugs] [ expat-Bugs-1836891 ] compile problem on
> 	hpux11.23.	Urgent!
> To: noreply at sourceforge.net
> Summary: compile problem on hpux11.23. Urgent!
> 
> Initial Comment:
> My server is: HP Integrity rx2620 hpux11.23.
> 
> I want to compile one source which needs to link libexpat.a on hpux. The message always as following:
> ld: Can't find library or mismatched ABI for -lexpat


That libexpat.a was built with another compiler than your source. Since 
both compilers differ in their ABI you should be thankful that the 
linker warns you - runtime crashes might be the consequence otherwise.

And yes, building it locally should be the solution to this problem.

> Then, I downloaded expat source. First, did ./configure, then did make. When making, message was:
> ld: Unknown input file type: "./.libs/libexpat.so"
> Fatal error.


Apparently the make takes incorrectly the *.so instead of the *.a for 
linking? Maybe you should try to look at the link part of the make 
files, for instance by making its output verbose.

> Under .libs folder, libexpat.a and libexpat.so had been created.
> I copied this licexpat.a to my lib folder, also couldn't use.


In what sense? What happened when you've tried to link the libexpat.a?
Ali



More information about the Expat-bugs mailing list