Making all in glx make[3]: Entering directory `/var/tmp/portage/glitz-0.4.4/work/glitz-0.4.4/src/glx' if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_drawable.lo -MD -MP -MF ".deps/glitz_glx_drawable.Tpo" -c -o glitz_glx_drawable.lo glitz_glx_drawable.c; \ then mv -f ".deps/glitz_glx_drawable.Tpo" ".deps/glitz_glx_drawable.Plo"; else rm -f ".deps/glitz_glx_drawable.Tpo"; exit 1; fi mkdir .libs i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_drawable.lo -MD -MP -MF .deps/glitz_glx_drawable.Tpo -c glitz_glx_drawable.c -fPIC -DPIC -o .libs/glitz_glx_drawable.o In file included from glitz_glx_drawable.c:30: glitz_glxint.h:34:19: GL/gl.h: No such file or directory glitz_glxint.h:35:20: GL/glx.h: No such file or directory In file included from glitz_glxint.h:37, from glitz_glx_drawable.c:30: glitz_glxext.h:110: error: parse error before "GLXDrawable" glitz_glxext.h:111: warning: function declaration isn't a prototype glitz_glxext.h:113: error: parse error before "GLXDrawable" glitz_glxext.h:113: warning: function declaration isn't a prototype glitz_glxext.h:114: error: parse error before '*' token glitz_glxext.h:116: error: parse error before "GLXContext" glitz_glxext.h:116: warning: type defaults to `int' in declaration of `GLXContext' glitz_glxext.h:116: warning: function declaration isn't a prototype glitz_glxext.h:116: error: `GLXContext' declared as function returning a function glitz_glxext.h:116: warning: function declaration isn't a prototype In file included from glitz_glx_drawable.c:30: glitz_glxint.h:59: error: parse error before "glitz_glx_create_new_context_t" glitz_glxint.h:59: warning: no semicolon at end of struct or union glitz_glxint.h:60: warning: type defaults to `int' in declaration of `glitz_glx_static_proc_address_list_t' glitz_glxint.h:60: warning: data definition has no type or storage class glitz_glxint.h:85: error: field `context' declared as a function glitz_glxint.h:106: error: field `root_context' declared as a function glitz_glxint.h:109: error: parse error before "glitz_glx_static_proc_address_list_t" glitz_glxint.h:109: warning: no semicolon at end of struct or union glitz_glxint.h:111: error: parse error before '}' token glitz_glxint.h:118: error: parse error before "GLXDrawable" glitz_glxint.h:118: warning: no semicolon at end of struct or union glitz_glxint.h:119: warning: type defaults to `int' in declaration of `pbuffer' glitz_glxint.h:119: warning: data definition has no type or storage class glitz_glx_drawable.c:36: error: parse error before "GLXDrawable" glitz_glx_drawable.c:40: warning: function declaration isn't a prototype glitz_glx_drawable.c: In function `_glitz_glx_create_drawable': glitz_glx_drawable.c:43: error: `width' undeclared (first use in this function) glitz_glx_drawable.c:43: error: (Each undeclared identifier is reported only once glitz_glx_drawable.c:43: error: for each function it appears in.) glitz_glx_drawable.c:43: error: `height' undeclared (first use in this function) glitz_glx_drawable.c:46: error: invalid application of `sizeof' to incomplete type `glitz_glxint.h' glitz_glx_drawable.c:50: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:51: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:51: error: `screen_info' undeclared (first use in this function) glitz_glx_drawable.c:52: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:52: error: `context' undeclared (first use in this function) glitz_glx_drawable.c:53: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:53: error: `glx_drawable' undeclared (first use in this function) glitz_glx_drawable.c:54: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:54: error: `glx_pbuffer' undeclared (first use in this function) glitz_glx_drawable.c:55: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:55: error: `format' undeclared (first use in this function) glitz_glx_drawable.c:56: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:58: error: dereferencing pointer to incomplete type glitz_glx_drawable.c: In function `_glitz_glx_create_pbuffer_drawable': glitz_glx_drawable.c:106: error: dereferencing pointer to incomplete type glitz_glx_drawable.c: In function `glitz_glx_create_pbuffer': glitz_glx_drawable.c:117: error: dereferencing pointer to incomplete type glitz_glx_drawable.c: In function `glitz_glx_create_drawable_for_window': glitz_glx_drawable.c:147: error: dereferencing pointer to incomplete type glitz_glx_drawable.c: In function `glitz_glx_destroy': glitz_glx_drawable.c:174: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:175: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:181: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:182: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:186: warning: implicit declaration of function `glXGetCurrentDrawable' glitz_glx_drawable.c:186: warning: nested extern declaration of `glXGetCurrentDrawable' glitz_glx_drawable.c:186: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:187: warning: implicit declaration of function `glXMakeCurrent' glitz_glx_drawable.c:187: warning: nested extern declaration of `glXMakeCurrent' glitz_glx_drawable.c:187: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:189: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:190: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:190: error: dereferencing pointer to incomplete type glitz_glx_drawable.c: In function `glitz_glx_swap_buffers': glitz_glx_drawable.c:200: warning: implicit declaration of function `glXSwapBuffers' glitz_glx_drawable.c:200: warning: nested extern declaration of `glXSwapBuffers' glitz_glx_drawable.c:200: error: dereferencing pointer to incomplete type glitz_glx_drawable.c:201: error: dereferencing pointer to incomplete type make[3]: *** [glitz_glx_drawable.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/glitz-0.4.4/work/glitz-0.4.4/src/glx' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/glitz-0.4.4/work/glitz-0.4.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/glitz-0.4.4/work/glitz-0.4.4' make: *** [all] Error 2 Portage 2.1_pre2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.0_pre12 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks fixpackages sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://ftp.lug.ro/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow aalib acl acpi adns alsa apache2 avi bitmap-fonts bzip2 bzlib cairo caps cdr crypt cups curl curlwrappers dio eds emboss encode exif expat flac foomaticdb fortran ftp gd gif gmp gpm gstreamer idn imagemagick imap imlib java javamail jpeg junit ldap libg++ libwww mad maildir mailwrapper memlimit mhash mikmod mmap mmx mono mp3 mpeg ncurses nls nptl offensive ogg oggvorbis pam pcntl pcre pdflib php png posix quicktime readline ruby samba session shared sharedmem slang slp soap sockets socks5 speex spell sse ssl svg sysvipc tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode urandom usb vhosts vorbis wmf xml xml2 xmlrpc zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY emerge -upvD world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild N ] media-libs/glitz-0.4.4 0 kB [ebuild N ] x11-libs/cairo-1.0.2 USE="-X -doc glitz png" 1,424 kB [ebuild N ] app-text/poppler-0.4.3-r1 USE="cairo -gtk jpeg -qt zlib" 761 kB [ebuild U ] net-print/cups-1.1.23-r7 [1.1.23-r6] USE="-cjk -gnutls nls pam samba slp ssl" 0 kB
hrm. I think I'll have to tweak the ebuild to be -glitz if -X. Because if you don't have X support, it doesn't make sense to have OpenGL support.
I have X installed, but without the `opengl` use flag set.
I have the same problem. I am using both X and NVidia's opengl. Interestingly I have also successfully compiled glitz-0.4.4 at an earlier time, so I think the problem may with the 8xxx series of NVidia driver, but that is a guess. I have the same problem when compiling qt-x11-opensource... The compile files because of "missing" opengl headers, even though I have both /usr/include/GL/{gl.h,glx.h}. >emerge info glitz Portage 2.1_pre3-r1 (default-linux/amd64/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-rc5-mm3 x86_64) ================================================================= System uname: 2.6.15-rc5-mm3 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -funroll-loops -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -funroll-loops -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" 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 acl acpi alsa amd64 apache2 audiofile avi berkdb bitmap-fonts bonobo bzip2 bzlib cairo cdr cjk crypt cups divx4linux doc dvd dvdr eds emboss encode esd evo exif expat fam ffmpeg flac foomaticdb fortran ftp gd gif glitz glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imap imlib ipv6 jabber jack java jikes joystick jpeg junit lcms ldap libg++ lzw lzw-tiff mad maildir mikmod mime mmap mng mozilla mp3 mpeg msn ncurses nls nocd ntpl ntplonly ogg oggvorbis openal opengl oss pam pcre pda pdflib perl plotutils png pnp portaudio posix postgres ppds python qt quicktime readline recode sasl sdl session shared sharedmem slp sndfile soap sockets spell ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales videos vorbis wmf xine xinerama xml xml2 xmms xpm xv xvid zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
My problem was that there is no libGL.so in /usr/lib64 (/usr/lib). So by symlinking to the nvidia libGL.so, the problem went away, like so: ln -s /usr/lib/opengl/nvidia/lib/libGL.so.1 /usr/lib/libGL.so
(In reply to comment #1) > hrm. I think I'll have to tweak the ebuild to be -glitz if -X. Because if you > don't have X support, it doesn't make sense to have OpenGL support. > Why not, in addition, make glitz depend on X that was compiled with USE=opengl (or USE=dri for modular X)?
Looks like this bug slipped through the cracks. The issue has resolved itself with the new way X is built.