On Fri, 4 Apr 2014 14:59:53 +0300 Riku Voipio <riku.voi...@iki.fi> wrote:
> Hi,
>
> > The libiberty.h is provided by libiberty-dev and installed in
> > /usr/include/libiberty/libiberty.h.
>
> unfortunately this change isn't enough. Due to some other changes,
> linking against static libbfd doesn't work:
>
> gcc -std=gnu99 -shared -fPIC   
> .libs/libmutrace_backtrace_symbols_la-backtrace-symbols.o /usr/lib/libbfd.a 
> -lrt -ldl  -pthread -O2   -pthread -Wl,-soname 
> -Wl,libmutrace-backtrace-symbols.so -o .libs/libmutrace-backtrace-symbols.so
> /usr/bin/ld: /usr/lib/libbfd.a(bfd.o): relocation R_X86_64_32 against 
> `.rodata.str1.1' can not be used when making a shared object; recompile with 
> -fPIC
> /usr/lib/libbfd.a: error adding symbols: Bad value

I didn't meet this problem.


> collect2: error: ld returned 1 exit status
>
> while dynamic linking against libbfd is not considered allowed.

It works for me to add -I/usr/include/libiberty/ to
libmutrace_backtrace_symbols_la_CFLAGS  in
Makefile.am.

It works well on both amd64 and mips64el.

>
> This leaves the code stuck in no-building area. Considering dropping the 
> package.
>
> Riku
>
>
>


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to