Bug#300873: libgnome: FTBFS (amd64/gcc-4.0): array type has incomplete element type

Andreas Jochens Andreas Jochens <aj@andaco.de>, 300873@bugs.debian.org
Tue, 22 Mar 2005 13:42:05 +0100


Package: libgnome
Severity: normal
Tags: patch

When building 'libgnome' on amd64 with gcc-4.0,
I get the following error:

if /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./..  -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0   -DG_DISABLE_DEPRECATED -DLIBGNOME_PREFIX=\""/usr"\" -DLIBGNOME_LIBDIR=\""/usr/lib"\" -DLIBGNOME_DATADIR=\""/usr/share"\" -DLIBGNOME_BINDIR=\""/usr/bin"\" -DLIBGNOME_LOCALSTATEDIR=\""/var/lib"\" -DLIBGNOME_SYSCONFDIR=\""/etc"\" -DVERSION=\""2.8.1"\" -DGNOMEVFSVERSION=\"2.8.4\" -DG_LOG_DOMAIN=\"Gnome\"    -Wall -g -MT gnome-gconf.lo -MD -MP -MF ".deps/gnome-gconf.Tpo" \
  -c -o gnome-gconf.lo `test -f 'gnome-gconf.c' || echo './'`gnome-gconf.c; \
then mv -f ".deps/gnome-gconf.Tpo" ".deps/gnome-gconf.Plo"; \
else rm -f ".deps/gnome-gconf.Tpo"; exit 1; \
fi
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -DG_DISABLE_DEPRECATED -DLIBGNOME_PREFIX=\"/usr\" -DLIBGNOME_LIBDIR=\"/usr/lib\" -DLIBGNOME_DATADIR=\"/usr/share\" -DLIBGNOME_BINDIR=\"/usr/bin\" -DLIBGNOME_LOCALSTATEDIR=\"/var/lib\" -DLIBGNOME_SYSCONFDIR=\"/etc\" -DVERSION=\"2.8.1\" -DGNOMEVFSVERSION=\"2.8.4\" -DG_LOG_DOMAIN=\"Gnome\" -Wall -g -MT gnome-gconf.lo -MD -MP -MF .deps/gnome-gconf.Tpo -c gnome-gconf.c  -fPIC -DPIC -o .libs/gnome-gconf.o
gnome-gconf.c:33: error: array type has incomplete element type
make[4]: *** [gnome-gconf.lo] Error 1
make[4]: Leaving directory `/libgnome-2.8.1/libgnome'

With the attached patch 'libgnome' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libgnome-2.8.1/libgnome/gnome-gconf.c ./libgnome/gnome-gconf.c
--- ../tmp-orig/libgnome-2.8.1/libgnome/gnome-gconf.c	2004-10-10 17:04:30.000000000 +0200
+++ ./libgnome/gnome-gconf.c	2005-03-22 13:21:48.021232120 +0100
@@ -30,6 +30,7 @@
 #define GCONF_ENABLE_INTERNALS
 #include <gconf/gconf.h>
 #include <gconf/gconf-client.h>
+#include <popt.h>
 extern struct poptOption gconf_options[];
 
 #include "gnome-i18nP.h"