Tried an emerge gimp for gimp-2. This tried to emerge dev-python/pygtk, but failed when building with the following error: /bin/sh ../libtool --mode=link gcc -O3 -march=i686 -funroll-loops -pipe -Wall -std=c9x -o gl.la -rpath /usr/lib/python2.3/site-packages/gtk-2.0/gtk -module -avoid-version -export-symbols-regex initgl gl_la-gtkglmodule.lo gl_la-gtkgl.lo -lgtkgl-2.0 -lGLU -lGL -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 grep: /usr/lib/opengl/nvidia/libGL.la: No such file or directory /bin/sed: can't read /usr/lib/opengl/nvidia/libGL.la: No such file or directory libtool: link: `/usr/lib/opengl/nvidia/libGL.la' is not a valid libtool archive make[2]: *** [gl.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/pygtk-2.0.0-r1/work/pygtk-2.0.0/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/pygtk-2.0.0-r1/work/pygtk-2.0.0' make: *** [all] Error 2 !!! ERROR: dev-python/pygtk-2.0.0-r1 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message) The file /usr/lib/opengl/nvidia/libGL.la does not exist, but /usr/lib/opengl/nvidia/lib/libGL.la (note the extra 'lib' directory) does. Don't know if this is similar to bug 52514 . Reproducible: Always Steps to Reproduce: 1.emerge pygtk Actual Results: The above error was obtained. Expected Results: Installed correctly. emerge -p pygtk [ebuild N ] dev-python/pygtk-2.0.0-r1 Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.24) ================================================================= System uname: 2.4.24 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomatic foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
I'm having similar problems. Was trying to build gnome-terminal in this case. I do have a nVidia card.. using XOrg-X11
might need to rerun opengl-update
Well, i created a hard symlink (ln -sf) to fix this problem... didn't try opengl-update tho. I haven't done any opengl/xorg-x11 updates since I got my gentoo system back up
have you got an old opengl-update? try using the latest version
Have run "opengl-update nvidia" (I have an NVidia graphics card), and I still get the same error on compilation.
I have exact the same problem and opengl-update doesn't solve it to me. However, I've found a workaround for this issue. I made a soft-link /usr/lib/opengl/nvidia/libGL.la pointing to the real libGL.la residing in the /usr/lib/opengl/nvidia/lib, and I also corrected a 'libdir' entry within the libGL.la, so now its value is '/usr/lib/opengl/nvidia/lib'. Unfortunately, this problem directly affecs many other packages besides pygtk. For instance, vte also affected, as well as many others.
it seems to be quite similar to this bug : Bug 41609 pygtk-2.0.0-r1 won't compile Have you try the solution given (it has worked for me)? : ------- Additional Comment #9 From SpanKY 2004-03-03 14:39 PST ------- ok, you got an old and busted .la file somewhere, do this to fix it: delete all the links (if you made any) /usr/lib/opengl/nvidia/ opengl-update nvidia for f in `grep -l '/usr/lib/opengl/nvidia/libGL' /usr/lib/*.la` ; do qpkg -f ${f} done then re-emerge all the packages that are listed
Tried these instructions, didn't help. > ok, you got an old and busted .la file somewhere, do this to fix it: > delete all the links (if you made any) /usr/lib/opengl/nvidia/ Didn't make any. > opengl-update nvidia I even emerged opengl-update to make sure I had the latest version. > for f in `grep -l '/usr/lib/opengl/nvidia/libGL' /usr/lib/*.la` ; do > qpkg -f ${f} > done One matching .la file: /usr/lib/libgtkgl-2.0.la Owned by gtkglarea. > then re-emerge all the packages that are listed Done. Then re-did the emerge world that led to merging pygtk, but it still fails in the same way.
The solution given in the comment #9 of the bug #41609 doesn't work for me either.
Same error here when emerging gimp: grep: /usr/lib/opengl/nvidia/libGL.la: No such file or directory /bin/sed: can't read /usr/lib/opengl/nvidia/libGL.la: No such file or directory libtool: link: `/usr/lib/opengl/nvidia/libGL.la' is not a valid libtool archive make[2]: *** [gl.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/pygtk-2.0.0-r1/work/pygtk-2.0.0/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/pygtk-2.0.0-r1/work/pygtk-2.0.0' make: *** [all] Error 2 !!! ERROR: dev-python/pygtk-2.0.0-r1 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! (no error message) I checked /usr/lib/opengl/nvidia and there were no old symlinks or whatsoever. opengl-update didn't fix the problem either. As stated in the bug report creatring a symlink from /usr/lib/opengl/nvidia/*lib*/libGL.la to /usr/lib/opengl/nvidia/libGL.la did fix the problem.
*** Bug 56731 has been marked as a duplicate of this bug. ***
we get a bit too much of these reports lately, although the problems pop-up in our ebuilds it looks more like an opengl-update problem to me. Could the xfree maintainers please take a look ?
cyfred, I know there was some problem with nvidia's .la similar to this a while back. Maybe you can speak to that, this, whatever.
This looks similar yes.. Im not sure why its happening again though, if we can wait until the new opengl-update and nvidia-glx goes into the tree -- then we'll know if its something caused currently or some artifact like last time.
Hmm, pygtk-2.0.0-r1 compiles fine here, but pygtk-0.6.11-r1 (a dependency of scigraphica) fails with exactly the same errors. Also, PyOpenGL, a dependency of pygtk, says its doing an "opengl-update xfree", but no matter how I play with opengl-update, pygtk-0.6 doesn't compile.
*** Bug 57054 has been marked as a duplicate of this bug. ***
Same problem. Comment #9 worked.
I noticed that the line in opengl-update that reads: sed -i 's:/usr/lib/opengl/[^/]*/lib/libGL.la:/usr/lib/libGL.la:' should probably be changed to: sed -i 's:/usr/lib/opengl/[^/]*/libGL.la:/usr/lib/libGL.la:' so that things which link /usr/lib/opengl/nvidia* match. "opengl-update nvidia" then re-emerging as in Comment 9 fixed the problem for me.
OK its an artifact of something broken in user space... same as it was last time something like this happened, (Derived from comment 9 working)... IRT the above opengl-update should look like it currently is, nothing should link /usr/lib/opengl/nvidia/* (only <blah>/lib/* or other subdirectory). Infact its generally enough for GL to be linked to /usr/lib .. which is why symlinks are made by opengl-update. For those of you experiencing the problem check that /usr/lib/libGL.la has libdir="/usr/lib/opengl/<implem>/lib" In it... If not then edit the file so that it does... Then cd /usr/lib grep libGL.la ./* Make sure the results you get back reference /usr/lib/libGL.la (not something under /usr/lib/opengl/).. If they DONT qpkg -f <file_with_bad_match> And remerge the package(s)
That almost fixed the problem. /usr/lib/libgtkgl.la continued to reference the /usr/lib/opengl/nvidia stuff, even after remerging and switching opengl implementations repeatedly. So I manually edited libgtkgl.la, and now it works. Thanks a lot guys!
This is definately an artifact in userspace... Closing.
The current stable opengl-update with the current stable nvidia drivers results in this broken state. This still needs to be addressed.
Fixed this through irc... fixes are in the new revisions of all the ebuilds