bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] Build with --with-libxml2-prefix= fails


From: Bruno Haible
Subject: Re: [bug-gettext] Build with --with-libxml2-prefix= fails
Date: Wed, 26 Jul 2017 12:15:34 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-83-generic; KDE/5.18.0; x86_64; ; )

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

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