I am new to GNOME and would like to develop for it.
So I try to build the DevTools from CVS.
If I try to compile glimmer, I get the following
error message :
In file included from
/usr/include/gtksourceview/gtksourcebuffer.h:30,
from ../../libglimmerfile/glimmer-file.h:26, from ../../libglimmerfile/glimmer-file-utils.h:25, from glimmer-style-cache.c:21: /usr/include/regex.h:535:1: "__restrict_arr" redefined In file included from /usr/include/features.h:283, from /usr/include/limits.h:26, from /usr/lib/glib-2.0/include/glibconfig.h:11, from /usr/include/glib-2.0/glib/gtypes.h:30, from /usr/include/glib-2.0/glib/galloca.h:30, from /usr/include/glib-2.0/glib.h:30, from /usr/include/gtk-2.0/gdk/gdktypes.h:32, from /usr/include/gtk-2.0/gdk/gdkcolor.h:4, from /usr/include/gtk-2.0/gdk/gdk.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:31, from glimmer-style-cache.c:18: /usr/include/sys/cdefs.h:212:1: this is the location of the previous definition make[5]: *** [glimmer-style-cache.lo] Error 1 make[5]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile/glimmer-style-cache' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile/glimmer-style-cache' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/cvs/glimmer' make: *** [all] Error 2 It seems to me to be a problem of glibc,
because it has defined the macro "__restrict_arr"
twice. So I #undef'd it in /libglimmerfile/glimmer-style-cache/glimmer-style-cache.c before it is redefined - right after #include <gtk/gtk.h>, but then I get the following "error" without any information given on it by the compiler : gcc -DHAVE_CONFIG_H -I. -I. -I../..
-DDATADIR=\"/usr/share\" -DPREFIX=\"/usr\" -DG_LOG_DOMAIN=\"GlimmerStyleCache\"
-I../.. -I../../libglimmerfile -I/usr/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gtksourceview
-I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0
-I/usr/include/linc-1.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/libbonoboui-2.0
-I/usr/include/libgnome-2.0 -I/usr/include/gconf/2 -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnomeprint-2.0 -I/usr/include/libgnomeprintui-2.0
-I/usr/include/libglade-2.0 -O2 -march=i586 -mcpu=pentium2 -Wall -Werror -c
glimmer-style-cache.c -MT glimmer-style-cache.lo -MD -MP -MF
.deps/glimmer-style-cache.TPlo -fPIC -DPIC -o
.libs/glimmer-style-cache.lo
cc1: changing search order for system directory "/usr/include" cc1: as it has already been specified as a non-system directory make[5]: *** [glimmer-style-cache.lo] Error 1 make[5]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile/glimmer-style-cache' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile/glimmer-style-cache' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/src/cvs/glimmer/libglimmerfile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/cvs/glimmer' make: *** [all] Error 2 Does someone know a solution ?
Thanks,
Norman
|