Created attachment 392294 [details, diff] Define GLX_GLXEXT_LEGACY prior to inclusion of GL/glx.h opencascade does not compile with newer versions of the (mesa) opengl header <GL/glx.h>. It is necessary to define the macro GLX_GLXEXT_LEGACY prior to inclusion. This is safe to do unconditionally as the definition is not used in older opengl headers at all. Patch attached.
I have allowed myself to commit the patch for you: + 09 Jan 2015; Michał Górny <mgorny@gentoo.org> + +files/opencascade-6.7.1-deprecated-glx-api.patch, opencascade-6.7.0.ebuild, + opencascade-6.7.1.ebuild: + Fix build with new versions of mesa, bug #533412. However, I'm leaving the bug open for you to decide whether and how to upstream it. It may be desirable for upstream to stop using deprecated APIs instead of re-enabling them.
+*opencascade-6.9.0 (22 Jul 2015) + + 22 Jul 2015; Michael Weber <xmw@gentoo.org> + +files/opencascade-6.5.5-deprecated-glx-api.patch, + +files/opencascade-6.6.0-deprecated-glx-api.patch, +opencascade-6.9.0.ebuild, + opencascade-6.5.5.ebuild, opencascade-6.6.0.ebuild, opencascade-6.7.1.ebuild: + Version bump and backport mesa fix (bug 533412). +