GNOME Bugzilla – Bug 363473
libxslt compiling in HP-UX 11i v2 64 bits
Last modified: 2006-10-19 21:57:14 UTC
The libxslt library is not compiling in HP-UX 11i v2 while using 64 bits mode. What I tried to compile: 1st. step: setenv CC "/bin/cc" setenv CFLAGS +DD64 PS: [jgarvia@rx2620->~] /bin/cc -V cc: HP aC++/ANSI C B3910B A.06.10 [Mar 22 2006] 2nd. step: ./configure --prefix=/d1/julio.garvia.xslt/ --with-libxml-prefix=/d1/julio.garvia.xml2/ --with-libxml-include-prefix=/d1/julio.garvia.xml2/include/libxml2/ --with-libxml-libs-prefix=/d1/julio.garvia.xml2/lib/ (I tried to build it from an already built libxml2) 3rd. step: make Then it fails while compiling in 'xsltproc' directory. Following message is shown: /bin/sh ../libtool --tag=CC --mode=link /bin/cc +DD64 -Wp,-H30000 -o xsltproc xsltproc.o ../libxslt/libxslt.la ../libexslt/libexslt.la -L/d1/julio.garvia.xml2/lib/ -L/d1/julio.garvia//lib -lxml2 -lpthread -lm -L/d1/julio.garvia.xml2/lib/ -L/d1/julio.garvia//lib -lxml2 -lpthread -lm -lm libtool: link: warning: library `/d1/julio.garvia.xml2/lib//libxml2.la' was moved. libtool: link: warning: library `/d1/julio.garvia.xml2/lib//libxml2.la' was moved. /bin/cc +DD64 -Wp,-H30000 -o .libs/xsltproc xsltproc.o ../libxslt/.libs/libxslt.so -L/d1/julio.garvia.xml2/lib/ -L/d1/julio.garvia//lib ../libexslt/.libs/libexslt.so /d1/libxslt-1.1.17/libxslt/.libs/libxslt.so /d1/julio.garvia.xml2/lib//libxml2.so -lpthread -lm -Wl,+b -Wl,/d1/julio.garvia.xslt//lib:/d1/julio.garvia.xml2/lib/ ld: Can't find dependent library "libxslt.so.2" Fatal error. *** Error exit code 1 Stop. After some changes I added -L/d1/libxslt-1.1.17/libxslt/.libs as below: /bin/sh ../libtool --tag=CC --mode=link /bin/cc +DD64 -Wp,-H30000 -o xsltproc xsltproc.o ../libxslt/libxslt.la ../libexslt/libexslt.la -L/d1/julio.garvia.xml2/lib/ -L/d1/julio.garvia//lib -lxml2 -lpthread -lm -L/d1/julio.garvia.xml2/lib/ -L/d1/julio.garvia//lib -L/d1/libxslt-1.1.17/libxslt/.libs -lxml2 -lpthread -lm -lm And it works perfectly and I got my library built. Perhaps this workaround can be made permanente by adding that library to EXTRA_LIBS. But it is just a humble suggestion. Other information:
Seems a problem with libtool, if ../libxslt/libxslt.la is specified on its line it should bring back -lxslt from ../libxslt/.libs . No idea where it comes from. Addding the .libs explicitely is a bad idea, libtool should do it, the best is to ask on the mailing-list for such portability issues. There is very very few people around with HP-UX and also looking at Gnome bugzilla. I will close at NOTGNOME as a result, but I really suggest you ask on the list, I would not be surprized if people from HP were hanging around, Daniel