GNOME Bugzilla – Bug 551715
libxml2-2.7.1 "make tests" failed in HP-UX 11.23 Itanium (.sl / .so)
Last modified: 2017-09-07 18:14:25 UTC
Please describe the problem: Hi, when running "make tests", "Module tests" failed, because it tried to open "testdso.sl" which do not exist. There is anyway "testdso.so". So, somewhere in the code is wrong suffix for this shared object. --- --- --- itanium> uname -rmsv HP-UX B.11.23 U ia64 itanium> itanium> make tests <...> Parsing took 2299 ms 100 iterations took 2440 ms 100 iterations took 7000 ms ## Module tests module error : failed to open .libs/testdso.sl make[1]: Entering directory `/temp/packages/libxml2-2.7.1/doc/examples' ## examples regression tests <...> itanium> ls -al .libs/testdso.* -rw-rw-r-- 1 AAAAAAA BBBBBB 3724 Sep 10 19:28 .libs/testdso.a lrwxrwxr-x 1 AAAAAAA BBBBBB 13 Sep 10 19:28 .libs/testdso.la -> ../testdso.la -rw-rw-r-- 1 AAAAAAA BBBBBB 844 Sep 10 19:28 .libs/testdso.lai -rw-rw-r-- 1 AAAAAAA BBBBBB 3576 Sep 10 19:28 .libs/testdso.o lrwxrwxr-x 1 AAAAAAA BBBBBB 14 Sep 10 19:28 .libs/testdso.so -> testdso.so.0.0 lrwxrwxr-x 1 AAAAAAA BBBBBB 14 Sep 10 19:28 .libs/testdso.so.0 -> testdso.so.0.0 -rwxrwxr-x 1 AAAAAAA BBBBBB 70584 Sep 10 19:28 .libs/testdso.so.0.0 Steps to reproduce: 1. Build libxml2 2.7.1 in HP-UX 11.23 Itanium 2. make tests 3. Actual results: ## Module tests module error : failed to open .libs/testdso.sl Expected results: Successful test Does this happen every time? Yes Other information: Configured (gcc version 4.1.2): CC="gcc -mlp64" ./configure --prefix=/foo/bar --enable-shared --with-zlib=/foo/bar --without-iconv --without-python
Note that "Version: CVS (head)" because I can not select 2.7.1 (not exist) when entering this report.
1) Entries for 2.7.0 and 2.7.1 have now been added, but since the problem is also present in CVS Head I've left the version entry alone. 2) It seems this problem starts from the autoconfig generation, where the following lines are present in configure.in: if test "${libxml_have_dlopen}" = "yes"; then case "${host}" in *-*-hpux* ) MODULE_EXTENSION=".sl" ;; * ) MODULE_EXTENSION=".so" ;; esac Unfortunately, I'm not familiar enough with HP to know whether the problem is a) because the libxml2 code is (correctly) trying to use the ".sl" extension, but (incorrectly) generating a ".so" file or, b) because the ".sl" extension shouldn't be used for HP. If you can tell me which of these (a or b) is correct, I'll attempt to fix it.
HP-UX shared libraries have suffix ".sl", however on Itanium systems (ia64) the suffix is ".so".