R5441 FreeBSD 8.0 build problem

Hello.

I thought I’d try compiling SDL from SVN on FreeBSD and ran into
the following:

/bin/sh ./build-scripts/updaterev.sh
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -mmmx -msse -msse2 -fvisibility=hidden -I/usr/local/include -I/usr/local/include -DHAVE_USBHID_H -DUSBHID_NEW -D_REENTRANT -D_THREAD_SAFE -MMD -MT build/SDL_renderer_gl.lo -c src/video/SDL_renderer_gl.c -o build/SDL_renderer_gl.lo
libtool: compile: gcc -g -O2 -I./include -mmmx -msse -msse2 -fvisibility=hidden -I/usr/local/include -I/usr/local/include -DHAVE_USBHID_H -DUSBHID_NEW -D_REENTRANT -D_THREAD_SAFE -MMD -MT build/SDL_renderer_gl.lo -c src/video/SDL_renderer_gl.c -fPIC -DPIC -o build/.libs/SDL_renderer_gl.o
In file included from src/video/SDL_renderer_gl.c:27:
./include/SDL_opengl.h:4527: error: redefinition of typedef ‘PFNGLCOLORTABLEPROC’
/usr/local/include/GL/gl.h:1739: error: previous declaration of ‘PFNGLCOLORTABLEPROC’ was here
./include/SDL_opengl.h:4528: error: redefinition of typedef ‘PFNGLCOLORTABLEPARAMETERFVPROC’
/usr/local/include/GL/gl.h:1740: error: previous declaration of ‘PFNGLCOLORTABLEPARAMETERFVPROC’ was here
./include/SDL_opengl.h:4529: error: redefinition of typedef ‘PFNGLCOLORTABLEPARAMETERIVPROC’
/usr/local/include/GL/gl.h:1741: error: previous declaration of ‘PFNGLCOLORTABLEPARAMETERIVPROC’ was here
./include/SDL_opengl.h:4530: error: redefinition of typedef ‘PFNGLCOPYCOLORTABLEPROC’
/usr/local/include/GL/gl.h:1742: error: previous declaration of ‘PFNGLCOPYCOLORTABLEPROC’ was here
./include/SDL_opengl.h:4531: error: redefinition of typedef ‘PFNGLGETCOLORTABLEPROC’
/usr/local/include/GL/gl.h:1743: error: previous declaration of ‘PFNGLGETCOLORTABLEPROC’ was here
./include/SDL_opengl.h:4532: error: redefinition of typedef ‘PFNGLGETCOLORTABLEPARAMETERFVPROC’
/usr/local/include/GL/gl.h:1744: error: previous declaration of ‘PFNGLGETCOLORTABLEPARAMETERFVPROC’ was here
./include/SDL_opengl.h:4533: error: redefinition of typedef ‘PFNGLGETCOLORTABLEPARAMETERIVPROC’
/usr/local/include/GL/gl.h:1745: error: previous declaration of ‘PFNGLGETCOLORTABLEPARAMETERIVPROC’ was here
./include/SDL_opengl.h:4534: error: redefinition of typedef ‘PFNGLCOLORSUBTABLEPROC’
/usr/local/include/GL/gl.h:1746: error: previous declaration of ‘PFNGLCOLORSUBTABLEPROC’ was here
./include/SDL_opengl.h:4535: error: redefinition of typedef ‘PFNGLCOPYCOLORSUBTABLEPROC’
/usr/local/include/GL/gl.h:1747: error: previous declaration of ‘PFNGLCOPYCOLORSUBTABLEPROC’ was here
./include/SDL_opengl.h:4536: error: redefinition of typedef ‘PFNGLCONVOLUTIONFILTER1DPROC’
/usr/local/include/GL/gl.h:1748: error: previous declaration of ‘PFNGLCONVOLUTIONFILTER1DPROC’ was here
./include/SDL_opengl.h:4537: error: redefinition of typedef ‘PFNGLCONVOLUTIONFILTER2DPROC’
/usr/local/include/GL/gl.h:1749: error: previous declaration of ‘PFNGLCONVOLUTIONFILTER2DPROC’ was here
./include/SDL_opengl.h:4538: error: redefinition of typedef ‘PFNGLCONVOLUTIONPARAMETERFPROC’
/usr/local/include/GL/gl.h:1750: error: previous declaration of ‘PFNGLCONVOLUTIONPARAMETERFPROC’ was here
./include/SDL_opengl.h:4539: error: redefinition of typedef ‘PFNGLCONVOLUTIONPARAMETERFVPROC’
/usr/local/include/GL/gl.h:1751: error: previous declaration of ‘PFNGLCONVOLUTIONPARAMETERFVPROC’ was here
./include/SDL_opengl.h:4540: error: redefinition of typedef ‘PFNGLCONVOLUTIONPARAMETERIPROC’
/usr/local/include/GL/gl.h:1752: error: previous declaration of ‘PFNGLCONVOLUTIONPARAMETERIPROC’ was here
./include/SDL_opengl.h:4541: error: redefinition of typedef ‘PFNGLCONVOLUTIONPARAMETERIVPROC’
/usr/local/include/GL/gl.h:1753: error: previous declaration of ‘PFNGLCONVOLUTIONPARAMETERIVPROC’ was here
./include/SDL_opengl.h:4542: error: redefinition of typedef ‘PFNGLCOPYCONVOLUTIONFILTER1DPROC’
/usr/local/include/GL/gl.h:1754: error: previous declaration of ‘PFNGLCOPYCONVOLUTIONFILTER1DPROC’ was here
./include/SDL_opengl.h:4543: error: redefinition of typedef ‘PFNGLCOPYCONVOLUTIONFILTER2DPROC’
/usr/local/include/GL/gl.h:1755: error: previous declaration of ‘PFNGLCOPYCONVOLUTIONFILTER2DPROC’ was here
./include/SDL_opengl.h:4544: error: redefinition of typedef ‘PFNGLGETCONVOLUTIONFILTERPROC’
/usr/local/include/GL/gl.h:1756: error: previous declaration of ‘PFNGLGETCONVOLUTIONFILTERPROC’ was here
./include/SDL_opengl.h:4545: error: redefinition of typedef ‘PFNGLGETCONVOLUTIONPARAMETERFVPROC’
/usr/local/include/GL/gl.h:1757: error: previous declaration of ‘PFNGLGETCONVOLUTIONPARAMETERFVPROC’ was here
./include/SDL_opengl.h:4546: error: redefinition of typedef ‘PFNGLGETCONVOLUTIONPARAMETERIVPROC’
/usr/local/include/GL/gl.h:1758: error: previous declaration of ‘PFNGLGETCONVOLUTIONPARAMETERIVPROC’ was here
./include/SDL_opengl.h:4547: error: redefinition of typedef ‘PFNGLGETSEPARABLEFILTERPROC’
/usr/local/include/GL/gl.h:1759: error: previous declaration of ‘PFNGLGETSEPARABLEFILTERPROC’ was here
./include/SDL_opengl.h:4548: error: redefinition of typedef ‘PFNGLSEPARABLEFILTER2DPROC’
/usr/local/include/GL/gl.h:1760: error: previous declaration of ‘PFNGLSEPARABLEFILTER2DPROC’ was here
./include/SDL_opengl.h:4549: error: redefinition of typedef ‘PFNGLGETHISTOGRAMPROC’
/usr/local/include/GL/gl.h:1761: error: previous declaration of ‘PFNGLGETHISTOGRAMPROC’ was here
./include/SDL_opengl.h:4550: error: redefinition of typedef ‘PFNGLGETHISTOGRAMPARAMETERFVPROC’
/usr/local/include/GL/gl.h:1762: error: previous declaration of ‘PFNGLGETHISTOGRAMPARAMETERFVPROC’ was here
./include/SDL_opengl.h:4551: error: redefinition of typedef ‘PFNGLGETHISTOGRAMPARAMETERIVPROC’
/usr/local/include/GL/gl.h:1763: error: previous declaration of ‘PFNGLGETHISTOGRAMPARAMETERIVPROC’ was here
./include/SDL_opengl.h:4552: error: redefinition of typedef ‘PFNGLGETMINMAXPROC’
/usr/local/include/GL/gl.h:1764: error: previous declaration of ‘PFNGLGETMINMAXPROC’ was here
./include/SDL_opengl.h:4553: error: redefinition of typedef ‘PFNGLGETMINMAXPARAMETERFVPROC’
/usr/local/include/GL/gl.h:1765: error: previous declaration of ‘PFNGLGETMINMAXPARAMETERFVPROC’ was here
./include/SDL_opengl.h:4554: error: redefinition of typedef ‘PFNGLGETMINMAXPARAMETERIVPROC’
/usr/local/include/GL/gl.h:1766: error: previous declaration of ‘PFNGLGETMINMAXPARAMETERIVPROC’ was here
./include/SDL_opengl.h:4555: error: redefinition of typedef ‘PFNGLHISTOGRAMPROC’
/usr/local/include/GL/gl.h:1767: error: previous declaration of ‘PFNGLHISTOGRAMPROC’ was here
./include/SDL_opengl.h:4556: error: redefinition of typedef ‘PFNGLMINMAXPROC’
/usr/local/include/GL/gl.h:1768: error: previous declaration of ‘PFNGLMINMAXPROC’ was here
./include/SDL_opengl.h:4557: error: redefinition of typedef ‘PFNGLRESETHISTOGRAMPROC’
/usr/local/include/GL/gl.h:1769: error: previous declaration of ‘PFNGLRESETHISTOGRAMPROC’ was here
./include/SDL_opengl.h:4558: error: redefinition of typedef ‘PFNGLRESETMINMAXPROC’
/usr/local/include/GL/gl.h:1770: error: previous declaration of ‘PFNGLRESETMINMAXPROC’ was here
./include/SDL_opengl.h:4626: error: redefinition of typedef ‘PFNGLCLIENTACTIVETEXTUREPROC’
/usr/local/include/GL/gl.h:1977: error: previous declaration of ‘PFNGLCLIENTACTIVETEXTUREPROC’ was here
./include/SDL_opengl.h:4627: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1DPROC’
/usr/local/include/GL/gl.h:1978: error: previous declaration of ‘PFNGLMULTITEXCOORD1DPROC’ was here
./include/SDL_opengl.h:4628: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1DVPROC’
/usr/local/include/GL/gl.h:1979: error: previous declaration of ‘PFNGLMULTITEXCOORD1DVPROC’ was here
./include/SDL_opengl.h:4629: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1FPROC’
/usr/local/include/GL/gl.h:1980: error: previous declaration of ‘PFNGLMULTITEXCOORD1FPROC’ was here
./include/SDL_opengl.h:4630: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1FVPROC’
/usr/local/include/GL/gl.h:1981: error: previous declaration of ‘PFNGLMULTITEXCOORD1FVPROC’ was here
./include/SDL_opengl.h:4631: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1IPROC’
/usr/local/include/GL/gl.h:1982: error: previous declaration of ‘PFNGLMULTITEXCOORD1IPROC’ was here
./include/SDL_opengl.h:4632: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1IVPROC’
/usr/local/include/GL/gl.h:1983: error: previous declaration of ‘PFNGLMULTITEXCOORD1IVPROC’ was here
./include/SDL_opengl.h:4633: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1SPROC’
/usr/local/include/GL/gl.h:1984: error: previous declaration of ‘PFNGLMULTITEXCOORD1SPROC’ was here
./include/SDL_opengl.h:4634: error: redefinition of typedef ‘PFNGLMULTITEXCOORD1SVPROC’
/usr/local/include/GL/gl.h:1985: error: previous declaration of ‘PFNGLMULTITEXCOORD1SVPROC’ was here
./include/SDL_opengl.h:4635: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2DPROC’
/usr/local/include/GL/gl.h:1986: error: previous declaration of ‘PFNGLMULTITEXCOORD2DPROC’ was here
./include/SDL_opengl.h:4636: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2DVPROC’
/usr/local/include/GL/gl.h:1987: error: previous declaration of ‘PFNGLMULTITEXCOORD2DVPROC’ was here
./include/SDL_opengl.h:4637: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2FPROC’
/usr/local/include/GL/gl.h:1988: error: previous declaration of ‘PFNGLMULTITEXCOORD2FPROC’ was here
./include/SDL_opengl.h:4638: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2FVPROC’
/usr/local/include/GL/gl.h:1989: error: previous declaration of ‘PFNGLMULTITEXCOORD2FVPROC’ was here
./include/SDL_opengl.h:4639: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2IPROC’
/usr/local/include/GL/gl.h:1990: error: previous declaration of ‘PFNGLMULTITEXCOORD2IPROC’ was here
./include/SDL_opengl.h:4640: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2IVPROC’
/usr/local/include/GL/gl.h:1991: error: previous declaration of ‘PFNGLMULTITEXCOORD2IVPROC’ was here
./include/SDL_opengl.h:4641: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2SPROC’
/usr/local/include/GL/gl.h:1992: error: previous declaration of ‘PFNGLMULTITEXCOORD2SPROC’ was here
./include/SDL_opengl.h:4642: error: redefinition of typedef ‘PFNGLMULTITEXCOORD2SVPROC’
/usr/local/include/GL/gl.h:1993: error: previous declaration of ‘PFNGLMULTITEXCOORD2SVPROC’ was here
./include/SDL_opengl.h:4643: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3DPROC’
/usr/local/include/GL/gl.h:1994: error: previous declaration of ‘PFNGLMULTITEXCOORD3DPROC’ was here
./include/SDL_opengl.h:4644: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3DVPROC’
/usr/local/include/GL/gl.h:1995: error: previous declaration of ‘PFNGLMULTITEXCOORD3DVPROC’ was here
./include/SDL_opengl.h:4645: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3FPROC’
/usr/local/include/GL/gl.h:1996: error: previous declaration of ‘PFNGLMULTITEXCOORD3FPROC’ was here
./include/SDL_opengl.h:4646: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3FVPROC’
/usr/local/include/GL/gl.h:1997: error: previous declaration of ‘PFNGLMULTITEXCOORD3FVPROC’ was here
./include/SDL_opengl.h:4647: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3IPROC’
/usr/local/include/GL/gl.h:1998: error: previous declaration of ‘PFNGLMULTITEXCOORD3IPROC’ was here
./include/SDL_opengl.h:4648: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3IVPROC’
/usr/local/include/GL/gl.h:1999: error: previous declaration of ‘PFNGLMULTITEXCOORD3IVPROC’ was here
./include/SDL_opengl.h:4649: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3SPROC’
/usr/local/include/GL/gl.h:2000: error: previous declaration of ‘PFNGLMULTITEXCOORD3SPROC’ was here
./include/SDL_opengl.h:4650: error: redefinition of typedef ‘PFNGLMULTITEXCOORD3SVPROC’
/usr/local/include/GL/gl.h:2001: error: previous declaration of ‘PFNGLMULTITEXCOORD3SVPROC’ was here
./include/SDL_opengl.h:4651: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4DPROC’
/usr/local/include/GL/gl.h:2002: error: previous declaration of ‘PFNGLMULTITEXCOORD4DPROC’ was here
./include/SDL_opengl.h:4652: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4DVPROC’
/usr/local/include/GL/gl.h:2003: error: previous declaration of ‘PFNGLMULTITEXCOORD4DVPROC’ was here
./include/SDL_opengl.h:4653: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4FPROC’
/usr/local/include/GL/gl.h:2004: error: previous declaration of ‘PFNGLMULTITEXCOORD4FPROC’ was here
./include/SDL_opengl.h:4654: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4FVPROC’
/usr/local/include/GL/gl.h:2005: error: previous declaration of ‘PFNGLMULTITEXCOORD4FVPROC’ was here
./include/SDL_opengl.h:4655: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4IPROC’
/usr/local/include/GL/gl.h:2006: error: previous declaration of ‘PFNGLMULTITEXCOORD4IPROC’ was here
./include/SDL_opengl.h:4656: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4IVPROC’
/usr/local/include/GL/gl.h:2007: error: previous declaration of ‘PFNGLMULTITEXCOORD4IVPROC’ was here
./include/SDL_opengl.h:4657: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4SPROC’
/usr/local/include/GL/gl.h:2008: error: previous declaration of ‘PFNGLMULTITEXCOORD4SPROC’ was here
./include/SDL_opengl.h:4658: error: redefinition of typedef ‘PFNGLMULTITEXCOORD4SVPROC’
/usr/local/include/GL/gl.h:2009: error: previous declaration of ‘PFNGLMULTITEXCOORD4SVPROC’ was here
./include/SDL_opengl.h:4659: error: redefinition of typedef ‘PFNGLLOADTRANSPOSEMATRIXFPROC’
/usr/local/include/GL/gl.h:2010: error: previous declaration of ‘PFNGLLOADTRANSPOSEMATRIXFPROC’ was here
./include/SDL_opengl.h:4660: error: redefinition of typedef ‘PFNGLLOADTRANSPOSEMATRIXDPROC’
/usr/local/include/GL/gl.h:2011: error: previous declaration of ‘PFNGLLOADTRANSPOSEMATRIXDPROC’ was here
./include/SDL_opengl.h:4661: error: redefinition of typedef ‘PFNGLMULTTRANSPOSEMATRIXFPROC’
/usr/local/include/GL/gl.h:2012: error: previous declaration of ‘PFNGLMULTTRANSPOSEMATRIXFPROC’ was here
./include/SDL_opengl.h:4662: error: redefinition of typedef ‘PFNGLMULTTRANSPOSEMATRIXDPROC’
/usr/local/include/GL/gl.h:2013: error: previous declaration of ‘PFNGLMULTTRANSPOSEMATRIXDPROC’ was here
gmake: *** [build/SDL_renderer_gl.lo] Error 1

For whatever reason, GL_GLEXT_PROTOTYPES appears to be undefined. It’s not
at all obvious to me why (I have all OpenGL headers installed, etc). SDL 1.2
didn’t have this problem.

Any help would be appreciated.

M

Must have been an environment issue, the problem seems to have
corrected itself.

MOn 2010-01-03 06:07:06, @sdl_at_coreland.ath wrote:

Hello.

I thought I’d try compiling SDL from SVN on FreeBSD and ran into
the following: