Re: [xslt] linking problems



On Wed, 2004-10-27 at 15:55 -0400, Adam Reid wrote:
> I'm having problems getting the gnome cvs version of xslt to
> link properly to the cvs version of libxml2.
> 
> I'm using jhbuild to build a cvs version of gnome.  I'm building all 
> packages with a prefix of $HOME/software, but when building xsltproc it 
> insists on linking to the libxml2 in /usr/lib
> 
> I've specified the --with-libxml-src=/home/adam/software option when 
> running the configure-script and it still won't link to the proper libxml2
> 
> here's the output I get:
> 
> Making all in xsltproc
> make[2]: Entering directory `/home/adam/cvs/gnome2/libxslt/xsltproc'
> /bin/sh ../libtool --mode=link gcc  -g -O2 -Wall   -o xsltproc 
> xsltproc.o -lgcrypt -lgpg-error ../libxslt/libxslt.la 
> ../libexslt/libexslt.la -L/home/adam/software/lib -lxml2 -lz -lpthread 
> -lm -L/home/adam/software/lib -lxml2 -lz -lpthread -lm -lm
> gcc -g -O2 -Wall -o .libs/xsltproc xsltproc.o  /usr/lib/libgcrypt.so 
> /usr/lib/libgpg-error.so ../libxslt/.libs/libxslt.so 
> ../libexslt/.libs/libexslt.so -L/home/adam/software/lib 
> /usr/lib/libxml2.so -lz -lpthread -lm -Wl,--rpath 
> -Wl,/home/adam/software/lib
> ../libxslt/.libs/libxslt.so: undefined reference to `xmlNewDocPI'
> collect2: ld returned 1 exit status
> make[2]: *** [xsltproc] Error 1
> make[2]: Leaving directory `/home/adam/cvs/gnome2/libxslt/xsltproc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/adam/cvs/gnome2/libxslt'
> make: *** [all] Error 2
> adam neurosys ~/cvs/gnome2/libxslt $
> 
> am I doing something wrong?

It is trying to link against the system version of libxml2
(/usr/lib/libxml2.so). So a path is wrong somewhere: either it is
picking up the wrong version of the .pc file for libxml2, or you didn't
install the CVS version of libxml2 or something else.

But you are not doing what you think you are doing here (i.e. you are
not building against CVS libxml2).

Cheers,
Malcolm




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]