Re: Building error with gmessages.h on Gnome 2/S9.
- From: Malcolm Tredinnick <malcolm commsecure com au>
- To: gnome-libs-devel gnome org
- Subject: Re: Building error with gmessages.h on Gnome 2/S9.
- Date: Sat, 3 May 2003 20:32:52 +1000
On Sat, May 03, 2003 at 04:47:55PM +0800, 725eb0c8ef771c09ee wrote:
> Hi all,
> I'm now using Sun Forte 6U1 on S9 with Gnome 2 installed to build
> a gnome application. The application builds ok using gcc-3.2.
> But when I use Forte 6U1 CC to build it, it fails for compiling
> gmessage.h:
>
> ~/>which CC
> .../SC6.1-s10/WS6U1/bin/CC
> ~/CC testapp.cpp -o testapp -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/include/orbit-2.0 -I/usr/include/libxml2 -I/usr/include/linc-1.0
> -I/usr/include/gconf/2 -DG_DISABLE_DEPRECATED
> -DMODULES_PATH=/usr/local/lib/vfs/modules ...
> -lxml2 -lz -lgconf-2 -lORBit-2 -lm -llinc -lgmodule-2.0 -ldl -lgobject-2.0
> -lgthread-2.0 -lpthread -lglib-2.0 -lpopt -lrt ...
>
> "/usr/include/glib-2.0/glib/gmessages.h", line 113: Error: Identifier list
> expected instead of "...".
> "/usr/include/glib-2.0/glib/gmessages.h", line 116: Error: Identifier list
> expected instead of "...".
> "/usr/include/glib-2.0/glib/gmessages.h", line 119: Error: Identifier list
> expected instead of "...".
> "/usr/include/glib-2.0/glib/gmessages.h", line 122: Error: Identifier list
> expected instead of "...".
>
> Since gmessages.h is a basic gnome header, did anybody see the problem before?
> I didn't install any Forte 6U1 CC patches. Seems that it's a problem with Forte
> 6U1
> CC itself. Is there any patches available ? Could you give any comments for
> investigation ?
So for some reason you have G_HAVE_ISO_VARARGS defined but your compiler
does not support varargs in macros. What does the configure script say
when it gets to the bit about "Checking for ISO C99 varargs macros in
C"? That test builds a small test program including varargs in a macro.
If that test passes, then the above code should compile and vice versa.
You did rerun configure when you changed the C compiler, right?
Cheers,
Malcolm
--
Despite the cost of living, have you noticed how popular it remains?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]