Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55982 - pygtk fails to build - nvidia directory is wrong
Summary: pygtk fails to build - nvidia directory is wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 56731 57054 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-03 11:15 UTC by Samuel Penn
Modified: 2004-07-20 17:19 UTC (History)
6 users (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 Samuel Penn 2004-07-03 11:15:53 UTC
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"
Comment 1 Joe Brouhard 2004-07-03 16:11:26 UTC
I'm having similar problems.  Was trying to build gnome-terminal in this case. 

I do have a nVidia card.. using XOrg-X11
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-07-03 16:11:58 UTC
might need to rerun opengl-update
Comment 3 Joe Brouhard 2004-07-03 16:32:11 UTC
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
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2004-07-03 18:06:38 UTC
have you got an old opengl-update? try using the latest version 
Comment 5 Samuel Penn 2004-07-04 01:58:32 UTC
Have run "opengl-update nvidia" (I have an NVidia graphics card), and I still get the same error on compilation.
Comment 6 Igor Golubev 2004-07-04 15:11:57 UTC
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.
Comment 7 Jérémie Delente 2004-07-05 06:47:26 UTC
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
Comment 8 Warwick Harvey 2004-07-05 11:53:40 UTC
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.
Comment 9 Igor Golubev 2004-07-05 17:56:09 UTC
The solution given in the comment #9 of the bug #41609 doesn't work for me either.
Comment 10 Thomas Luft 2004-07-11 17:41:15 UTC
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.
Comment 11 foser (RETIRED) gentoo-dev 2004-07-12 06:34:38 UTC
*** Bug 56731 has been marked as a duplicate of this bug. ***
Comment 12 foser (RETIRED) gentoo-dev 2004-07-12 06:36:00 UTC
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 ?
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2004-07-12 14:37:26 UTC
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.
Comment 14 Andrew Bevitt 2004-07-12 22:03:11 UTC
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.
Comment 15 laughingplant 2004-07-14 01:48:34 UTC
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.
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2004-07-14 14:29:26 UTC
*** Bug 57054 has been marked as a duplicate of this bug. ***
Comment 17 Tyler Milam 2004-07-15 07:52:15 UTC
Same problem. Comment #9 worked. 
Comment 18 Caleb Kemere 2004-07-15 15:50:39 UTC
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.
Comment 19 Andrew Bevitt 2004-07-15 17:27:11 UTC
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)
Comment 20 laughingplant 2004-07-15 18:32:06 UTC
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!
Comment 21 Andrew Bevitt 2004-07-16 23:42:42 UTC
This is definately an artifact in userspace... 

Closing.
Comment 22 Mr. Bones. (RETIRED) gentoo-dev 2004-07-19 02:32:06 UTC
The current stable opengl-update with the current stable nvidia drivers
results in this broken state.  This still needs to be addressed.
Comment 23 Andrew Bevitt 2004-07-20 17:19:28 UTC
Fixed this through irc... fixes are in the new revisions of all the ebuilds