bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] building gettext with custom libxml2


From: David Lukeš
Subject: [bug-gettext] building gettext with custom libxml2
Date: Sun, 22 Oct 2017 16:57:38 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi all,

I'm trying to build gettext 0.19.8.1 with a custom version of libxml2.
The includes are correctly found, but when it comes to linking, gcc
tries to link against a system-installed version of libxml2 instead,
which results in an undefined reference error:

/bin/sh ../libtool  --tag=CC   --mode=link /cnk/common/tools/spack/lib/spack/env/gcc/gcc     -o msgcmp msgcmp-msgcmp.o msgcmp-msgl-fsearch.o libgettextsrc.la  -lm libtool: link: /cnk/common/tools/spack/lib/spack/env/gcc/gcc -o .libs/msgcmp msgcmp-msgcmp.o msgcmp-msgl-fsearch.o ./.libs/libgettextsrc.so /tmp/lukes/spack-stage/spack-stage-GOwpgQ/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so -lacl /usr/lib/x86_64-linux-gnu/libxml2.so -lncurses /tmp/lukes/spack-stage/spack-stage-GOwpgQ/gettext-0.19.8.1/gettext-tools/intl/.libs/libintl.so -lc -lm -fopenmp -Wl,-rpath -Wl,/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/gettext-0.19.8.1-iyq7wap5sppgofyeunv7j36rvmeewop4/lib
./.libs/libgettextsrc.so: undefined reference to `xmlOutputBufferGetContent'
./.libs/libgettextsrc.so: undefined reference to `xmlXPathSetContextNode'
collect2: error: ld returned 1 exit status

This is how configure was invoked:

./configure --prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/gettext-0.19.8.1-iyq7wap5sppgofyeunv7j36rvmeewop4 --disable-java --disable-csharp --with-included-glib --with-included-gettext --with-included-libcroco --without-emacs --with-lispdir=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/gettext-0.19.8.1-iyq7wap5sppgofyeunv7j36rvmeewop4/share/emacs/site-lisp/gettext --without-cvs --with-ncurses-prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/ncurses-6.0-c7c4oxnzvvria76haxxvhnoej3zv65vh --with-libxml2-prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/libxml2-2.9.4-xdv2bdnzahsvgsfzgx5k3hp76kpstxqi --with-included-libunistring

I'd be grateful for any pointers -- I'm not sure whether I'm doing
something wrong, or whether there's maybe a bug in the build system :)

Thanks and best,

David Lukeš



reply via email to

[Prev in Thread] Current Thread [Next in Thread]