Hello,

I'm trying to build gettext through spack 
(http://spack.readthedocs.io/en/latest/index.html) and get an error while 
building gettext.
Spack first builds xml2 and then uses it to build gettext with :
'/data_local/appli_local/MTS/dev-tools/spack/var/spack/stage/gettext-0.19.8.1-ufg75pgwwvdied7bitgmy6yjj3hx6pbl/gettext-0.19.8.1/confi
gure' 
'--prefix=/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/gettext-0.19.8.1-ufg75pgwwvdied7b
itgmy6yjj3hx6pbl' '--disable-java' '--disable-csharp' '--with-included-glib' 
'--with-included-gettext' '--with-included-libcroco' '--with
out-emacs' 
'--with-lispdir=/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/gettext-0.19.8.1-ufg75
pgwwvdied7bitgmy6yjj3hx6pbl/share/emacs/site-lisp/gettext' '--without-cvs' 
'--with-ncurses-prefix=/data_local/appli_local/MTS/dev-tools/s
pack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/ncurses-6.0-ywun3mivk6s5jbqzqz3anqt2bwena6no'
 '--with-libxml2-prefix=/data_local/appli_l
ocal/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/libxml2-2.9.4-3xzzczxchvreigbnm5ar6c7pq6xfbq6h'
 '--with-included-lib
unistring'

My issue is that libtool still uses /usr/lib64/libxml2.so which is older and as 
incompatible symbols :
libtool: link: 
/data_local/appli_local/MTS/dev-tools/spack/lib/spack/env/gcc/gcc -std=gnu99 -o 
.libs/cldr-plurals cldr_plurals-cldr-plura
l.o cldr_plurals-cldr-plural-exp.o cldr_plurals-cldr-plurals.o  
./.libs/libgettextsrc.so /tmp/j0489939/spack-stage/spack-stage-bVdvDI/get
text-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so 
../gnulib-lib/.libs/libgettextlib.so /tmp/j0489939/spack-stage/spack-stage-
bVdvDI/gettext-0.19.8.1/gettext-tools/intl/.libs/libintl.so 
/usr/lib64/libxml2.so -ldl -lz -lm -lncurses ../intl/.libs/libintl.so -lc -fo
penmp -Wl,-rpath 
-Wl,/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/gettext-0.19.8.1-ufg75pgwwvd
ied7bitgmy6yjj3hx6pbl/lib

I could finish the make stage by editing gettext-tools/src/Makefile and adding 
the correct xml2 full path to the LDFLAGS.

However I still can't build it correctly through spack as the make && make 
install seems not to be enough for it to consider gettext is installed... But 
that's more an spack issue.

Hope this can help improving the gettext build system.

Regards,

XL.

Reply via email to