Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82868 - qt doesn't compile: GL/glext.h: No such file or directory
Summary: qt doesn't compile: GL/glext.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-21 13:34 UTC by Pieter Van den Abeele (RETIRED)
Modified: 2005-04-09 06:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter Van den Abeele (RETIRED) gentoo-dev 2005-02-21 13:34:41 UTC
In file included from opengl/qgl.h:79,
                 from opengl/qgl.cpp:38:
/usr/include/GL/gl.h:2140:22: GL/glext.h: No such file or directory
In file included from opengl/qgl.cpp:52:
/usr/include/GL/glx.h:117:23: GL/glxext.h: No such file or directory
/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/bin/moc opengl/qgl_x11.cpp -o .moc/release-shared-mt/qgl_x11.moc
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -mtune=G4 -mabi=altivec -pipe -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_DLOPEN_OPENGL -DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I3rdparty/opentype -I../include -I/usr/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qsqlquery.o sql/qsqlquery.cpp
make[1]: *** [.obj/release-shared-mt/qgl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/qt-3.3.3/work/qt-x11-free-3.3.3/src'
make: *** [sub-src] Error 2

!!! ERROR: x11-libs/qt-3.3.3 failed.
!!! Function src_compile, Line 125, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Luca Barbato gentoo-dev 2005-02-21 13:51:46 UTC
looks like opengl-update had not been called on xorg-x11 postinst
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-21 15:42:14 UTC
Perhaps you could attach the output of `find /usr/lib/opengl` and `ls -l /usr/include/GL/` as well as posting the versions of opengl-update and xorg-x11.
Comment 3 t35t0r 2005-02-23 18:24:13 UTC
I get the same error. I currently have emerged:

x11-base/opengl-update-2.0_pre5
x11-base/xorg-x11-6.8.0-r4
media-video/ati-drivers-8.8.25

I've tried looking for the glxext.h file after opengl-update xorg-x11 and opengl-update ati, but it doesn't exist on the system.
Comment 4 t35t0r 2005-02-23 18:49:06 UTC
/root# ls -l /usr/include/GL/
total 188
-r--r--r--  1 root root  7946 Feb  2 22:44 GLwDrawA.h
-r--r--r--  1 root root  4433 Feb  2 22:44 GLwDrawAP.h
-r--r--r--  1 root root  2309 Feb  2 22:44 GLwMDrawA.h
-r--r--r--  1 root root  2311 Feb  2 22:44 GLwMDrawAP.h
lrwxrwxrwx  1 root root    37 Feb 23 20:18 gl.h -> /usr/lib/opengl/xorg-x11/include/gl.h
-rw-r--r--  1 root root 10381 Sep 10 22:34 gle.h
lrwxrwxrwx  1 root root    40 Feb 23 20:18 glext.h -> /usr/lib/opengl/xorg-x11/include/glext.h
-r--r--r--  1 root root 15981 Feb  2 22:44 glu.h
-rw-r--r--  1 root root 30192 Aug 26 10:36 glut.h
-rw-r--r--  1 root root  4109 Aug 26 10:36 glutf90.h
lrwxrwxrwx  1 root root    38 Feb 23 20:18 glx.h -> /usr/lib/opengl/xorg-x11/include/glx.h
lrwxrwxrwx  1 root root    39 Feb 16 21:35 glxext.h -> /usr/lib/opengl/global/include/glxext.h
-r--r--r--  1 root root  4257 Feb  2 22:44 glxint.h
-r--r--r--  1 root root  2453 Feb  2 22:44 glxmd.h
-r--r--r--  1 root root 71034 Feb  2 22:44 glxproto.h
lrwxrwxrwx  1 root root    44 Feb 23 20:18 glxtokens.h -> /usr/lib/opengl/xorg-x11/include/glxtokens.h
-r--r--r--  1 root root  8349 Feb  2 22:44 osmesa.h

note the line lrwxrwxrwx  1 root root    39 Feb 16 21:35 glxext.h -> /usr/lib/opengl/global/include/glxext.h is in red so the link is broken actually. 

There is this file however:

ls -l /usr/lib/opengl/global/include/glext.h

-rw-r--r--  1 root root 306424 Feb 20 11:05 /usr/lib/opengl/global/include/glext.h

but this is *not* glxext.h

/root# find /usr/lib/opengl
/usr/lib/opengl
/usr/lib/opengl/ati
/usr/lib/opengl/ati/lib
/usr/lib/opengl/ati/lib/libGL.so.1
/usr/lib/opengl/ati/lib/libGL.so.1.2
/usr/lib/opengl/ati/lib/libGL.la
/usr/lib/opengl/ati/lib/libGL.so
/usr/lib/opengl/ati/extensions
/usr/lib/opengl/ati/include
/usr/lib/opengl/xorg-x11
/usr/lib/opengl/xorg-x11/lib
/usr/lib/opengl/xorg-x11/lib/libGL.so.1
/usr/lib/opengl/xorg-x11/lib/libGL.a
/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
/usr/lib/opengl/xorg-x11/lib/libGL.la
/usr/lib/opengl/xorg-x11/lib/libGL.so
/usr/lib/opengl/xorg-x11/extensions
/usr/lib/opengl/xorg-x11/extensions/libglx.a
/usr/lib/opengl/xorg-x11/include
/usr/lib/opengl/xorg-x11/include/glxtokens.h
/usr/lib/opengl/xorg-x11/include/gl.h
/usr/lib/opengl/xorg-x11/include/glx.h
/usr/lib/opengl/xorg-x11/include/glext.h
/usr/lib/opengl/global
/usr/lib/opengl/global/include
/usr/lib/opengl/global/include/glext.h

/root# ls -l `slocate glxext.h`
lrwxrwxrwx  1 root root      39 Feb 16 21:35 /usr/X11R6/include/GL/glxext.h -> /usr/lib/opengl/global/include/glxext.h
-rw-rw-r--  1 root portage 5895 Feb  7 04:06 /usr/portage/distfiles/glxext.h-10.bz2
-rw-r--r--  1 root root     677 Feb 11 23:25 /usr/portage/x11-base/opengl-update/files/glxext.h-inttypes.patch

...once again that first link is a *red* broken link ..should i just bzip2 -d that file in distfiles into the appropriate directory ..gonna try that..


Comment 5 t35t0r 2005-02-23 20:08:50 UTC
ok i just grabbed a glxext.h from another gentoo box, the compile now works but the question is why was it ever missing?
Comment 6 Luca Barbato gentoo-dev 2005-02-23 20:17:57 UTC
missing opengl useflag?

emerge info please
Comment 7 JonasSL 2005-02-28 14:55:12 UTC
I'm getting the same bug as described above. Here is the emerge info output (opengl flag is set):

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005, 12:30:43)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.19-r1, 2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://gentoo.inode.at/source/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/jonas"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X alsa arts avi bitmap-fonts cdr crypt cups curl divx4linux dvd emboss encode font-server gif gpm gtk2 imlib java jpeg kde libwww mad mmx mmx2 mozilla mpeg ncurses nls oggvorbis opengl oss pdflib perl plotutils png python qt quicktime readline real rtc sdl slang sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts v4l v4l2 xml xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 8 Luca Barbato gentoo-dev 2005-02-28 15:12:12 UTC
type opengl-update xorg-x11

looks that's something broken in the xorg-x11 ebuild logic
Comment 9 JonasSL 2005-03-01 02:00:56 UTC
An opengl-update xorg-x11 did not help. I did a reemerge of xorg, after that the problem was solved.

I have to add that although the ati-drivers aren't installed right now, I did use them a while ago and ran opengl-update ati/xorg-x11 quite a few times. Maybe it got broken somewhere there.
Comment 10 Joe Jezak (RETIRED) gentoo-dev 2005-04-09 06:06:27 UTC
Please reopen the bug if this is still a problem, since using opengl-update and/or remerging xorg-x11 seems to fix it.