[Expat-bugs] [ expat-Bugs-1836891 ] compile problem on hpux11.23. Urgent!
SourceForge.net
noreply at sourceforge.net
Mon Nov 26 23:51:01 CET 2007
Bugs item #1836891, was opened at 2007-11-23 05:44
Message generated for change (Comment added) made by mauad
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1836891&group_id=10127
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: www.libexpat.org
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Arthur Zhu (arthurzhu)
Assigned to: Fred L. Drake, Jr. (fdrake)
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
Fatal error.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
I downloaded a version from http://hpux.cs.utah.edu/ which was special for hpux11.23. After installing expat, I copied the libexpated to my source's lib folder, compiled again, also couldn't find expat library.
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.
*** Error exit code 1
Under .libs folder, libexpat.a and libexpat.so had been created.
I copied this licexpat.a to my lib folder, also couldn't use.
The same source, I compiled on AIX5.3, Linux, Windows.... no problem.
Anybody could explain? Kindly thanks!
Kind Regards,
Arthur Zhu
----------------------------------------------------------------------
Comment By: mauad (mauad)
Date: 2007-11-26 20:51
Message:
Logged In: YES
user_id=1516525
Originator: NO
This looks weird.
After downloading sources, I'd built expat on an Itanium server using the
following setup:
* gcc -v:
Using built-in specs.
Target: ia64-hp-hpux11.23
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.1.1
GNU Make 3.81
After building the vanilla version (running ./configure)
with:
* make
* make install
the files under examples/ were built, and the uutput was the expected upon
some XML files.
Note that the propper .so was built:
* ldd /usr/local/lib/libexpat.so
/usr/local/lib/libexpat.so: ELF-32 shared object file - IA64
It seems that your HPUX depot is influencing the linker.
Try out this steps:
1. Check which depot was downloaded (look for the IA64 one! there is a PA
and a IA64 version for 11.23)
with file $PATH_TO_EXPAT_LIB/libexpat.so
2(a). If the depot is wrong, you don't have a bug
2(b). If the depot is ok, uninstall it before rebuilding
3. Rebuild expat from scratch with ./configure, make make install
5. Change to examples/ and execute gcc -o elements elements.c -lexpat
6. Try it out with elements < file.xml
Mauad
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1836891&group_id=10127
More information about the Expat-bugs
mailing list