GNOME Bugzilla – Bug 86587
gtk+ fails to get build for the latest cvs head - 27 Jun 2002
Last modified: 2011-02-04 16:11:52 UTC
gtk+ fails to get build with the following error in Linux with the following error. The header file gdk/gdkenumtypes.h seems to be missing which causes this failure. gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" - DINSIDE_GDK_X11 -I.. /.. -I../../gdk -I../../gdk -DG_ENABLE_DEBUG -D_REENTRANT -I/opt/gnome- 2.0/inclu de/glib-2.0 -I/opt/gnome-2.0/lib/glib-2.0/include -I/opt/gnome- 2.0/include/pango -1.0 -I/opt/gnome-2.0/include/freetype2 -I/opt/gnome-2.0/include -g - I/opt/gnome -2.0/include -Wall -Wp,-MD,.deps/gdkcolor-x11.pp -c gdkcolor-x11.c -fPIC - DPIC -o gdkcolor-x11.o In file included from ../../gdk/x11/gdkdisplay-x11.h:33, from gdkprivate-x11.h:38, from gdkx.h:75, from gdkcolor-x11.c:31: ../../gdk/gdk.h:35:30: gdk/gdkenumtypes.h: No such file or directory make[3]: *** [gdkcolor-x11.lo] Error 1 make[3]: Leaving directory `/gnome-build/2.0/nightly/src-2.0n- 270602/gtk+/gdk/x1 1' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/gnome-build/2.0/nightly/src-2.0n- 270602/gtk+/gdk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/gnome-build/2.0/nightly/src-2.0n-270602/gtk+' make: *** [all-recursive-am] Error 2 --->8--- output of make command ends ------ ERROR: Failed to compile package gtk+ (2)
Is this still a problem, Ashok? Can you please close if not?
No, this hasn't been fixed. (It's easy enough to work around by forcing the file to be built manully)
The problem is that gdkenumtypes.[ch] is not generated before building the x11 subdir. Suggested fix: Index: gdk/Makefile.am =================================================================== RCS file: /cvs/GNOME-RE/gtk+/gdk/Makefile.am,v retrieving revision 1.88 diff -u -r1.88 Makefile.am --- gdk/Makefile.am 2002/06/20 23:29:16 1.88 +++ gdk/Makefile.am 2002/07/03 09:41:26 @@ -196,7 +196,7 @@ endif #note: not gdkconfig.h -BUILT_SOURCES = stamp-gc-h +BUILT_SOURCES = stamp-gc-h stamp-gdkenumtypes.h # Generate built header without using automake-1.4 BUILT_SOURCES $(libgdk_x11_2_0_la_OBJECTS) $(libgdk_linux_fb_2_0_la_OBJECTS) $(libgdk_win32_2_0_la_OBJECTS): gdkenumtypes.h gdkmarshalers.h
Downgrading priority/severity, since a manual workaround is pretty easy - just do a 'make gdkenumtypes.h'
*** Bug 90254 has been marked as a duplicate of this bug. ***
so one lame thing we could do is in x11/ have a rule to build the header. for the snaps i'm just going to do the manual make line.
When I looked at it yesterday, the two options looked like: a) An evil rule in x11 like: $(gdk_x11_la_OBJECTS): update-enum-types update-enum-types: @cd $(top_builddir)/gdk && make $(AM_MAKEFLAGS) gdkenumtypes.h .PHONY: update-enum-types b) Use BUILT_SOURCES I'm not sure how reliable a) would be ... I've had problems before with rules like that. b) is problematical without upgrading automake 1.5 or 1.6, since BUILT_SOURCES has weird side effects in automake 1.4.
Fri Nov 8 18:04:16 2002 Owen Taylor <otaylor@redhat.com> * gdk/{linux-fb,win32,11}/Makefile.am: Add in a awful hack to force gdkenumtypes.h to be updated before building the subdir. (#86587)