Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408517 - x11-libs/cairo-1.10.2-r2 emake failed on Mac OS X due to missing GL/gl.h
Summary: x11-libs/cairo-1.10.2-r2 emake failed on Mac OS X due to missing GL/gl.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 20:28 UTC by Yishen Miao (mys_721tx)
Modified: 2012-03-25 08:34 UTC (History)
0 users

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


Attachments
Complete build log for x11-libs/cairo-1.10.2-r2 (build.log,133.44 KB, text/plain)
2012-03-16 20:30 UTC, Yishen Miao (mys_721tx)
Details
Complete build log for cairo after emerging opengl-apple (build.log,146.46 KB, text/plain)
2012-03-24 16:44 UTC, Yishen Miao (mys_721tx)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yishen Miao (mys_721tx) 2012-03-16 20:28:15 UTC
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
Comment 1 Yishen Miao (mys_721tx) 2012-03-16 20:30:21 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
Comment 2 Fabian Groffen gentoo-dev 2012-03-24 14:26:16 UTC
what does

  eselect opengl show

report?
Comment 3 Yishen Miao (mys_721tx) 2012-03-24 15:33:43 UTC
$ eselect opengl show
!!! Error: Can't load module opengl
exiting
Comment 4 Fabian Groffen gentoo-dev 2012-03-24 15:35:12 UTC
ok, so opengl-apple is not installed either, is it?

(emerge -pv opengl-apple)
Comment 5 Yishen Miao (mys_721tx) 2012-03-24 15:37:55 UTC
(In reply to comment #4)
Yeah, it's missing. Should it be pulled by cairo automatically?
Comment 6 Fabian Groffen gentoo-dev 2012-03-24 15:40:29 UTC
I don't know yet, but I expected it to be installed :/  It provides GL/gl.h
Comment 7 Yishen Miao (mys_721tx) 2012-03-24 16:44:17 UTC
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 .
Comment 8 Fabian Groffen gentoo-dev 2012-03-24 16:47:12 UTC
sorry, you need eselect-opengl to create the appropriate symlinks
Comment 9 Fabian Groffen gentoo-dev 2012-03-24 16:52:50 UTC
since eselect-opengl is a dep of opengl-apple, you probably need to run eselect opengl set 1 or something.
Comment 10 Fabian Groffen gentoo-dev 2012-03-24 17:01:52 UTC
% 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 :)
Comment 11 Fabian Groffen gentoo-dev 2012-03-24 19:19:19 UTC
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.
Comment 12 Yishen Miao (mys_721tx) 2012-03-25 02:52:43 UTC
Works for me too. Cairo can also be complied now.
Comment 13 Fabian Groffen gentoo-dev 2012-03-25 08:34:41 UTC
cool, thanks for testing, closing then