ltib
[Top][All Lists]
Advanced

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

[Ltib] Problems with libxslt


From: Rogério de Souza Moraes
Subject: [Ltib] Problems with libxslt
Date: Sat, 22 Aug 2009 16:24:17 -0300

Hi Stuart,

I am trying to install libxslt and I verified some strange facts about
this package:

1) The libxslt source is present at ltib, and it is identified at
pkg_map, but it is not listed in packages.lck.

2) The configure of libxslt.spec is:

./configure --prefix=%{_prefix}

There isn't information about host neither build. So I don't think
this spec was customised for ltib.

3) When I try to compile this package it claims about libxml2 and I
have this lib installed at ltib environment.

checking for libxml libraries >= 2.6.8... configure: error: Could not
find libxml2 anywhere, check ftp://xmlsoft.org/.
error: Bad exit status from /work/ltib/tmp/rpm-tmp.78020 (%build)

So I installed the libxml2-dev in my ubuntu environment and he stopped
to claim, but I got this another error:

gcc -shared  .libs/attrvt.o .libs/xslt.o .libs/xsltutils.o
.libs/pattern.o .libs/templates.o .libs/variables.o .libs/keys.o
.libs/numbers.o .libs/extensions.o .libs/extra.o .libs/functions.o
.libs/namespaces.o .libs/imports.o .libs/attributes.o
.libs/documents.o .libs/preproc.o .libs/transform.o .libs/security.o
/usr/lib/libxml2.so -lm  -Wl,-soname -Wl,libxslt.so.1 -o
.libs/libxslt.so.1.1.11
/usr/lib/libxml2.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libxslt.la] Error 1
make[2]: Leaving directory `/work/ltib/rpm/BUILD/libxslt-1.1.11/libxslt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/ltib/rpm/BUILD/libxslt-1.1.11'
make: *** [all] Error 2
error: Bad exit status from /work/ltib/tmp/rpm-tmp.78736 (%build)

Appears that when the package is being built, it takes the ubuntu xml2
system variables. To fix it, I added the bellow lines in spec:

%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
--without-crypto

+# Avoid libtool searching in /usr/lib
+ perl -pi -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec=,'
libtool
make

Soon I will send a patch to fix it.

Thanks!




reply via email to

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