gnome-core problem persistant



Greets all,

I've been working on packaging gnome for Slackware 4.0.  I've compiled
most everything up to gnome-core 1.0.5.  My programming skills are very
basic but I get INT_MAX undefined errors in panel/session.c,menu.c, and
a few others.  All of these files #include <limits.h> which does define
INT_MAX with the folowing stateements

/* Minimum and maximum values a `signed int' can hold.  */
#define INT_MIN (- INT_MAX - 1)
#define INT_MAX 2147483647

However I still get errors like this


gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.        -I../intl      
-I../intl -I../panel    -DGNOMELOCALEDIR=\""/usr/share/locale"\"       
-I/usr/include -I/usr/include -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/X11R6/lib/glib/include
-I/usr/X11R6/include -I/usr/X11R6/lib/glib/include -I/usr/X11R6/include
-I/usr/include  -I/usr/include  -I/usr/X11R6/include
-I/usr/X11R6/lib/glib/include -I/usr/X11R6/include  -g -O2 -Wall
-Wno-unused  -c panel-widget.c
panel-widget.c: In function `panel_widget_init':
panel-widget.c:1401: `INT_MAX' undeclared (first use in this function)
panel-widget.c:1401: (Each undeclared identifier is reported only once
panel-widget.c:1401: for each function it appears in.)
panel-widget.c: In function `panel_widget_new':
panel-widget.c:1460: `INT_MAX' undeclared (first use in this function)
make[2]: *** [panel-widget.o] Error 1
make[2]: Leaving directory `/usr/src/gnome/gnome-core-1.0.5/panel'


going into each of these .c files and #defining INT_MAX according to the
limits.h fixes the problem, but it seems like this shouldn't be
happening at  all.

Can anyone shed some light on this situation, would it be a slackware
bug?

-Brian



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