Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533412 - sci-libs/opencascade-6.7.1 - fails to build with recent mesa-10.3.5: /usr/include/GL/glxext.h:480:164: error: ‘GLintptr’ has not been declared
Summary: sci-libs/opencascade-6.7.1 - fails to build with recent mesa-10.3.5: /usr/inc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-12-23 20:18 UTC by Matthias Maier
Modified: 2015-07-22 12:49 UTC (History)
3 users (show)

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


Attachments
Define GLX_GLXEXT_LEGACY prior to inclusion of GL/glx.h (0001-Define-GLX_GLXEXT_LEGACY-prior-to-inclusion-of-GL-gl.patch,2.93 KB, patch)
2014-12-23 20:18 UTC, Matthias Maier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Maier gentoo-dev 2014-12-23 20:18:01 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-01-09 19:18:10 UTC
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.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2015-07-22 12:49:25 UTC
+*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).
+