Hello!
I follow this instruction to build Cyrus SASL-2.1.26:
http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cyrus-sasl.html

"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
b.so.3.0.0
/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.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to