Hi,

> 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 :
> ... 
> '--with-libxml2-prefix=/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/libxml2-2.9.4-3xzzczxchvreigbnm5ar6c7pq6xfbq6h'
>  ...
> 
> My issue is that libtool still uses /usr/lib64/libxml2.so

Well, /usr/lib64/libxml2.so is in a system location. The --with-libxml2-prefix
option was introduced for the case where you don't have the required libs in
the system location.

Additionally, the situation on your system is inconsistent: you have system
libs installed in PREFIX/lib64 (since this is an SUSE Linux distro) and
others installed in PREFIX/lib (as you gave a --prefix but no --exec-prefix
option).

--with-libxml2-prefix does not support such inconsistent uses.

Please try the alternative to this option instead: configure with the options
  CPPFLAGS="... 
-I/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/libxml2-2.9.4-3xzzczxchvreigbnm5ar6c7pq6xfbq6h/include"
and
  
LDFLAGS="-L/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/libxml2-2.9.4-3xzzczxchvreigbnm5ar6c7pq6xfbq6h/<lib
 or lib64> ..."
instead.

Bruno


Reply via email to