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 86587 - gtk+ fails to get build for the latest cvs head - 27 Jun 2002
gtk+ fails to get build for the latest cvs head - 27 Jun 2002
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other Solaris
: High major
: ---
Assigned To: gtk-bugs
gtk-bugs
: 90254 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-06-27 03:28 UTC by Ashok Venkiteswaran
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Ashok Venkiteswaran 2002-06-27 03:28:26 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)
Comment 1 Luis Villa 2002-07-02 16:03:21 UTC
Is this still a problem, Ashok? Can you please close if not?
Comment 2 Owen Taylor 2002-07-02 16:36:02 UTC
No, this hasn't been fixed. (It's easy enough to work around
by forcing the file to be built manully)
Comment 3 Laszlo (Laca) Peter 2002-07-03 09:53:18 UTC
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
Comment 4 Owen Taylor 2002-07-30 02:45:55 UTC
Downgrading priority/severity, since a manual workaround is
pretty easy - just do a 'make gdkenumtypes.h' 
Comment 5 Owen Taylor 2002-08-08 21:25:17 UTC
*** Bug 90254 has been marked as a duplicate of this bug. ***
Comment 6 jacob berkman 2002-08-09 17:29:12 UTC
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.
Comment 7 Owen Taylor 2002-08-09 23:11:00 UTC
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.
Comment 8 Owen Taylor 2002-11-08 23:18:14 UTC
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)