Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567246 - media-libs/freeglut-3.0.0: fails due to missing GL/glext.h
Summary: media-libs/freeglut-3.0.0: fails due to missing GL/glext.h
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 12:22 UTC by Mario Kicherer
Modified: 2017-02-25 23:08 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Kicherer 2015-12-01 12:22:17 UTC
media-libs/freeglut-3.0.0 fails as GL/glext.h cannot be found. /usr/include/GL/glext.h exists but is a dead symlink to ../../lib64/opengl/global/include/GL/glext.h. The latter was removed with eselect-opengl-1.3.1-r4. After manually emerging mesa-11.0.6, freeglut compiles.


Reproducible: Always
Comment 1 Luke A. Guest 2015-12-01 16:27:23 UTC
I have the same problem. Broken link.
Comment 2 Luke A. Guest 2015-12-01 16:29:59 UTC
The link should point to ../../lib64/opengl/xorg-x11/include/GL/glxext.h like the gl.h header does.
Comment 3 Luke A. Guest 2015-12-01 16:38:06 UTC
Also, glxext.h is broken also. Changing opengl with eselect doesn't make any difference whether the broken links are present or not.
Comment 4 Mario Kicherer 2015-12-02 10:25:10 UTC
@Luke: I think they changed the design / the package providing these files and forgot to ensure that mesa-11 will be emerged before the packages that depend on those GL headers.
Comment 5 Jack 2015-12-04 19:36:09 UTC
I've also got the same problem.  However, for me, trying to emerge mesa-11.0.6 tries to pull in freeglut first.  I suppose "manually installing" means using ebuild instead of emerge.
Comment 6 Fat-Zer 2015-12-06 16:10:15 UTC
Note that the same issue for media-libs/glu and all other packages which include GL/gl.h
Comment 7 Andrei Voropaev 2015-12-10 11:12:16 UTC
In my case, installing of mesa has provided necessary headers and after that freeglut and other packages were installed without problems.
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-12-10 12:50:51 UTC
If freeglut is pulled in when you try to upgrade mesa, try

# emerge -1u media-libs/mesa --exclude media-libs/freeglut

and give the emerge output if that fails.
Comment 9 Michael Haubenwallner (RETIRED) gentoo-dev 2016-03-22 08:55:41 UTC
Here it is x11-libs/cairo-1.14.2 being affected, during an emptytree update, where cairo is updated before mesa. 

...
[ebuild     U  ] x11-libs/cairo-1.14.2::gentoo [1.12.18-r1::gentoo] USE="X glib opengl svg xcb (-aqua) -debug (-directfb) (-gles2) -static-libs -valgrind -xlib-xcb (-drm%) (-gallium%) (-openvg%) (-qt4%)" ABI_X86="32 (64) (-x32)" 0 KiB
...
[ebuild     U  ] media-libs/freeglut-3.0.0::gentoo [2.8.1-r1::gentoo] USE="-debug -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
...
[ebuild     U  ] media-libs/mesa-11.0.6::gentoo [10.3.7-r1::gentoo] USE="classic dri3 egl gallium gbm gles2* llvm nptl opencl udev vaapi%* -bindist -d3d9% -debug -gles1 -openmax -osmesa -pax_kernel -pic (-selinux) -vdpau -wayland -xa -xvmc (-openvg%) (-r600-llvm-compiler%)" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="nouveau (-freedreno) -i915 -i965 -ilo -intel -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 KiB

Interesting here is that the gles2 USE flag (which would add a dependency on mesa) is profiles/base/package.mask'ed for x11-libs/cairo.
Comment 10 Matt Turner gentoo-dev 2017-02-25 23:08:04 UTC
I'm not sure what we could do here to fix the problem.

Fortunately, it's one that goes away on its own (with a reemerge of Mesa).