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: Xavier LACOSTE
Subject: Re: [bug-gettext] Build with --with-libxml2-prefix= fails
Date: Wed, 26 Jul 2017 13:02:11 +0000

Hello Bruno,

Thanks for your answer.
I tried : 
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"
  
LDFLAGS="/data_local/appli_local/MTS/dev-tools/spack/opt/spack/linux-suse_linux11-x86_64/gcc-4.3/libxml2-2.9.4-3xzzczxchvreigbnm5ar6c7pq6xfbq6h/lib/libxml2.so"
 spack install  --restage gettext
And then spack is running the configure with LDFLAGS that should be setted and 
it didn't help.

I understand that I have 2 libs conflicting here but I don't understand why it 
is correctly taken for a part of the configuration but not in the gettext-tools 
part.

I don't have much things I can do within spack, I could just disable xml2 but 
spack wants to use its own xml2 if I build with it (I'm not an spack expert 
also... maybe I could use other options...)

Anyway, thanks for your help,

Xavier.

-----Message d'origine-----
De : Bruno Haible [mailto:address@hidden 
Envoyé : mercredi 26 juillet 2017 12:16
À : Xavier LACOSTE
Cc : address@hidden
Objet : Re: Build with --with-libxml2-prefix= fails

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]