discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: failure building gnustep cairo backend, and gnustep-examples on Open


From: Fred Kiefer
Subject: Re: failure building gnustep cairo backend, and gnustep-examples on OpenBSD sparc
Date: Tue, 17 May 2011 10:20:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10

Judging from the error message you are getting there could be two different reasons for the problem.

- Either the compiler has an issue with seeing "id" used as a variable name.

- Or, GLuint isn't defined at this place.

I currently don't have GL properly installed on my machine, so I cannot check here.

On 17.05.2011 09:20, Sebastian Reitenbach wrote:
I installed gnustep core on OpenBSD sparc, to see how it goes there. I also 
installed libobjc-1.6.0, as suggested by Riccardo. Building the examples failed 
this way:

gmake[2]: Entering directory 
`/home/ports/pobj/gnustep-examples-1.3.0/gnustep-examples-1.3.0/gui/MyGL'
Making all for app MyGL...
cc AppController.m -c \
               -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fPIC -DDEBUG 
-fno-omit-frame-pointer -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -g 
-fgnu-runtime -I/usr/X11R6/include -I. -I/usr/local/include 
-I/gnustep-examples-1.3.0_writes_to_HOME/GNUstep/Library/Headers 
-I/usr/local/include \
                -o obj/MyGL.obj/AppController.m.o
In file included from /usr/X11R6/include/GL/gl.h:2094,
                  from AppController.m:6:
/usr/X11R6/include/GL/glext.h:5072: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5073: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5076: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5077: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5380: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5912: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5913: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5916: syntax error before `id'
/usr/X11R6/include/GL/glext.h:5917: syntax error before `id'
/usr/X11R6/include/GL/glext.h:6409: syntax error before `id'

in glext.h, it looks like this for example lines 5072, 5073:
typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);

On the sparc, I use the gcc-2.95. It works all well on i386, where gcc 4.2.1 is 
used. The glext.h file is the same on both hosts.
Any idea what could be the cause, and how to fix this?
I got a similar problem when I tried to compile gnustep-back cairo backend, now 
I switched to xlib which compiled fine.

Sebastian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]