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