gcc -c -DV3RAP exrap.c
In file included from exrap.c:48:
../../DB/include/DB.h:253: error: syntax error before ‘GLfloat’
../../DB/include/DB.h:253: warning: no semicolon at end of struct or union
../../DB/include/DB.h:254: warning: data definition has no type or storage class
../../DB/include/DB.h:256: error: syntax error before ‘*’ token
../../DB/include/DB.h:256: warning: data definition has no type or storage class
../../DB/include/DB.h:257: error: syntax error before ‘}’ token
../../DB/include/DB.h:257: warning: data definition has no type or storage class
In file included from exrap.c:48:
../../DB/include/DB.h:713: error: syntax error before ‘GLfloat’
../../DB/include/DB.h:715: error: syntax error before ‘GLfloat’
../../DB/include/DB.h:718: error: syntax error before ‘GLfloat’
make[1]: *** [../lib/EXlib.a(exrap.o)] Error 1
make: *** [distr] Error 2
gcc -v:
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --program-prefix= --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)
The problem lies in setting DV3RAP=TRUE.
When TRUE, the command to compile exrap.c is:
gcc -c -DV3RAP exrap.c
when the command to compile exrap.c is suppose to be:
gcc -ansi -pedantic -Wall -ffloat-store -fsigned-char -O -DUNIX -DVARKON -I/usr/X11R6/include -c -o exrap.o exrap.c
with what ever DV3RAP is set to; otherwise, UNIX does not get set and the compiler cannot find GL.h