[ale] Remedial C++/gcc/build question
Jim Popovitch
yahoo at jimpop.com
Sat Mar 8 11:27:08 EST 2008
On Sat, Mar 8, 2008 at 9:25 AM, John Mills <johnmills at speakeasy.net> wrote:
> 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?
John,
Probably will need to see the code lines before "#if __GNUC__ >=
4". Also, you might want to see if either of these two URLs offer
some insight. My SUSE knowledge is nil.
http://www.mail-archive.com/emacs-pretest-bug@gnu.org/msg02347.html
http://albatross.dnsdojo.net/apache2-default/wiki/index.php/Ghemical
-Jim P.
More information about the Ale
mailing list