After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 161654 - --with-libxml-libs-prefix is broken
--with-libxml-libs-prefix is broken
Status: RESOLVED INCOMPLETE
Product: libxslt
Classification: Platform
Component: general
1.1.12
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-12-18 21:32 UTC by inquirydog
Modified: 2006-07-05 21:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description inquirydog 2004-12-18 21:32:46 UTC
have one library for libxml in /usr/lib (old version).  Build a new version
elsewhere (new version).  configure using 

./configure --with-libxml-prefix=/home/fred/dist/usr \
            --with-libxml-include-prefix=/home/fred/dist/usr/include/libxml2 \ 
            --with-libxml-libs-prefix=/home/fred/dist/usr/lib

configure works correctly, but when you make, you get the following error:

(stuff...., and then) 
make[2]: Entering directory`/home/fred/authdemo/libxslt/libxslt-1.1.12/xsltproc'
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall   -o xsltproc  xsltproc.o 
../libxslt/libxslt.la ../libexslt/libexslt.la -L../../../dist/usr/lib -L/usr/lib
-lxml2 -lz -lpthread -lm -L../../../dist/usr/lib -L/usr/lib -lxml2 -lz -lpthread
-lm -lm  
gcc -g -O2 -Wall -o .libs/xsltproc xsltproc.o  ../libxslt/.libs/libxslt.so
-L/home/fred/authdemo/dist/usr/lib -L/usr/lib ../libexslt/.libs/libexslt.so
/home/fred/authdemo/libxslt/libxslt-1.1.12/libxslt/.libs/libxslt.so
/usr/lib/libxml2.so -lz -lpthread -lm
xsltproc.o: In function `xsltProcess':
/home/fred/authdemo/libxslt/libxslt-1.1.12/xsltproc/xsltproc.c:377: undefined
reference to `xmlXIncludeProcessFlags'
/home/fred/authdemo/libxslt/libxslt-1.1.12/xsltproc/xsltproc.c:398: undefined
reference to `htmlReadFile'
(and more unimportant lines)

It looks to me like the libtool line is correct (-L is given correctly), but the
output of libtools is not (the /usr/lib location is specified).  At any rate
this is a real nusiance when trying to build a version on a system that you
don't have root access on with older versions of libxml (as is the case in the
example given).

b
Comment 1 William M. Brack 2004-12-18 23:39:50 UTC
It appears that your trouble is caused by your libxml2 installation. When you want to do this sort of 
installation, the sequence should be:
1) configure libxml2 including "--prefix=/home/fred/dist/usr"
2) make, make install libxml2
3) configure libxslt including "--prefix=/home/fred/dist/usr  --with-libxml-prefix=/home/fred/dist/
usr"
I expect that if you try the command:
  /home/fred/dist/usr/bin/xml2-config --cflags --lflags
you will see that your libxml2 is configured with it's libraries in /usr/lib.

Please report the results.

Bill
Comment 2 André Klapper 2006-07-05 21:12:00 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information William asked for.
Thanks!