After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630756 - 0.6.4 fails to build with newer version of gobject-introspection (git)
0.6.4 fails to build with newer version of gobject-introspection (git)
Status: RESOLVED FIXED
Product: libgdata
Classification: Platform
Component: General
0.6.x
Other Linux
: Normal normal
: ---
Assigned To: libgdata-maint
libgdata-maint
Depends on:
Blocks:
 
 
Reported: 2010-09-27 19:04 UTC by Kjartan Maraas
Modified: 2010-09-29 10:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kjartan Maraas 2010-09-27 19:04:33 UTC
I see this when trying to build libgdata 0.6.4 in jhbuild for GNOME 2.32:

  CC     gdata/services/youtube/gdata_libgdata_la-gdata-youtube-control.lo
  CCLD   gdata/libgdata.la
  GEN    gdata/GData-0.0.gir
In file included from ./gdata/gdata-entry.h:26:0,
                 from /home/kmaraas/src/gnome/libgdata-0.6.4/gdata/gdata.h:24,
                 from <stdin>:4:
./gdata/gdata-parsable.h:25:27: fatal error: libxml/parser.h: Ingen slik fil eller filkatalog
compilation terminated.
Error while processing the source.
make[2]: *** [gdata/GData-0.0.gir] Error 1
make[2]: Leaving directory `/home/kmaraas/src/gnome/libgdata-0.6.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kmaraas/src/gnome/libgdata-0.6.4'
make: *** [all] Error 2
*** Error during phase build of libgdata: ########## Error running make   *** [1/1]

Adding GDATA_CFLAGS to the include flags like this fixed it for me:

--- Makefile.am	2010-09-27 21:03:59.876716755 +0200
+++ Makefile.am.fixed	2010-09-27 21:03:41.246594050 +0200
@@ -373,7 +373,7 @@ gdata/GData-$(GDATA_API_VERSION).gir: Ma
 	--namespace GData --nsversion=$(GDATA_API_VERSION)				\
 	--c-include="gdata/gdata.h" --include=libxml2-2.0 --include=Soup-2.4		\
 	--library=gdata/libgdata.la $(_gir_libtool) --output $@				\
-	-I$(top_srcdir) -I$(top_srcdir)/gdata 						\
+	-I$(top_srcdir) -I$(top_srcdir)/gdata $(GDATA_CFLAGS)				\
 	$(addprefix $(srcdir)/,$(gdatainclude_HEADERS) $(gdataatominclude_HEADERS)	\
 	$(gdatagdinclude_HEADERS) $(gdatamediainclude_HEADERS)				\
 	$(gdatacalendarinclude_HEADERS) $(gdatacontactsinclude_HEADERS)			\
Comment 1 Philip Withnall 2010-09-29 10:25:05 UTC
I'll make a 0.6.5 release soon with this fix, thanks.

commit 5ae47439ff98f8e75b8b0e5c6410e1eb95f4b111
Author: Kjartan Maraas <kmaraas@gnome.org>
Date:   Wed Sep 29 11:22:55 2010 +0100

    introspection: Fix build with gobject-introspection >= 0.9.7
    
    Closes: bgo#630756

 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)