Package: libinstpatch
Version: 1.0.0-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@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
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 Makefile.am 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 <fabric...@ubuntu.com>
+
+--- libinstpatch-1.0.0.orig/examples/Makefile.am
++++ libinstpatch-1.0.0/examples/Makefile.am
+@@ -4,7 +4,7 @@ EXTRA_DIST = create_sf2.py
+ noinst_PROGRAMS = create_sf2
+ 
+ create_sf2_SOURCES = create_sf2.c
+-create_sf2_LDADD = $(top_srcdir)/libinstpatch/libinstpatch-1.0.la
++create_sf2_LDADD = $(top_srcdir)/libinstpatch/libinstpatch-1.0.la -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 @@
 03-pkgconfig.patch
 04-fix_tests.patch
 05-with_math_lib.patch
+06-fix-for-binutils-gold.patch
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to