Re: problems with gnome-libs(glib.h)



> All,
> 
> I'm rather new to GNOME and CVS, so I hope that sending compiler error
> messages to the list is acceptable.
> 
> Today I updated the sources from the CVS server, and there were no
> problems until i got to gnome-libs. I haven't seen anything on the list
> recently about this problem, nor was anything in the FAQ. The error
> message is as follows.
> 
> 
> make[2]: Entering directory `/opt/gnomesource/gnome-libs/libgnome'
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/opt/gnome/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\""/opt/gnome/lib"\" -DGNOMEDATADIR=\""/opt/gnome/share"\" -DGNOMEBINDIR=\""/opt/gnome/bin"\" -DGNOMELOCALSTATEDIR=\""/opt/gnome/var"\" -DGNOMELOCALEDIR=\""/opt/gnome/share/locale"\" -DGNOMESYSCONFDIR=\""/opt/gnome/etc"\" -DVERSION=\""0.30"\" -I/usr/X11R6/include -I/opt/gnome/lib/glib/include -I/opt/gnome/include -g -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith  -c gnome-config.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -DNEED_GNOMESUPPORT_H -I../support -I../support -I../intl -I../intl -I/opt/gnome/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -I/usr/X11R6/include -DGNOMELIBDIR=\"/opt/gnome/lib\" -DGNOMEDATADIR=\"/opt/gnome/share\" -DGNOMEBINDIR=\"/opt/gnome/bin\" -DGNOMELOCALSTATEDIR=\"/opt/gnome/var\" -DGNOMELOCALEDIR=\"/opt/gnome/share/locale\" -DGNOMESYSCONFDIR=\"/opt/gnome/etc\" -DVERSION=\"0.30\" -I/usr/X11R6/include -I/opt/gnome/lib/glib/include -I/opt/gnome/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:30:
> /opt/gnome/include/glib.h:510: parse error before `gssize'
> /opt/gnome/include/glib.h:510: warning: data definition has no type or storage class

> I updated glib thinking that maybe it was fixed already, but it hasn't
> worked for me. This was also happening with yesterdays code. Any
> suggestions as to what i should do?

I ran into this the other day and after much hunting I found _two_ 
glibconfig.h files in my include path, one was an autoconf style one (#undef 
blah blah) and
the other one was the real one. The corrupted one was installed in the regular
include area (mine was in /usr/include) the real one lives in the lib dir ( 
mine is /usr/lib/glib/include) remove the one in $prefix/include and that 
should correct the problem.

> 
> Thanks,
> -- 
> Paul Visscher
> madder@one.net
> <-><-><-><-><->
> #include <disclaimer.h>
> "It wasn't that coherent, but it was definitely porn."
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.




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