On Thu, Nov 05, 2009 at 10:19:05PM +0100, Peter Fritzsche wrote: > Source: gnet > Version: 2.0.8-1 > Severity: minor > User: peter.fritzs...@gmx.de > Usertags: no-add-needed > > Tried to build your package and it fails to build with GNU binutils-gold. The > important difference is that --no-add-needed is the default behavior of of GNU > binutils-gold. Please provide all needed libraries to the linker when building > your executables. > > More informations can be found at > > http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking > > /bin/bash ../../libtool --tag=CC --mode=link cc -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -g -O2 -g -Wall -O2 -D_REENTRANT > -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o > test-xmlrpc-client test-xmlrpc-client.o libgnetxmlrpc.a > ../../src/libgnet-2.0.la -lresolv -lnsl > mkdir .libs > cc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -g -Wall -O2 > -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes > -Wmissing-prototypes -Wmissing-declarations -Wl,-z -Wl,defs -Wl,-O1 -o > .libs/test-xmlrpc-client test-xmlrpc-client.o -Wl,--as-needed > libgnetxmlrpc.a ../../src/.libs/libgnet-2.0.so -lresolv -lnsl > /usr/bin/ld: test-xmlrpc-client.o: in function main:test-xmlrpc-client.c:53: > error: undefined reference to 'g_free' > /usr/bin/ld: test-xmlrpc-client.o: in function main:test-xmlrpc-client.c:65: > error: undefined reference to 'g_free' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_delete:xmlrpc-client.c:78: error: undefined reference to > 'g_string_free' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_new:xmlrpc-client.c:43: error: undefined reference to > 'g_malloc0' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_new:xmlrpc-client.c:65: error: undefined reference to > 'g_string_new' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_new:xmlrpc-client.c:63: error: undefined reference to > 'g_assertion_message_expr' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:219: error: undefined reference to > 'g_string_new' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:220: error: undefined reference to > 'g_string_new' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:224: error: undefined reference to > 'g_string_append_printf' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:240: error: undefined reference to > 'g_string_append' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:239: error: undefined reference to > 'g_string_append' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:241: error: undefined reference to > 'g_string_append' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:247: error: undefined reference to > 'g_string_append' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:252: error: undefined reference to > 'g_string_append_printf' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:259: error: undefined reference to > 'g_string_append_len' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:262: error: undefined reference to > 'g_string_free' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:265: error: undefined reference to > 'g_string_free' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:93: error: undefined reference to > 'g_string_new' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:134: error: undefined reference to > 'g_ascii_tolower' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:139: error: undefined reference to > 'g_strstr_len' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:168: error: undefined reference to > 'g_strstr_len' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:175: error: undefined reference to > 'g_strrstr' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:210: error: undefined reference to > 'g_string_free' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:151: error: undefined reference to > 'g_string_append_len' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:/usr/include/glib-2.0/glib/gstring.h:153: error: > undefined reference to 'g_string_insert_c' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:/usr/include/glib-2.0/glib/gstring.h:153: error: > undefined reference to 'g_string_insert_c' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:116: error: undefined reference to > 'g_strstr_len' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:xmlrpc-client.c:185: error: undefined reference to > 'g_strstr_len' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:/usr/include/glib-2.0/glib/gstring.h:153: error: > undefined reference to 'g_string_insert_c' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_call:/usr/include/glib-2.0/glib/gstring.h:153: error: > undefined reference to 'g_string_insert_c' > /usr/bin/ld: libgnetxmlrpc.a(xmlrpc-client.o): in function > gnet_xmlrpc_client_delete:xmlrpc-client.c:80: error: undefined reference to > 'g_free' > collect2: ld returned 1 exit status > make[4]: *** [test-xmlrpc-client] Error 1 >
I have just done an NMU to fix this long standing issue. Please find the diff below. diff -u gnet-2.0.8/debian/changelog gnet-2.0.8/debian/changelog --- gnet-2.0.8/debian/changelog +++ gnet-2.0.8/debian/changelog @@ -1,3 +1,11 @@ +gnet (2.0.8-2.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/patches/02_examples_link_glib2.0.patch: + - Link examples with libglib-2.0. Closes: #554644. + + -- Aurelien Jarno <aure...@debian.org> Thu, 08 Sep 2011 23:53:42 +0200 + gnet (2.0.8-2) unstable; urgency=low [ Josselin Mouette ] only in patch2: unchanged: --- gnet-2.0.8.orig/debian/patches/02_examples_link_glib2.0.patch +++ gnet-2.0.8/debian/patches/02_examples_link_glib2.0.patch @@ -0,0 +1,61 @@ +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554644 +Author: Aurelien Jarno <aure...@debian.org> + +Fix build with recent libtool version by linking examples with +libglib-2.0. + +--- gnet-2.0.8.orig/examples/xmlrpc/Makefile.am ++++ gnet-2.0.8/examples/xmlrpc/Makefile.am +@@ -17,10 +17,12 @@ + + test_xmlrpc_client_SOURCES = test-xmlrpc-client.c xmlrpc.h + test_xmlrpc_client_LDADD = \ ++ $(GLIB_LIBS) \ + libgnetxmlrpc.a \ + $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la + + test_xmlrpc_server_SOURCES = test-xmlrpc-server.c xmlrpc.h + test_xmlrpc_server_LDADD = \ ++ $(GLIB_LIBS) \ + libgnetxmlrpc.a \ + $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la +only in patch2: +unchanged: +--- gnet-2.0.8.orig/examples/xmlrpc/Makefile.in ++++ gnet-2.0.8/examples/xmlrpc/Makefile.in +@@ -269,11 +269,13 @@ + libgnetxmlrpc_a_LIBADD = $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la + test_xmlrpc_client_SOURCES = test-xmlrpc-client.c xmlrpc.h + test_xmlrpc_client_LDADD = \ ++ $(GLIB_LIBS) \ + libgnetxmlrpc.a \ + $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la + + test_xmlrpc_server_SOURCES = test-xmlrpc-server.c xmlrpc.h + test_xmlrpc_server_LDADD = \ ++ $(GLIB_LIBS) \ + libgnetxmlrpc.a \ + $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la + +--- gnet-2.0.8.orig/examples/Makefile.am ++++ gnet-2.0.8/examples/Makefile.am +@@ -22,7 +22,7 @@ + + AM_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) + INCLUDES = -I$(top_srcdir)/src +-LDADD = $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la ++LDADD = $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la $(GLIB_LIBS) + + ########## + +--- gnet-2.0.8.orig/examples/Makefile.in ++++ gnet-2.0.8/examples/Makefile.in +@@ -343,7 +343,7 @@ + CLEANFILES = $(EXTRA_PROGRAMS) + AM_CFLAGS = $(GLIB_CFLAGS) $(GTHREAD_CFLAGS) + INCLUDES = -I$(top_srcdir)/src +-LDADD = $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la ++LDADD = $(top_builddir)/src/libgnet-$(GNET_MAJOR_VERSION).$(GNET_MINOR_VERSION).la $(GLIB_LIBS) + + ########## + echoclient_SOURCES = echoclient.c -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org