[blfs-support] Cyrus SASL compilation error

Sergei Antonov saproj at gmail.com
Fri Mar 7 07:17:29 PST 2014

I follow this instruction to build Cyrus SASL-2.1.26:

"make -j1" results in a link error about PIC:

libtool: link: gcc -shared  -fPIC -DPIC  .libs/sasldb.o
.libs/sasldb_init.o .libs/plugin_common.o  -Wl,--whole-archive
../sasldb/.libs/libsasldb.a -Wl,--no-whole-archive  -ldb -lresolv  -O2
  -Wl,-soname -Wl,libsasldb.so.3 -o .libs/libsasld
/usr/bin/ld: ../sasldb/.libs/libsasldb.a(allockey.o): relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
../sasldb/.libs/libsasldb.a(allockey.o): could not read symbols: Bad value
collect2: error: ld returned 1 exit status

What may cause this?

And a slight correction: && is missing after "pushd saslauthd" and
"popd" build commands.

More information about the blfs-support mailing list