Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504104 - games-action/supertuxkart-0.8.1 fails to build against >=media-libs/mesa-10: PFNGLBLENDEQUATIONPROC does not name a type
Summary: games-action/supertuxkart-0.8.1 fails to build against >=media-libs/mesa-10: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: http://lists.freedesktop.org/archives...
Whiteboard:
Keywords:
Depends on:
Blocks: mesa-10
  Show dependency tree
 
Reported: 2014-03-10 17:49 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2014-04-29 23:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,55.42 KB, text/plain)
2014-03-10 17:49 UTC, Chí-Thanh Christopher Nguyễn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2014-03-10 17:49:09 UTC
Created attachment 372306 [details]
build.log

Builds fine against mesa-9.2

In file included from COpenGLDriver.h:25:0,
                 from COpenGLDriver.cpp:5:
COpenGLExtensionHandler.h:1237:3: error: ‘PFNGLBLENDEQUATIONPROC’ does not name a type
   PFNGLBLENDEQUATIONPROC pGlBlendEquation;
   ^
COpenGLExtensionHandler.h: In member function ‘void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)’:
COpenGLExtensionHandler.h:2571:6: error: ‘pGlBlendEquation’ was not declared in this scope
  if (pGlBlendEquation)
      ^
Comment 1 Matt Turner gentoo-dev 2014-03-10 22:00:24 UTC
I'm not sure that the linked thread is relevant, but Ian says using GL_GLEXT_PROTOTYPES is doing it wrong.(http://lists.freedesktop.org/archives/mesa-dev/2013-December/050477.html)

I see

lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:		#define GL_GLEXT_PROTOTYPES 1
lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:		#define GL_GLEXT_PROTOTYPES 1
lib/irrlicht/source/Irrlicht/COpenGLCgMaterialRenderer.h:	#define GL_GLEXT_PROTOTYPES 1
lib/irrlicht/source/Irrlicht/COpenGLTexture.h:	#define GL_GLEXT_PROTOTYPES 1
lib/irrlicht/source/Irrlicht/COpenGLShaderMaterialRenderer.h:	#define GL_GLEXT_PROTOTYPES 1
lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h:	#define GL_GLEXT_PROTOTYPES 1

in the source, so I'd try removing those.

Also, the bundled glext.h is really old (from 2011). It's unclear whether the build is picking it up or Mesa's, but I'd try updating it too.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-03-11 14:08:05 UTC
Upstream has fixed this in git, but it does not apply cleanly to 0.8.1.
https://github.com/supertuxkart/stk-code/commit/244d00280c1b082ca164f92337773e9e4e1a3898
Comment 3 Julian Ospald 2014-04-29 23:31:39 UTC
+  29 Apr 2014; Julian Ospald <hasufell@gentoo.org> supertuxkart-0.8.1.ebuild,
+  +files/supertuxkart-0.8.1-mesa-10.x.patch:
+  fix build with mesa-10.x wrt #504104