On 23/11/11 11:23, Andrew Benton wrote:
> On Tue, 22 Nov 2011 19:11:55 +1100
> Wayne Blaszczyk <[email protected]> wrote:
> 
>> Hi,
>> Has anyone successfully built Cairo with GDB (GNU Debugger)?
>> I've have gdb 7.3.1 installed which is the latest and I get the
>> following error when building Cairo:
>>
>>
>>   CC     libcairo_trace_la-lookup-symbol.lo
>>   CCLD   libcairo-trace.la
>> /usr/bin/ld: /usr/lib/libbfd.a(format.o): relocation R_X86_64_32S
>> against `binary_vec' can not be used when making a shared object;
>> recompile with -fPIC
>> /usr/lib/libbfd.a: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>> make[4]: *** [libcairo-trace.la] Error 1
>> make[4]: Leaving directory `/sources/cairo-1.10.0/util/cairo-trace'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory `/sources/cairo-1.10.0/util'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/sources/cairo-1.10.0/util'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/sources/cairo-1.10.0'
>> make: *** [all] Error 2
>>
>> I've tried versions 1.10.0 and 1.10.2 with the same result.
>> Any ideas on a fix?
> 
> Hi Wayne,
> I'm sorry it's taken me so long to get around to answering your
> mmessage, I've had a busy day.
> Does it work if you configure gdb with CFLAGS-fPIC?
> eg:
> 
> CFLAGS=-fPIC ./configure --prefix=/usr
> make
> make install
> 
> Andy
Yes it did work. Thanks. However after further investigation on how
other ditros manage this package, Paldo had the best solution.
That is,

./configure --prefix=/usr --disable-werror
make
make -C gdb install

This only installs the binaries and one of the libraries which is not
shared by binutils.

Wayne.
-- 
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