#179 shapes: Build error against Mesa >= 51b0a0b

critical (31)


[ 97s] Scanning dependencies of target shapes
[ 97s] [ 89%] Building C object CMakeFiles/shapes.dir/progs/demos/shapes/shapes.c.o
[ 97s] /home/abuild/rpmbuild/BUILD/freeglut/progs/demos/shapes/shapes.c:98:25: error: conflicting types for 'PFNGLSHADERSOURCEPROC'
[ 97s] In file included from /usr/include/GL/gl.h:2085:0,
[ 97s] from /home/abuild/rpmbuild/BUILD/freeglut/include/GL/freeglut_std.h:142,
[ 97s] from /home/abuild/rpmbuild/BUILD/freeglut/include/GL/freeglut.h:17,
[ 97s] from /home/abuild/rpmbuild/BUILD/freeglut/progs/demos/shapes/shapes.c:40:
[ 97s] /usr/include/GL/glext.h:6053:25: note: previous declaration of 'PFNGLSHADERSOURCEPROC' was here
[ 97s] make[2]: *** [CMakeFiles/shapes.dir/progs/demos/shapes/shapes.c.o] Error 1


  • Diederick C. Niehorster

    Thanks for the report. I assume this is on (somewhat) current trunk? Does the MESA library come with some preprocessor definitions that allow detecting it so that we can skip compiling this part of the demo code (getting the function adresses is really only necessary on windows)?

  • Diederick C. Niehorster

    Dear Johannes,

    A fix has been applied to current trunk (rev 1385). Could you test it?


  • Diederick C. Niehorster

    whoops, I was a bit quick. A fix for a similar issue with the smoothgl3 demo was applied. Could you see if that one was broken for you before r.1385 and now works for you with r.1385? Then a similar fix can help for the shapes demo.


  • Brandon J. Van Every

    Trunk fixes the same error in smoothgl3 but shapes error remains. The prototype adds a "const ourGLchar **string" type. Why are you redefining the prototype for PFNGLSHADERSOURCEPROC in shapes.c? All those prototypes are defined in glext.h. Use them; if Windows doesn't have them, include glext.h in your sources.

  • Diederick C. Niehorster

    I think this should all be fixed now (a while ago already), thanks for the report, comments, and help!

  • Diederick C. Niehorster

    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks