On 02/26/2014 09:34 PM, Bruce Dubbs wrote: > I had a problem with the instructions for Cyrus SASL. Using them as > they are in the book gives me: > > 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/libsasldb.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): error adding symbols: Bad value > > Adding CFLAGS=-fPIC to the configure line fixes this for me. Has anyone > else seen the problem? > > I can add it to the book easily enough, but wanted to check if it was > only me first. > > -- Bruce >
Hm. I asked myself why there was -fPIC in the instructions. When I checked it, that wasn't necessary and I removed it. So everything I can say is "works for me". -- Note: My last name is not Krejzi. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page