[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make: syntax error before "G_GNUC_SENTINEL"
From: |
Stephen Berman |
Subject: |
Re: make: syntax error before "G_GNUC_SENTINEL" |
Date: |
Wed, 06 Jul 2005 00:26:37 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
On Tue, 5 Jul 2005 17:11:17 +0200 "Jan D." <address@hidden> wrote:
>>>> /opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:163: error:
>>>> syntax error before "G_GNUC_SENTINEL"
>
>>> Did you update your Suse system between Emacs compiles?
>>>
>>
>> As a matter of fact, yes -- and that's what caused the problem...
>>
>>
>>> Try looking for G_GNUC_SENTINEL in the include files at
>>> /usr/include, /usr/local/ include, /usr/X11R6/include and possibly
>>> /usr/lib/gcc-lib.
>>>
>>
>> It's not there, nor anywhere else. Among the updated packages was
>> glib2, updated from 2.6.3 to 2.7.0. G_GNUC_SENTINEL is defined in
>> /opt/gnome/include/glib-2.0/glib/gmacros.h in the earlier version,
>> but not in the later version. In fact, the only difference between
>> the two versions of gmacros.h is this:
>
>
> I think you have incompatible versions. The 2.7.* versions and 2.6.*
> versions are not ment to be mixed. If you use Gtk 2.6.4 you shall
> use a glib version 2.6.* also. Or if you use glib 2.7.*, you need a
> Gtk 2.7.* also. In addition to that, it seems that Suse has altered
> the glib 2.6.3 source. G_GNUC_SENTINEL is not in the source for glib
> 2.6.3 as found on www.gtk.org.
>
> You can find the current versions here: ftp://ftp.gtk.org/pub/gtk/
> v2.7/, and for 2.6, here: ftp://ftp.gtk.org/pub/gtk/v2.6/.
>
> I suggest downgrading back to the previous version of glib. 2.7 is
> the unstable series, so unless you really need something that has
> been added or fixed in 2.7, there is no reason to use 2.7.
I downgraded glib2 and could then build the latest CVS Emacs with the
gtk toolkit as usual without a problem. It's strange that SUSE would
make incompatible versions of glib2 and gtk2 available as the most
recent rpms on their ftp server. I sent them a note to make them
aware of the consequences. Thanks again for your help and advice.
Steve Berman