Bug#303646: gtk+2.0: FTBFS (amd64/gcc-4.0): 'gdk_pixbuf_save_to_callback' aliased to undefined symbol 'IA__gdk_pixbuf_save_to_callback'

Andreas Jochens Andreas Jochens <aj@andaco.de>, 303646@bugs.debian.org
Thu, 07 Apr 2005 22:56:56 +0200


Package: gtk+2.0
Version: 2.6.4-1
Severity: normal

When building 'gtk+2.0' on amd64/unstable with the latest version of gcc-4.0,
I get the following error:

gdk-pixbuf-alias.h:347: error: 'gdk_pixbuf_save_to_callback' aliased to undefined symbol 'IA__gdk_pixbuf_save_to_callback'
gdk-pixbuf-alias.h:351: error: 'gdk_pixbuf_save_to_callbackv' aliased to undefined symbol 'IA__gdk_pixbuf_save_to_callbackv'
gdk-pixbuf-alias.h:355: error: 'gdk_pixbuf_savev' aliased to undefined symbol 'IA__gdk_pixbuf_savev'
gdk-pixbuf-alias.h:359: error: 'gdk_pixbuf_scale' aliased to undefined symbol 'IA__gdk_pixbuf_scale'
gdk-pixbuf-alias.h:363: error: 'gdk_pixbuf_scale_simple' aliased to undefined symbol 'IA__gdk_pixbuf_scale_simple'
gdk-pixbuf-alias.h:375: error: 'gdk_pixdata_deserialize' aliased to undefined symbol 'IA__gdk_pixdata_deserialize'
gdk-pixbuf-alias.h:379: error: 'gdk_pixdata_from_pixbuf' aliased to undefined symbol 'IA__gdk_pixdata_from_pixbuf'
gdk-pixbuf-alias.h:383: error: 'gdk_pixdata_serialize' aliased to undefined symbol 'IA__gdk_pixdata_serialize'
gdk-pixbuf-alias.h:387: error: 'gdk_pixdata_to_csource' aliased to undefined symbol 'IA__gdk_pixdata_to_csource'
make[5]: *** [gdk-pixbuf.lo] Error 1
make[5]: Leaving directory `/gtk+2.0-2.6.4/build-tree/gtk+-2.6.4-static/gdk-pixbuf'

With the attached patch 'gtk+2.0' can be compiled on amd64 using gcc-4.0.

However, I am not sure what is going on here and I do not know
if the patch below makes any sense.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gtk+2.0-2.6.4/debian/rules ./debian/rules
--- ../tmp-orig/gtk+2.0-2.6.4/debian/rules	2005-04-07 22:06:31.805179781 +0200
+++ ./debian/rules	2005-04-07 21:29:43.000000000 +0200
@@ -81,6 +81,7 @@
 			--sysconfdir=/etc \
 			--with-html-dir=\$${prefix}/share/doc/libgtk$(apiver)-doc \
 			--with-xinput=yes \
+			--disable-visibility \
 			--enable-shared \
 			--disable-static
 
@@ -110,6 +111,7 @@
 			--with-included-loaders=yes \
 			--disable-modules \
 			--disable-shared \
+			--disable-visibility \
 			--enable-static \
 			$(STATIC_CONFIG_ARGS)