Bug#603500: libinstpatch: FTBFS with binutils-gold when linking example, with undefined referenced symbol

Fabrice Coutadeur fabricesp at ubuntu.com
Sun Nov 14 18:48:31 UTC 2010


Package: libinstpatch
Version: 1.0.0-1
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

Hi,

libinstpatch FTBFS when linking the examples with --as-needed, default in binutils-gold.
Here is the relevant part of the build log:
...
Making all in examples
make[3]: Entering directory `/build/fabrice-libinstpatch_1.0.0-1ubuntu1-i386-Ux73Pd/libinstpatch-1.0.0/examples'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include      -g -O0 -Wall -c create_sf2.c
/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O0 -Wall  -Wl,-Bsymbolic-functions -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o create_sf2 create_sf2.o ../libinstpatch/libinstpatch-1.0.la -lgobject-2.0 
libtool: link: gcc -g -O0 -Wall -Wl,-Bsymbolic-functions -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o .libs/create_sf2 create_sf2.o  ../libinstpatch/.libs/libinstpatch-1.0.so /usr/lib/libgobject-2.0.so -pthread
/usr/bin/ld: create_sf2.o: undefined reference to symbol 'g_clear_error'
/usr/bin/ld: note: 'g_clear_error' is defined in DSO /lib/libglib-2.0.so.0 so try adding it to the linker command line
/lib/libglib-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [create_sf2] Error 1

*** /tmp/tmp_cikdp
In Ubuntu, we've applied the attached patch to fix the FTBFS.

We thought you might be interested in doing the same. 

Thanks,
Fabrice
-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-proposed'), (500, 'maverick')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-23-generic (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmpBEoBqj
Type: text/x-diff
Size: 1360 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20101114/28b2fa82/attachment.diff>


More information about the pkg-multimedia-maintainers mailing list