cairo-1.10.2-r2 fails to be build because GL/gl.h is missing Reproducible: Always Steps to Reproduce: 1.$ emerge -av x11-libs/cairo Actual Results: Cannot compile cairo-1.10.2-r2. Expected Results: cairo should be successful complied. Portage 2.2.01.20271-prefix (prefix/darwin/macos/10.7/x64, gcc-4.2.1, unavailable, 11.3.0 x86_64) ================================================================= System Settings ================================================================= System uname: Darwin-11.3.0-x86_64-i386-64bit Timestamp of tree: Fri, 16 Mar 2012 07:12:05 +0000 app-shells/bash: 4.2_p20::gentoo_prefix dev-java/java-config: 2.1.11-r3::gentoo_prefix dev-lang/python: 2.7.2-r3::gentoo_prefix dev-util/pkgconfig: 0.26::gentoo_prefix sys-devel/autoconf: 2.68::gentoo_prefix sys-devel/automake: 1.11.1::gentoo_prefix sys-devel/gcc-config: 1.5-r2::gentoo_prefix sys-devel/libtool: 2.4-r4::gentoo_prefix sys-devel/make: 3.82::gentoo_prefix Repositories: gentoo_prefix Installed sets: ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin11" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-apple-darwin11" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/Users/mys_721tx/Gentoo/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-dead_strip_dylibs" MAKEOPTS="-j3" PKGDIR="/Users/mys_721tx/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/mys_721tx/Gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Users/mys_721tx/Gentoo/var/tmp" PORTDIR="/Users/mys_721tx/Gentoo/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua bash-completion bzip2 coreaudio cracklib crypt cxx fortran iconv ipv6 java jpeg lapack lua mmx mmxext modules ncurses nls objc objc++ opengl png prefix python readline sse sse2 ssl svg threads unicode x64-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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