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.000000000 +0100
+++ configure.ac	2009-09-03 19:21:02.000000000 +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])

Reply via email to