RE: Pollin



Nicholas,
 
I had that same problem, and I fought way too long with it.  I went
searching and I found that glibconfig.h is the file that should define
the various GLIB_SYSDEF* stuff.  In my case it seemed that the glib
install (cvs as of 1/6 at 5:00 p.m) wasn't copying glibconfig.h into 
the appropriate include directory.  In my case this was
/usr/local/include/glibconfig.h.  The fix:  I simply copied the file
from the base directory of the glib source (/usr/local/glib) and I was
golden. I thought for a while that it was just me and my system.  But
perhaps someone should look into whether glib installs glibconfig.h
correctly. For reference I have never had a problem in the three
months i have been compiling gnome cvs. I deleted, got, compiled, and
installed glib several times. I dunno, i'll look into it.

dan wolf

--------
> I'm sending this to both gtk-list and gnome-list in hopes that someone on
> either or both will know what's going wrong.
> 
> This is a recent problem that's come up on my system...have never seen it
> UNTIL the POLLIN information was placed into glib.h...meaning gtk+/glib
> 1.1.9 works fine, 1.1.11 and up break.
> 
> First: Machine specs.
> P166, 64 megs ram, slack3.4 originally, now using glibc2 and pgcc1.1.1
> glib and gtk 1.1.12 now, off the ftp, both ftp nor CVS versions have this
> problem. gnome-libs, gnome-core, gnome-objc, you name it, all fail.
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H
> -I../support -I../support -I../intl -I../intl -I/usr/local/include
> -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include
> -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include
> -I/usr/X11R6/include -DGNOMELIBDIR=\"/usr/local/lib\"
> -DGNOMEDATADIR=\"/usr/local/share\" -DGNOMEBINDIR=\"/usr/local/bin\"
> -DGNOMELOCALSTATEDIR=\"/usr/local/var\"
> -DGNOMELOCALEDIR=\"/usr/local/share/locale\"
> -DGNOMESYSCONFDIR=\"/usr/local/etc\" -DVERSION=\"0.99.1\"
> -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -g
> -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations
> -Wpointer-arith -Wp,-MD,.deps/gnome-config.p -c -fPIC -DPIC gnome-config.c
> In file included from gnome-config.c:29:
> /usr/local/include/glib.h:2360: parse error before `GLIB_SYSDEF_POLLIN'
> make[2]: *** [gnome-config.lo] Error 1
> make[2]: Leaving directory `/usr/local/src/gnome/gnome-libs/libgnome'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/gnome/gnome-libs'
> make: *** [all-recursive-am] Error 2
> 
> ooooooooooh. icky. following is the area of the problem:
> 
> typedef enum
> {
> G_IO_IN GLIB_SYSDEF_POLLIN,
> G_IO_OUT GLIB_SYSDEF_POLLOUT,
> G_IO_PRI GLIB_SYSDEF_POLLPRI,
> G_IO_ERR GLIB_SYSDEF_POLLERR,
> G_IO_HUP GLIB_SYSDEF_POLLHUP,
> G_IO_NVAL GLIB_SYSDEF_POLLNVAL
> } GIOCondition;
> 
> I'd say it looks right, unfortunately the extent of my programming skills
> consists of a very basic hello world program. 
> 
> This was built under kernel version 2.2.0pre4ac2, but was also showing the
> same problems under 2.0.36.
> 
> Any ideas? or do I just downgrade to glib/gtk 1.1.9 and live in the past.
> 
> Thanks for any replies you can come up with.
> 
> Nick Seafort




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