Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79693 - x11-libs/gtkglext-1.0.6 is hardcoded to wrong env.d entry
Summary: x11-libs/gtkglext-1.0.6 is hardcoded to wrong env.d entry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 79868 80399 81545 84759 88021 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-27 03:04 UTC by Mark Rosenstand
Modified: 2005-04-05 04:40 UTC (History)
8 users (show)

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


Attachments
NVIDIA_glx-1.0.6629-defines2.patch (NVIDIA_glx-1.0.6629-defines2.patch,2.01 KB, patch)
2005-01-31 20:10 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rosenstand 2005-01-27 03:04:05 UTC
Could not find /etc/env.d/09opengl. Please run opengl-update.

Running opengl-update doesn't help much - the problem is that 09opengl apparently has moved to 03opengl. The problem can be fixed with a symlink.

Reproducible: Always
Steps to Reproduce:
1. emerge x11-libs/gtkglext



Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.4,dev-lang/python-2.3.4 [2.4 (#1, Jan 27
2005, 03:00:06)]
dev-lang/python:     2.4, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no http://gentoo.osuosl.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 apm berkdb cdr dvd dvdr encode fbcon flac gdbm gif gpm
gtk2 imlib jpeg mad mbox multilib ncurses nls oggvorbis opengl pam pcre perl png
python quicktime readline ruby ssl svg tcpd tiff truetype videos xinerama xosd
xpm xv"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 foser (RETIRED) gentoo-dev 2005-01-27 05:12:29 UTC
gee ugly solution, no thats not right.. certainly not.
Comment 2 Joe McCann (RETIRED) gentoo-dev 2005-01-28 09:50:30 UTC
*** Bug 79868 has been marked as a duplicate of this bug. ***
Comment 3 foser (RETIRED) gentoo-dev 2005-01-31 14:57:03 UTC
try 1.0.6-r1 , i ripped out the whole GL switching bit, I don't think it's needed anymore with recent nvidia releases.
Comment 4 Alexander Marks 2005-01-31 17:14:39 UTC
1.0.6-r1 fixed the problem for me, but unfortunately a new one cropped up. I now get an exit with the error:

!!! ERROR: x11-libs/gtkglext-1.0.6-r1 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure

Only bug I found with a connection to this is Bug 67691
Comment 5 Ed Catmur 2005-01-31 19:49:49 UTC
comment 3, I think there is still breakage:

...
In file included from /usr/X11R6/include/GL/gl.h:71,
                 from gdkglglext.h:33,
                 from gdkglglext.c:26:
/usr/X11R6/include/GL/glext.h:2217:1: warning: this is the location of the previous definition
In file included from gdkglglext.h:53,
                 from gdkglglext.c:26:
../gdk/glext/glext.h:3810: error: redefinition of typedef 'PFNGLCOLORSUBTABLEEXTPROC'
/usr/X11R6/include/GL/glext.h:3223: error: previous declaration of 'PFNGLCOLORSUBTABLEEXTPROC' was here
...

/usr/X11R6/include/GL/glext.h resolves to /usr/lib/opengl/nvidia/include/glext.h, from nvidia-glx-1.0.6629-r4.

Would it not make more sense to fix the nvidia headers than switch GL implementation? - or perhaps pass -I/usr/lib/opengl/xorg-x11/include in CFLAGS?
Comment 6 Ed Catmur 2005-01-31 19:57:13 UTC
comment 4, I don't see the connection - bug 59730 looks a lot more relevant to me.
Comment 7 Ed Catmur 2005-01-31 20:10:03 UTC
Created attachment 50095 [details, diff]
NVIDIA_glx-1.0.6629-defines2.patch

This is the patch I suggest. It's quite small, just moves the offending typedef
into the correct #ifdef. (It leaves the redefined constants as-is, as they just
cause a warning.)

It needs to go into the nvidia-glx ebuild, obviously; it works going in after
"epatch NVIDIA_glx-1.0.6629-defines.patch".
Comment 8 foser (RETIRED) gentoo-dev 2005-02-01 02:42:33 UTC
hm in the ebuild we then rather go with the implementation switching trick, altough that patch might be useful to apply to the nvidia pack. But I couldn't reproduce it & iirc there were only problems with older headers/versions of nvidia-glx. If that is not the case I'll just revert it back.
Comment 9 foser (RETIRED) gentoo-dev 2005-02-01 06:27:38 UTC
added 1.0.6-r2 with the old gl switch redone in a safer way, please test.
Comment 10 Ed Catmur 2005-02-01 09:54:26 UTC
Sure, that works.

I have to say I'm not happy with the idea of switching GL implementation during compilation - but I guess this isn't the bug for discussion of that. I'll go over and cc myself on bug 59730.

Also, the above patch does need to be applied to nvidia-glx to make it header-compatible with the gtkglext glext.h, which is "more correct" as it is derived from the SGI OpenGL sample implementation 1.2.1. I'll file a bug on that.
Comment 11 Ed Catmur 2005-02-01 10:25:40 UTC
Filed as bug 80361.
Comment 12 Geoff Leach 2005-02-01 14:43:19 UTC
Just emerged 1.0.6-r2 and it built. Tried Octaga VRML/X3D browser (www.octaga.com) for Linux which uses libgtkglext and things worked ok (well, some gtk errors, but I think they belong to the app). 
Comment 13 Joe McCann (RETIRED) gentoo-dev 2005-02-01 17:45:52 UTC
*** Bug 80399 has been marked as a duplicate of this bug. ***
Comment 14 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-10 16:53:46 UTC
*** Bug 81545 has been marked as a duplicate of this bug. ***
Comment 15 foser (RETIRED) gentoo-dev 2005-02-22 08:54:23 UTC
gtkglext is 'fixed' for now, work being done on a better overall solution in #59730
Comment 16 foser (RETIRED) gentoo-dev 2005-03-10 12:13:11 UTC
*** Bug 84759 has been marked as a duplicate of this bug. ***
Comment 17 Josh Nichols (RETIRED) gentoo-dev 2005-03-12 20:35:44 UTC
Is this really fixed? I did an emerge sync just today, and I'm getting the problem using ati-drivers.
Comment 18 Toon Verstraelen 2005-04-01 23:48:29 UTC
It's only fixed in the keyword masked ebuild, not in the stable one.
Comment 19 foser (RETIRED) gentoo-dev 2005-04-05 04:40:40 UTC
*** Bug 88021 has been marked as a duplicate of this bug. ***