Summary: | x11-libs/cairo-1.10.2-r2 emake failed on Mac OS X due to missing GL/gl.h | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Yishen Miao (mys_721tx) <mys721tx> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Complete build log for x11-libs/cairo-1.10.2-r2
Complete build log for cairo after emerging opengl-apple |
Description
Yishen Miao (mys_721tx)
2012-03-16 20:28:15 UTC
Created attachment 305645 [details]
Complete build log for x11-libs/cairo-1.10.2-r2
/Users/mys_721tx/Gentoo/bin/bash ../libtool --silent --tag=CC --mode=compile x86_64-apple-darwin11-gcc -DHAVE_CONFIG_H -I. -I.. -I. -D_REENTRANT -I/Users/mys_721tx/Gentoo/usr/include/pixman-1 -I/Users/mys_721tx/Gentoo/usr/include -I/Users/mys_721tx/Gentoo/usr/include/freetype2 -I/Users/mys_721tx/Gentoo/usr/include -I/Users/mys_721tx/Gentoo/usr/include -I/Users/mys_721tx/Gentoo/usr/include/libpng15 -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wbad-function-cast -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -I../src/glew -O2 -pipe -march=nocona -finline-limit=1200 -c -o cairo-gl-device.lo cairo-gl-device.c
In file included from cairo-gl-private.h:47,
from cairo-gl-composite.c:44:
cairo-gl-gradient-private.h:53:19: error: GL/gl.h: No such file or directory
CC cairo-gl-glyphs.lo
/Users/mys_721tx/Gentoo/bin/bash ../libtool --silent --tag=CC --mode=compile x86_64-apple-darwin11-gcc -DHAVE_CONFIG_H -I. -I.. -I. -D_REENTRANT -I/Users/mys_721tx/Gentoo/usr/include/pixman-1 -I/Users/mys_721tx/Gentoo/usr/include -I/Users/mys_721tx/Gentoo/usr/include/freetype2 -I/Users/mys_721tx/Gentoo/usr/include -I/Users/mys_721tx/Gentoo/usr/include -I/Users/mys_721tx/Gentoo/usr/include/libpng15 -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wbad-function-cast -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -I../src/glew -O2 -pipe -march=nocona -finline-limit=1200 -c -o cairo-gl-glyphs.lo cairo-gl-glyphs.c
make[3]: *** [cairo-gl-composite.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from cairo-gl-private.h:47,
from cairo-gl-glyphs.c:41:
cairo-gl-gradient-private.h:53:19: error: GL/gl.h: No such file or directory
In file included from cairo-gl-private.h:47,
from cairo-gl-device.c:44:
cairo-gl-gradient-private.h:53:19: error: GL/gl.h: No such file or directory
make[3]: *** [cairo-gl-glyphs.lo] Error 1
make[3]: *** [cairo-gl-device.lo] Error 1
make[3]: Leaving directory `/Users/mys_721tx/Gentoo/var/tmp/portage/x11-libs/cairo-1.10.2-r2/work/cairo-1.10.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/Users/mys_721tx/Gentoo/var/tmp/portage/x11-libs/cairo-1.10.2-r2/work/cairo-1.10.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Users/mys_721tx/Gentoo/var/tmp/portage/x11-libs/cairo-1.10.2-r2/work/cairo-1.10.2'
make: *** [all] Error 2
what does eselect opengl show report? $ eselect opengl show !!! Error: Can't load module opengl exiting ok, so opengl-apple is not installed either, is it? (emerge -pv opengl-apple) (In reply to comment #4) Yeah, it's missing. Should it be pulled by cairo automatically? I don't know yet, but I expected it to be installed :/ It provides GL/gl.h Created attachment 306539 [details] Complete build log for cairo after emerging opengl-apple (In reply to comment #6) I get the same error after emerging opengl-apple. It creates symbolic links for header in /usr/X11R6/include/GL/ . At least portage cannot find GL/glx.h, which is in ~/Gentoo/usr/lib/opengl/opengl-apple/include/ . I afraid the same thing happens to GL/gl.h . sorry, you need eselect-opengl to create the appropriate symlinks since eselect-opengl is a dep of opengl-apple, you probably need to run eselect opengl set 1 or something. % eselect opengl list Available OpenGL implementations: [1] opengl-apple [2] xorg-x11 * % eselect opengl set 1 !!! Error: The opengl-apple OpenGL implementation doesn't seem to provide !!! Error: libGL.so file. This might be an effect of breakage introduced !!! Error: by a prioprietary driver installer. Please re-merge the package !!! Error: providing your OpenGL implementation. !!! Error: Selected OpenGL implementation incomplete. exiting You identified a bug in eselect-opengl :) I just committed a fix. You'll have to reemerge eselect-opengl after syncing in half an hour or so. Afterwards you can use eselect opengl set 1 and get something like % eselect opengl list Available OpenGL implementations: [1] opengl-apple * [2] xorg-x11 (the apple one being selected) With that, it compiles for me. Works for me too. Cairo can also be complied now. cool, thanks for testing, closing then |