Summary: | gl headers issue with pyopengl | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Shawnda <setgen> |
Component: | [OLD] GNOME | Assignee: | Jeremy Huddleston (RETIRED) <eradicator> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mmokrejs, python, x11 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 83645 | ||
Attachments: | current gtk installations before unmerge/merge job do start |
Description
Shawnda
2004-08-25 10:04:36 UTC
Not gnome obviously, not distcc either lisa. @ reporter, let bugwranglers handle bug assignment please. The same bug I do have too. Which version of xorg / opengl-update are you using? Oh yes, had no add. infos: - No Xorg, yust using Xfree - OpenGL-update = x11-base/opengl-update-1.8.1 (For more features/speed in UT2004) if you run `opengl-update nvidia` or whatever, does this get fixed ? No, I tried that but it didn't work. But today I did emerge Xorg, and it could be emerged without an error. I still have xfree, and this compiles for me. There was no emerge info, so bit difficult to figure out what the difference is. Jason are you using one of the other GL implementations or xfrees'? Can you try opengl-update xfree (if you aren't using it allready)... If then /usr/include/GL/glext.h is a symlink or a file this is a user space error, if it doesnt exist then there is some inconsistency. Andrew, I was using nvidia GL but switched to opengl-update xfree and re-emerged pyopengl without problems. # qpkg -l xfree-4.3.0-r6|grep "glext.h" /usr/X11R6/include/GL/glext.h $ ls -l /usr/include/GL lrwxrwxrwx 1 root root 19 Jul 15 19:35 /usr/include/GL -> ../X11R6/include/GL $ ls -l /usr/X11R6/include/GL/glext.h -r--r--r-- 1 root root 258464 Jul 15 19:34 /usr/X11R6/include/GL/glext.h I can remember that I had to reboot after my first pyopengl emerge, some inconsistents did make my desktop unstable. Next day I did install Xorg and GLXgears didn't run anymore. The pyopengl did break the GL extensions, or is it normal after Xorg to reinstall nvidia-...?. Afterwards I had to reinstall nvidia-kernel and -glx. My last posting was easy to misunderstand. The GL extensions did work before I did compile pyopengl. After compiling (in the evening, Europe) they did break. At the next day I prepared for Xorg. I tried some speed tests, and OpenGL did no longer work, tested with glxgears. I did re-emerge nvidia-glx, and afterwards I started to emerge Xorg. Sorry for confusion, but when I write something you guys in the US do read that 6-9 hours later. So answers do come mostly at the next day and corrections again later. This is (unless something user space then. Test this.. unmerge gtk*gl and py*gl unmerge nvidia-glx Now remerge nvidia-glx opengl-update nvidia-glx remerge all the other things you unmerged Created attachment 38598 [details]
current gtk installations before unmerge/merge job do start
I will start now with: unmerging dev-perl/gtk-perl-glade , x11-libs/gtk+ , pyopengl and nvidia-glx Aftwerwards remerging in your order with pyopengl as last. Now I hit myself, I can no longer emerge gtk+, and lost with it Mozilla (Bookmarks). How to get it back? Error message: ... ... make all-recursive make[3]: Entering directory `/var/tmp/portage/gtk+-2.4.4/work/gtk+-2.4.4/gdk' Making all in x11 make[4]: Entering directory `/var/tmp/portage/gtk+-2.4.4/work/gtk+-2.4.4/gdk/x11' if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/X11R6/include -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -Wall -MT gdkasync.lo -MD -MP -MF ".deps/gdkasync.Tpo" \ -c -o gdkasync.lo `test -f 'gdkasync.c' || echo './'`gdkasync.c; \ then mv -f ".deps/gdkasync.Tpo" ".deps/gdkasync.Plo"; \ else rm -f ".deps/gdkasync.Tpo"; exit 1; \ fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/X11R6/include -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -Wall -MT gdkasync.lo -MD -MP -MF .deps/gdkasync.Tpo -c gdkasync.c -fPIC -DPIC -o .libs/gdkasync.o In file included from /usr/X11R6/include/X11/Xlib.h:64, from /usr/X11R6/include/X11/Xlibint.h:43, from gdkasync.c:47: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if In file included from /usr/X11R6/include/X11/Xfuncs.h:34, from /usr/X11R6/include/X11/Xlibint.h:221, from gdkasync.c:47: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if In file included from /usr/X11R6/include/X11/Xlibint.h:222, from gdkasync.c:47: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if In file included from /usr/X11R6/include/X11/extensions/Xrender.h:33, from /usr/X11R6/include/X11/Xft/Xft.h:44, from ../../gdk/x11/gdkdrawable-x11.h:35, from ../../gdk/x11/gdkwindow-x11.h:30, from gdkprivate-x11.h:36, from gdkx.h:78, from gdkasync.c:49: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if make[4]: *** [gdkasync.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/gtk+-2.4.4/work/gtk+-2.4.4/gdk/x11' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/gtk+-2.4.4/work/gtk+-2.4.4/gdk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/gtk+-2.4.4/work/gtk+-2.4.4/gdk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtk+-2.4.4/work/gtk+-2.4.4' make: *** [all] Error 2 !!! ERROR: x11-libs/gtk+-2.4.4 failed. !!! Function src_compile, Line 73, Exitcode 2 !!! (no error message) I saw, it did use pango, so I tried to recompile pango, here the result: if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/freetype2 -I/usr/X11R6/include -I.. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -Wall -MT pangox.lo -MD -MP -MF ".deps/pangox.Tpo" \ -c -o pangox.lo `test -f 'pangox.c' || echo './'`pangox.c; \ then mv -f ".deps/pangox.Tpo" ".deps/pangox.Plo"; \ else rm -f ".deps/pangox.Tpo"; exit 1; \ fi if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/freetype2 -I/usr/X11R6/include -I.. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -Wall -MT pangox-fontcache.lo -MD -MP -MF ".deps/pangox-fontcache.Tpo" \ -c -o pangox-fontcache.lo `test -f 'pangox-fontcache.c' || echo './'`pangox-fontcache.c; \ then mv -f ".deps/pangox-fontcache.Tpo" ".deps/pangox-fontcache.Plo"; \ else rm -f ".deps/pangox-fontcache.Tpo"; exit 1; \ fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/freetype2 -I/usr/X11R6/include -I.. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -Wall -MT pangox-fontcache.lo -MD -MP -MF .deps/pangox-fontcache.Tpo -c pangox-fontcache.c -fPIC -DPIC -o .libs/pangox-fontcache.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/freetype2 -I/usr/X11R6/include -I.. -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -Wall -MT pangox.lo -MD -MP -MF .deps/pangox.Tpo -c pangox.c -fPIC -DPIC -o .libs/pangox.o In file included from /usr/X11R6/include/X11/Xlib.h:64, from pangox.h:31, from pangox-fontcache.c:22: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if In file included from /usr/X11R6/include/X11/Xlib.h:64, from pangox.c:26: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if make[4]: *** [pangox-fontcache.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [pangox.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/pango-1.4.1/work/pango-1.4.1/pango' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/pango-1.4.1/work/pango-1.4.1/pango' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/pango-1.4.1/work/pango-1.4.1/pango' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/pango-1.4.1/work/pango-1.4.1' make: *** [all] Error 2 !!! ERROR: x11-libs/pango-1.4.1 failed. !!! Function gnome2_src_compile, Line 38, Exitcode 2 !!! compile failure ############################################################################## pyopengl do report this error: ... ... running build_clib building 'interface_util' library creating build/temp.linux-i686-2.3 creating build/temp.linux-i686-2.3/src creating build/temp.linux-i686-2.3/src/interface_util gcc -fno-strict-aliasing -DNDEBUG -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -msse -fPIC -DGLX_PLATFORM -I/usr/include/python2.3 -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.3/src/interface_util/interface_util.o In file included from /usr/X11R6/include/X11/Xlib.h:64, from /usr/X11R6/include/GL/glx.h:39, from src/config.h:59, from src/interface_util/interface_util.c:1: /usr/X11R6/include/X11/Xosdefs.h:150:2: #endif without #if error: command 'gcc' failed with exit status 1 !!! ERROR: dev-python/pyopengl-2.0.0.44 failed. !!! Function distutils_src_compile, Line 38, Exitcode 1 !!! compilation failed ############################################################################ I believe I will go back to Xfree, until all applications are ok for Xorg. Ok, now with Xfree did emerge every application fine, including pyopengl and pango. No error at all. That error is quite odd, if you feel like it could you try using quickpkg to create a copy of your xfree install, and then remerge xorg (and test pango or gtk+ again)... Im thinking maybe it was a corrupt file, however thats just pulling at air. Are you still having this problem with xorg-x11-6.8.0-r4 and later? I'm experiencing this on a new install on amd64 I'm new to gentoo, but old to Linux, what can I do help fix this? Chris, what versions of xorg-x11 and opengl-update do you have? What is the result of 'opengl-update --get-implementation'? Try using 6.8.0-r4 or later of xorg-x11 and 2.1.1 or later of opengl-update. last night I changed my keywords to ~amd64, did an emerge --sync, then emerge --update world. today pyopengl compiles fine. I did try it unmasked before I did the update world. with no change other than what version of pyopengl it was trying. I now have xorg-x11 6.8.1.904 and opengl-update 2.1.1 using nvidia implementation. I didn't think to keep a list of what the update world changed, but the problem seems to be in there. for xorg try so: # opengl-update xorg-x11 # emerge pyopengl It happened for me again on one machine, which used to have xfree. I think I know how it happens, although haven't checked install scripts. "emerge -u world" since some time shifts users silently away from xfree-x11 to xorg-x11. However, nobody has run opengl-update "xorg-x11". Since then, pyopengl canot be installed. Reemerging pyopengl nor opengl-update did not help for example right now for me. Running "opengl-update xorg-x11" did help. Could someone confirm this theory? ;-) emerging xorg-x11 causes 'opengl-update xorg-x11' to be called during postinst if you were previously using xfree. I believe this problem is related to the headers not being updated if --use-current is passed to opengl-update. A workaround has been added to the xorg-x11 ebuild by luca a while back, so I'm going to mark this closes. |