Package: libinstpatch
Version: 1.0.0-1
Severity: wishlist
Tags: patch
Usertags: origin-ubuntu natty ubuntu-patch


libinstpatch FTBFS when linking the examples with --as-needed, default in 
Here is the relevant part of the build log:
Making all in examples
make[3]: Entering directory 
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/ -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/ /usr/lib/ -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/ so 
try adding it to the linker command line
/lib/ 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. 

-- 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
diff -Nru libinstpatch-1.0.0/debian/patches/06-fix-for-binutils-gold.patch libinstpatch-1.0.0/debian/patches/06-fix-for-binutils-gold.patch
--- libinstpatch-1.0.0/debian/patches/06-fix-for-binutils-gold.patch	1970-01-01 01:00:00.000000000 +0100
+++ libinstpatch-1.0.0/debian/patches/06-fix-for-binutils-gold.patch	2010-11-14 16:10:32.000000000 +0100
@@ -0,0 +1,15 @@
+Description: Fix in examples to avoid a FTBFS with binutils-gold, by
+ adding libgobject-2.0 and libglib-2.0 to libraries used to link sf2.
+Author: Fabrice Coutadeur <>
+--- libinstpatch-1.0.0.orig/examples/
++++ libinstpatch-1.0.0/examples/
+@@ -4,7 +4,7 @@ EXTRA_DIST =
+ noinst_PROGRAMS = create_sf2
+ create_sf2_SOURCES = create_sf2.c
+-create_sf2_LDADD = $(top_srcdir)/libinstpatch/
++create_sf2_LDADD = $(top_srcdir)/libinstpatch/ -lgobject-2.0 -lglib-2.0
+ INCLUDES = -I$(top_srcdir) @GOBJECT_CFLAGS@
diff -Nru libinstpatch-1.0.0/debian/patches/series libinstpatch-1.0.0/debian/patches/series
--- libinstpatch-1.0.0/debian/patches/series	2010-11-02 00:04:54.000000000 +0100
+++ libinstpatch-1.0.0/debian/patches/series	2010-11-14 16:09:03.000000000 +0100
@@ -3,3 +3,4 @@
pkg-multimedia-maintainers mailing list

Reply via email to