>On Tue, 22 Nov 2011 19:11:55 +1100
>Wayne Blaszczyk <wblas...@bigpond.net.au> 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?
> 
> Thanks,
> Wayne.
> 
> PS. gdb is a dependency of nemiver, which is part of Gnome 3.2.

Oh Jesus, I had this one too. Cairo-1.11.2.

The solution was to go ALLL the way back and recompile the BFD library
of binutils with -fPIC. It worked after that little nugget of wisdom.

I did a "hot" install, which means I did not recompile everything after
putting the new library.

These are the commands:
*in binutils-build:
export CFLAGS=-fPIC
../binutils/configure [options]
make configure-bfd
make all-bfd
make install-bfd
unset CFLAGS

I think this has no effect on statically linking stuff with libbfd.a.

-- 
   Fourth law of programming:
   Anything that can go wrong wi
sendmail: segmentation violation - core dumped
-- 
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