Armin K. wrote:
> On 02/26/2014 09:46 PM, Armin K. wrote:
>> 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".
>>
>
> Also, I've found this patch at Gentoo, submitted by the debian developer
> which sort of looks what you need.
>
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.25-avoid_pic_overwrite.patch?revision=1.1&view=markup
>
> Also, consider using the following patch to fix parallel build:
>
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.25-lib_before_plugin.patch?revision=1.1&view=markup

Hmm.  Those look like candidates for a sed.  I'll create a ticket so we 
don't forget.

   -- Bruce


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to