Package: xmoto
Version: 0.1.8-2
Tags: patch

When trying to build xmoto on debian/sarge, I got this build error:

  In file included from src/BuiltInFont.h:25,
                   from src/BuiltInFont.cpp:27:
  src/VCommon.h:53: error: type specifier omitted for parameter `GLsizeiptrARB'
  src/VCommon.h:53: error: tolkningsfejl before `,' token
  In file included from src/VCommon.h:57,
                   from src/BuiltInFont.h:25,
                   from src/BuiltInFont.cpp:27:
  /usr/include/SDL/SDL_opengl.h:3576: error: conflicting types for `typedef void
     (*PFNGLBUFFERDATAARBPROC)(unsigned int, int, const GLvoid*, unsigned int)'
  src/VCommon.h:53: error: previous declaration as `typedef void
     (*PFNGLBUFFERDATAARBPROC)(...)'
  make[1]: *** [BuiltInFont.o] Fejl 1
  make[1]: Leaving directory `/home/pere/src/debian/xmoto-0.1.8'
  make: *** [all-recursive] Fejl 1

The problem is that the type GLsizeiptrARB is unknown when it is used.
I found the type in <SDL/SDL_opengl.h>, and solved the issue by
including it before GLsizeiptrARB is used.  This patch solved the
build problem.  Please include it in a future version of xmoto.

--- xmoto-0.1.8.orig/src/VCommon.h
+++ xmoto-0.1.8/src/VCommon.h
@@ -36,6 +36,7 @@
 #endif

 #include <GL/gl.h>
+#include <SDL/SDL_opengl.h>

 #if defined(WIN32) && defined(_MSC_VER)
   #define GL_GLEXT_PROTOTYPES 1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to