[gtkada] Problem building GtkAda

Tony Matthews tony at agmatthews.co.uk
Tue May 20 00:29:36 CEST 2003


----- Original Message -----
From: "Jerry van Dijk" <jvandyk at attglobal.net>
To: <gtkada at lists.act-europe.fr>
Sent: Friday, May 16, 2003 6:12 PM
Subject: [gtkada] Problem building GtkAda


>
> I am trying to build GtkAda 2.0.0 on Mandrake 9.1 using gnat 3.15p.
> However, the build stops with:
>
gcc -c -O2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/
atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetyp
e2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -fPIC gtkpsfont.c
> In file included from /usr/include/glib-2.0/glib.h:50,
>                  from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
>                  from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
>                  from /usr/include/gtk-2.0/gdk/gdk.h:30,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:31,
>                  from gtkpsfont.c:28:
> /usr/include/glib-2.0/glib/gmessages.h:116: warning: invalid character in
macro parameter name
> and a lot more messages like it.
>
> --
> --  Jerry van Dijk   | email: jvandyk at attglobal.net
> --  Leiden, Holland  | web:   users.ncrvnet.nl/gmvdijk
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.act-europe.fr
> http://lists.act-europe.fr/mailman/listinfo/gtkada


Jerry,

I'm using the same configuration as you and it took me quite a while to find
an answer to this (me not being a C/C++ programmer).

Open the file /usr/lib/glib-2.0/include/glibconfig.h and edit it to add an
entry for the 2.8.2 C compiler provided by Gnat3.15 similar to that for the
2.95.x compiler installed with Mandrake 9.1

/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi

* is passed ISO vararg support is turned off, and there is no work

* around to turn it on, so we unconditionally turn it off.

*/

#if __GNUC__ == 2 && __GNUC_MINOR__ == 95

# undef G_HAVE_ISO_VARARGS

#endif

/* Ditto for 2.8.1 */

#if __GNUC__ == 2 && __GNUC_MINOR__ == 8

# undef G_HAVE_ISO_VARARGS

#endif

Tony





More information about the gtkada mailing list