Bug#536955: gnubiff: FTBFS: nls.h:42:23: error: gnome.h: No such file or directory
On Wed, Jul 15, 2009 at 12:33:44AM +0200, Robert Sowada wrote: > > > In file included from support.h:36, > > > from gnubiff.cc:30: > > > nls.h:42:23: error: gnome.h: No such file or directory > > > gnubiff.cc: In function 'int main(int, char**)': > > > gnubiff.cc:129: error: 'exit' was not declared in this scope > > > gnubiff.cc:159: error: 'EXIT_SUCCESS' was not declared in this scope > > > gnubiff.cc:159: error: 'exit' was not declared in this scope > > > gnubiff.cc: In function 'int mainGNOME(int, char**)': > > > gnubiff.cc:195: error: 'LIBGNOMEUI_MODULE' was not declared in this scope > > > gnubiff.cc:196: error: 'GNOME_PARAM_NONE' was not declared in this scope > > > gnubiff.cc:196: error: 'gnome_program_init' was not declared in this scope > > > make[2]: *** [gnubiff.o] Error 1 > The file "gnome.h" is in the package "libgnomeui-dev". So this > package should be installed when compiling gnubiff with gnome > support enabled. I added a check in the upstream CVS so there will > be a configure message in the next released version instead of a > compiler error. Thanks, that helps, but is not _exactly_ what is causing the problem in Debian. In fact, libgnomeui-dev is already installed when building gnubiff since it is a transitive build-dependency of the package. The problem is caused by the fact that now libgnomeui has its own pkg-config name and .pc file. Hence that name should be checked for in configure.ac, the attached patch to that file does fix the problem. Cheers. PS I'm going to follow up with a NMU patch which will be uploaded to DELAYED/2 right away. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 z...@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime --- configure.ac.orig 2008-02-22 13:40:13.0 +0100 +++ configure.ac 2009-09-03 19:21:02.0 +0200 @@ -182,7 +182,7 @@ # GNOME support# ## if test "$OPT_USEGNOME" = "yes"; then - PKG_CHECK_MODULES(GNOME_PANEL_DEP,libpanelapplet-2.0, [ + PKG_CHECK_MODULES(GNOME_PANEL_DEP,[libpanelapplet-2.0 libgnomeui-2.0], [ AC_SUBST(GNOME_PANEL_DEP_CFLAGS) AC_SUBST(GNOME_PANEL_DEP_LIBS) AH_TEMPLATE([USE_GNOME])
Bug#536955: gnubiff: FTBFS: nls.h:42:23: error: gnome.h: No such file or directory
Hi, > > In file included from support.h:36, > > from gnubiff.cc:30: > > nls.h:42:23: error: gnome.h: No such file or directory > > gnubiff.cc: In function 'int main(int, char**)': > > gnubiff.cc:129: error: 'exit' was not declared in this scope > > gnubiff.cc:159: error: 'EXIT_SUCCESS' was not declared in this scope > > gnubiff.cc:159: error: 'exit' was not declared in this scope > > gnubiff.cc: In function 'int mainGNOME(int, char**)': > > gnubiff.cc:195: error: 'LIBGNOMEUI_MODULE' was not declared in this scope > > gnubiff.cc:196: error: 'GNOME_PARAM_NONE' was not declared in this scope > > gnubiff.cc:196: error: 'gnome_program_init' was not declared in this scope > > make[2]: *** [gnubiff.o] Error 1 The file "gnome.h" is in the package "libgnomeui-dev". So this package should be installed when compiling gnubiff with gnome support enabled. I added a check in the upstream CVS so there will be a configure message in the next released version instead of a compiler error. CU Robert :-) -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#536955: gnubiff: FTBFS: nls.h:42:23: error: gnome.h: No such file or directory
Package: gnubiff Version: 2.2.10-1 Severity: serious User: debian...@lists.debian.org Usertags: qa-ftbfs-20090713 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part: > make[2]: Entering directory > `/build/user-gnubiff_2.2.10-1-amd64-weQneQ/gnubiff-2.2.10/src' > Compiling gnubiff.cc... if x86_64-linux-gnu-g++ > -DHAVE_CONFIG_H -I. -I. -I../config -D_REENTRANT -pthread > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 > -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -DORBIT2=1 -pthread > -D_REENTRANT -I/usr/include/panel-2.0 -I/usr/include/gconf/2 > -I/usr/include/gtk-2.0 -I/usr/include/libbonoboui-2.0 > -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo > -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 > -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libxml2 > -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomecanvas-2.0 > -I/usr/include/libgnome-2.0 -I/usr/include/bonobo-activation-2.0 > -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 > -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include > -DGNUBIFF_LOCALEDIR=\""/usr/share/locale"\" > -DGNUBIFF_DATADIR=\""/usr/share/gnubiff"\" > -DGNUBIFF_ICONDIR=\""/usr/share/pixmaps"\" > -DGNUBIFF_UIDIR=\""/usr/share/gnome-2.0/ui"\" -DREAL_DATADIR=\""/usr/share"\" > -D_GNU_SOURCE -Wall -ansi -pedantic-g -O2 -MT gnubiff.o -MD -MP -MF > ".deps/gnubiff.Tpo" -c -o gnubiff.o gnubiff.cc; \ > then mv -f ".deps/gnubiff.Tpo" ".deps/gnubiff.Po"; else rm -f > ".deps/gnubiff.Tpo"; exit 1; fi > In file included from support.h:36, > from gnubiff.cc:30: > nls.h:42:23: error: gnome.h: No such file or directory > gnubiff.cc: In function 'int main(int, char**)': > gnubiff.cc:129: error: 'exit' was not declared in this scope > gnubiff.cc:159: error: 'EXIT_SUCCESS' was not declared in this scope > gnubiff.cc:159: error: 'exit' was not declared in this scope > gnubiff.cc: In function 'int mainGNOME(int, char**)': > gnubiff.cc:195: error: 'LIBGNOMEUI_MODULE' was not declared in this scope > gnubiff.cc:196: error: 'GNOME_PARAM_NONE' was not declared in this scope > gnubiff.cc:196: error: 'gnome_program_init' was not declared in this scope > make[2]: *** [gnubiff.o] Error 1 The full build log is available from: http://people.debian.org/~lucas/logs/2009/07/13/gnubiff_2.2.10-1_lsid64.buildlog A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on about 50 AMD64 nodes of the Grid'5000 platform, using a clean chroot. Internet was not accessible from the build systems. -- | Lucas Nussbaum | lu...@lucas-nussbaum.net http://www.lucas-nussbaum.net/ | | jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F | -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org