Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 97693

Summary: nvidia-glx-1.0.7664: typedef redefinitions of 'GLXFBConfigSGIX' and 'GLXPbufferSGIX' in /usr/X11R6/include/GL/glx.h and glxext.h
Product: Gentoo Linux Reporter: Brian D <contingencyplan>
Component: [OLD] DevelopmentAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: premek, yawgmoth7
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The portion of Crystal Space's config.log that relates to the GLX error

Description Brian D 2005-07-02 00:27:14 UTC
I tried to compile the latest CVS of Crystal Space (http://crystalspace3d.org),
and the configure failed to find the GLX. The relevant config.log output is
attached; key lines are:

In file included from /usr/X11R6/include/GL/glx.h:337,
                 from conftest.c:24:
/usr/X11R6/include/GL/glxext.h:267: error: redefinition of typedef 'GLXFBConfigSGIX'
/usr/X11R6/include/GL/glx.h:157: error: previous declaration of
'GLXFBConfigSGIX' was here
/usr/X11R6/include/GL/glxext.h:271: error: redefinition of typedef 'GLXPbufferSGIX'
/usr/X11R6/include/GL/glx.h:144: error: previous declaration of 'GLXPbufferSGIX'
was here

I tried re-emerging nvidia-glx without having any effect on the problem.  

I removed the gl.h, glext.h, glx.h, and glxext.h symlinks form
/usr/X11R6/include/GL/ and running opengl-update nvidia again without effect.  

I saw that the symlinks for glext.h and glxext.h link to /usr/lib/opengl/global,
rather than /usr/lib/opengl/nvidia, so I removed the symlinks and linked them to
the nvidia versions.  No effect.  (Aside: Shouldn't those link to nvidia
anyways?  Why are they linked to global?)

I fixed the problem by emerging nvidia-kernel-1.0.7174 and
nvidia-glx-1.0.7174-r4.  Crystal Space now configures correctly.  This leads me
to believe that this is a problem with GLX 7664.

Reproducible: Always
Steps to Reproduce:
Try to configure Crystal Space CVS (see attachment for demo program)
Actual Results:  
The configure failed to set up GLX correctly.  The demo program used in the
configure failed to compile with the error:

In file included from /usr/X11R6/include/GL/glx.h:337,
                 from conftest.c:24:
/usr/X11R6/include/GL/glxext.h:267: error: redefinition of typedef 'GLXFBConfigSGIX'
/usr/X11R6/include/GL/glx.h:157: error: previous declaration of
'GLXFBConfigSGIX' was here
/usr/X11R6/include/GL/glxext.h:271: error: redefinition of typedef 'GLXPbufferSGIX'
/usr/X11R6/include/GL/glx.h:144: error: previous declaration of 'GLXPbufferSGIX'
was here

See attached config.log portion for more information.

Expected Results:  
configure should have found GLX and set it up.  The demo program for the
configure script should have compiled correctly.

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.10-nitro4 i686)
=================================================================
System uname: 2.6.10-nitro4 i686 AMD Athlon(TM) XP 2200+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  7 2005, 10:36:15)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mfpmath=sse,387 -pipe -fexpensive-optimizations
-fomit-frame-pointer -ffast-math -fprefetch-loop-arrays -fmerge-all-constants"
CHOST="i686-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/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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="-O3 -march=athlon-xp -mfpmath=sse,387 -pipe -fexpensive-optimizations
-fomit-frame-pointer -ffast-math -fprefetch-loop-arrays -fmerge-all-constants"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.noved.org/ http://gentoo.ccccom.com
ftp://gentoo.ccccom.com"
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="x86 3dnow X alsa apm arts avi berkdb bitmap-fonts bonobo c++ cdr crypt
cscope cups curl doc dvd emacs emboss encode esd evo fam fbcon foomaticdb
fortran gb gd gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imlib ipv6
java jikes joystick jpeg junit kde leim lesstif libg++ libwww mad mikmod mmx
motif mozilla mp3 mpeg mpi mysql ncurses nls ogg oggvorbis openal opengl oss pam
pdflib perl png postgres python qt quicktime readline ruby sdl slang spell sse
ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb vorbis
wmf wxwindows xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Brian D 2005-07-02 00:29:23 UTC
Created attachment 62445 [details]
The portion of Crystal Space's config.log that relates to the GLX error
Comment 2 Luca Barbato gentoo-dev 2005-08-04 11:53:25 UTC
*** Bug 99640 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-14 07:24:12 UTC
*** Bug 136783 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 17:18:04 UTC
1.0.7664 no longer in the tree. If you have issues w/ up-to-date nvidia-drivers, then reopen please.