when i do 'emerge -u world', when it gets to wxgtk during the configure script it checks for header <GL/gl.h> and says not found then also says that the opengl libraries not available when two gl.h's exist on my system Reproducible: Always Steps to Reproduce: 1. emerge -u wxgtk Actual Results: emerge quits due to an error Expected Results: emerged successfully these are the two gl.h header files i have: /usr/lib/opengl/xfree/include/gl.h /usr/lib/opengl/nvidia/include/gl.h -- junk@lizzy junk $ emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r2) ================================================================= System uname: 2.6.3-gentoo-r2 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://203.16.234.19/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"
try the latest opengl-update, it is supposed to make a symlink to either xfree or nvidia depending on what opengl-update you've last run.
Make sure a symlink to one of them exists at /usr/include/GL/gl.h. opengl-update should provide this.
i ran opengl-update and i am still getting the same error
I'm getting a similar error with wxGTK-2.4.1-r1. I've run opengl-update as well checked to see that gl.h is symlinked to the xfree/ati header file. Here's the exact error: checking for GL/gl.h... no configure: error: OpenGL libraries not available !!! ERROR: x11-libs/wxGTK-2.4.1-r1 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed and here's my emerge info: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.seren.com/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acpi acpi4linux alsa apache2 arts athena bindist bonobo caps cdr chroot clamav crypt cups dga doc dvd fbcon foomaticdb foreign-package gif gimpprint gpm gtk2 gtkhtml imap imlib irmc java javascript jpeg kde ldap lesstif libwww motif mozilla mpeg msn ncurses neXt nls nogcj nptl ofx oggvorbis opengl operanom2 pam pcmcia pdflib perl png pnp postgres ppds propolice python qt radeon readline sdl spell sse ssl svga tcltk tcpd tetex threads tiff truetype unicode usb video_cards_radeon vim-with-x x86 xemacs xgetdefault xml2 xmms yahoo zlib"
post the config.log file in the build directory
Created attachment 26798 [details] config.log, as requested
/usr/include/GL/gl.h:62:22: GL/glext.h: No such file or directory do you have /usr/include/GL/glext.h ? if not, is /usr/include/GL a symlink to ../X11R6/include/GL ? if not, why isnt it ? :) you should have the file /usr/X11R6/include/GL/glext.h ...
this is the only places i have glext.h: izzy qtcsharp # locate glext.h /usr/lib/opengl/nvidia/include/glext.h /usr/portage/media-video/mtxdrivers-pro/files/glext.h lizzy qtcsharp # -- this is /usr/include/GL: lizzy qtcsharp # ls -al /usr/include/GL lrwxrwxrwx 1 root root 19 Feb 28 21:56 /usr/include/GL -> ../X11R6/include/GL lizzy qtcsharp # -- do i need to point that directory to /usr/lib/opengl/nvidia/include/ ? shouldn't opengl-update do this ?
what does `qpkg -l xfree | grep glext` show ? you do have x11-base/xfree emerged yeah ? :)
lizzy qtcsharp # qpkg -l xfree | grep glext /usr/X11R6/include/GL/glext.h lizzy qtcsharp # yes i have x11-base/x11 merged ;)
so, you used to have the file, but you dont anymore re-emerge xfree :)
well done :p that fixed it
This bug also happens with xorg-x11; I fixed it with ln -s xorg-x11 xfree inside /usr/lib/opengl
The problem (i think) is that another package (i dont recall which) instructs users to mv gl.h to another location. This is why I don't have the file.