[ale] Remedial C++/gcc/build question

John Mills johnmills at speakeasy.net
Sat Mar 8 09:25:40 EST 2008


Jim -

Thanks for the lead. I may have tracked this back to 
'/opt/gnome/include/glib-2.0/glib/gmacros.h':

#if     __GNUC__ >= 4
#define G_GNUC_SENTINEL(x) __attribute__((__sentinel__(x)))
#else
#define G_GNUC_SENTINEL(x)
#endif

I'm building with gcc-3.3.5, so the macro "G_GNUC_SENTINEL(x)" has an 
empty definition as suggested by the compilation error message:

gcc -fno-strict-aliasing -g -O2 -Wall -I../include -I/usr/X11R6/include 
-pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 
-I/usr/include/freetype2/config -I/opt/gnome/include/gtk-2.0 
-I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 
-DGTK_ENABLE_BROKEN -I/usr/X11R6/include -c xgnokii.c  -fPIC -DPIC -o 
.libs/xgnokii.o
In file included from 
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33,
                  from /opt/gnome/include/gtk-2.0/gdk/gdkcursor.h:5,
                  from /opt/gnome/include/gtk-2.0/gdk/gdk.h:31,
                  from /opt/gnome/include/gtk-2.0/gtk/gtk.h:31,
                  from xgnokii.c:43:
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:167: error: syntax 
error before "G_GNUC_SENTINEL"
/opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:167: warning: type 
defaults to `int' in declaration of `G_GNUC_SENTINEL'


Any suggested work-arounds?

  - Mills

On Sat, 8 Mar 2008, Jim Popovitch wrote:

> On Fri, Mar 7, 2008 at 9:46 PM, John Mills <johnmills at speakeasy.net> wrote:
>> ALErs -
>>
>>  I'm trying to build the 'xgnokii' GUI of 'gnokii-0.6.22' in a SuSE-9.3
>>  environment using gcc-c++-3.3.5-5 and gdk-pixbuf-gnome-0.22.0-67.
>>
>>  Compilation crashes on several prototypes in 'gdk-pixbuf-core.h' and
>>  'gtk-object.h' such as:

>>  gboolean gdk_pixbuf_save           (GdkPixbuf  *pixbuf,
>>                                      const char *filename,
>>                                      const char *type,
>>                                      GError    **error,
>>                                      ...) G_GNUC_SENTINEL(0);


More information about the Ale mailing list