On Wed, Sep 07, 2005, Openpkg wrote: > I was having problems with the fsl package in the kolab release > (fsl-1.5.0-2.2.0.src.rpm) however downloading a newer copy > (fsl-1.6.0-2.3.0.src.rpm) compiled fine. Kolab uses openpkg-2.2.3 btw, is it > 'safe' to use newer packages like I did? > > The big issue now is with sasl. Kolab2 ships with sasl-2.1.19-2.2.1.src.rpm, > although I have tried other versions (sasl-2.1.20-2.3.0.src.rpm and > sasl-2.1.21-2.4.0.src.rpm) but all fail to compile with the follwowing error: > > /kolab/bin/cc -shared sasldb.lo sasldb_init.lo plugin_common.lo > -Wl,--whole-archive ../sasldb/.libs/libsasldb.al -Wl,--no-whole-archive -L/ > kolab/lib -lresolv -ldb -lfsl -lnsl -ldb -lresolv -ldb -lfsl -lnsl -lc > -Wl,-soname -Wl,libsasldb.so.2 -o .libs/libsasldb.so.2.0.19 > /kolab/bin/ld: /kolab/lib/libdb.a(db_err.o): relocation R_X86_64_32 can not be > used when making a shared object; recompile with -fPIC > /kolab/lib/libdb.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > > This in turn causes dependant packages to fail too. > > The "relocation R_X86_64_32" part sounds to me like a 32/64-bit architecture > issue... am I right? Any suggestions as to how I can get round this?
Ah, I see. OpenPKG 2.2 and 2.3... If I remember correctly it was between OpenPKG 2.3 and 2.4 that we introduced a few workarounds for the AMD64 platform. For instance we hacked the %{l_cflags} variable expansion to include -fPIC to workaround some binutils problems. And this seems to be your problem here, too. Although I hoped that Kolab was already upgraded to a newer OpenPKG release, what you can do as a workaround is to selectively use packages from newer OpenPKG versions. In your situation especially the "openpkg", "binutils" and "gcc" packages from OpenPKG 2.4. Alternatively directly follow the error message advice and insert -fPIC into the CFLAGS of the sasl.spec file. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org