Bug#397605: cyrus-sasl2: FTBFS on hppa (PIC linking issue)
Fabian Fagerholm
fabbe at paniq.net
Wed Nov 8 13:26:15 CET 2006
Package: cyrus-sasl2
Version: 2.1.22-1
Severity: serious
cyrus-sasl2 fails to build from source on hppa:
--8<--
Making all in plugins
make[3]: Entering directory `/build/buildd/cyrus-sasl2-2.1.22/plugins'
/bin/sh ../libtool --tag=CC --mode=link hppa-linux-gnu-gcc -Wall -W -Wall -g
-O2 -Wl,-z,defs -module -export-dynamic -rpath /usr/lib/sasl2 -o libsasldb.la
-version-info 2:22:0 sasldb.lo sasldb_init.lo plugin_common.lo
../sasldb/libsasldb.la -ldb-4.2 -lresolv -lresolv
hppa-linux-gnu-gcc -shared .libs/sasldb.o .libs/sasldb_init.o
.libs/plugin_common.o -Wl,--whole-archive ../sasldb/.libs/libsasldb.a
-Wl,--no-whole-archive /usr/lib/libdb-4.2.so -lresolv -Wl,-z -Wl,defs
-Wl,-soname -Wl,libsasldb.so.2 -o .libs/libsasldb.so.2.0.22
/usr/bin/ld: ../sasldb/.libs/libsasldb.a(db_berkeley.o): relocation
R_PARISC_DPREL21L can not be used when making a shared object; recompile with
-fPIC
../sasldb/.libs/libsasldb.a(db_berkeley.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libsasldb.la] Error 1
make[3]: Leaving directory `/build/buildd/cyrus-sasl2-2.1.22/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/cyrus-sasl2-2.1.22'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/cyrus-sasl2-2.1.22'
make: *** [build-arch-stamp] Error 2
******************************************************************************
Build finished at 20061107-1558
FAILED [dpkg-buildpackage died]
--8<--
http://buildd.debian.org/fetch.cgi?pkg=cyrus-sasl2;ver=2.1.22-1;arch=hppa;stamp=1162940348
The cause is apparently that autotools creates non-PIC static libraries which
are then used to create a PIC shared library, which doesn't work on hppa.
More information about the Pkg-cyrus-sasl2-debian-devel
mailing list