Re: gnome-libs



> I am trying to recompile gnome-libs and have run into this error:
> 
> In file included from gnometypes.c:6:
> gnometypebuiltins_evals.c:212: `GTK_CALENDAR_FONT_HEADING' undeclared
> here (not in a function)
> gnometypebuiltins_evals.c:212: initializer element for
> `_gtk_calendar_font_values[0].value' is not constant
> gnometypebuiltins_evals.c:213: `GTK_CALENDAR_FONT_DAY_NAME' undeclared
> here (not in a function)
> gnometypebuiltins_evals.c:213: initializer element for
> `_gtk_calendar_font_values[1].value' is not constant
> gnometypebuiltins_evals.c:214: `GTK_CALENDAR_FONT_DAY' undeclared here
> (not in a function)
> gnometypebuiltins_evals.c:214: initializer element for
> `_gtk_calendar_font_value [2].value' is not constant
> gnometypebuiltins_evals.c:218: `GTK_CALENDAR_COLOR_HEADING' undeclared
> here (not in a function)
> gnometypebuiltins_evals.c:218: initializer element for
> `_gtk_calendar_color_values[0].value' is not constant
> gnometypebuiltins_evals.c:219: `GTK_CALENDAR_COLOR_DAY_NAME' undeclared
> here (not in a function)
> gnometypebuiltins_evals.c:219: initializer element for
> `_gtk_calendar_color_values[1].value' is not constant
> gnometypebuiltins_evals.c:220: `GTK_CALENDAR_COLOR_PREV_MONTH'
> undeclared here (not in a function)
> gnometypebuiltins_evals.c:220: initializer element for
> `_gtk_calendar_color_values[2].value' is not constant
> gnometypebuiltins_evals.c:221: `GTK_CALENDAR_COLOR_NEXT_MONTH'
> undeclared here (not in a function)
> gnometypebuiltins_evals.c:221: initializer element for
> `_gtk_calendar_color_values[3].value' is not constant
> gnometypebuiltins_evals.c:222: `GTK_CALENDAR_COLOR_NORMAL_DAY'
> undeclared here (not in a function)
> gnometypebuiltins_evals.c:222: initializer element for
> `_gtk_calendar_color_values[4].value' is not constant
> gnometypes.c:9: warning: no previous prototype for `gnome_type_init'
> make[2]: *** [gnometypes.lo] Error 1
> make[2]: Leaving directory `/usr/src/gnomecvs/gnome-libs/libgnomeui'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/gnomecvs/gnome-libs'
> make: *** [all-recursive-am] Error 2
> 
> any advice is appreciated

I think the problem is that some of the routines in libgnomeui want
to include libgnomeui/gtkcalendar.h (which has, among other things, enums
for GTK_CALENDAR_FONT_* and GTK_CALENDAR_COLOR_*)

This is supposed to be included by a line in libgnomeui/libgnomeui.h
which looks like:

	#ifndef __GTK_CALENDAR_H__
	#include "libgnomeui/gtkcalendar.h"
	#endif

Unfortunately, there are a bunch of other files included before this
line and several of those files include <gtk/gtk.h>, which includes
<gtk/gtkcalendar.h>, which defines __GTK_CALENDAR_H__, so
libgnomeui/gtkcalendar.h is never used.

One thing I tried was to move the above lines to just below the

	#include "libgnomeui/gnome-uidefs.h"

line in libgnomeui/libgnomeui.h.

This got things compiled, but is obviously not the right solution,
since, test-gnome/test-gnome now spews out:

	Gtk-WARNING **: gtk_type_create(): type `GtkCalendarDisplayOptions' already exists.

	** ERROR **: file gnometypes.c: line 31 (gnome_type_init): assertion failed: (type_id != GTK_TYPE_INVALID)
	aborting...

and dumps core.

I haven't had time to do any further investigation...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]