Summary: | Compile failures due to nVidia OpenGL (undefined reference to `_nv??????gl') | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sean Sullivan <sean> |
Component: | [OLD] Library | Assignee: | X11 External Driver Maintainers <x11-drivers> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugreports, lfarkas, lordcris, media-video, Michael.Hanke, spamlover, sprockhoevel, wolfgang.illmeyer |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sean Sullivan
2005-12-08 10:27:03 UTC
Make sure you have the latest nvidia-glx package and then re-run eselect opengl set nvidia and try again. Same thing. I am running media-video/nvidia-glx-1.0.8174-r1 right now (just updated). I ran eselect opengl set nvidia, saw "Switching to nvidia openGL interface... done" and tried to compile smpeg again. Same here on ~x86 (please adjust bug) with latest nvidia-kernel|glx. Last lines of log are: i686-pc-linux-gnu-gcc -DPACKAGE=\"smpeg\" -DVERSION=\"0.4.4\" -I. -I. -mar ch=athlon-xp -O3 -pipe -I/usr/include/SDL -D_REENTRANT -DUSE_MMX -DTHREADED_AUDI O -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/ X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -c glmovie-til e.c i686-pc-linux-gnu-gcc -DPACKAGE=\"smpeg\" -DVERSION=\"0.4.4\" -I. -I. -mar ch=athlon-xp -O3 -pipe -I/usr/include/SDL -D_REENTRANT -DUSE_MMX -DTHREADED_AUDI O -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/ X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -c glmovie.c /bin/sh ./libtool --mode=link i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe -I/usr/include/SDL -D_REENTRANT -DUSE_MMX -DTHREADED_AUDIO -I/usr/include/gtk-1. 2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o glmovie glmovie-tile.o glmovie.o -lGL -lGLU libsmpeg.la -lSDL -lpthread -lm i686-pc-linux-gnu-gcc -march=athlon-xp -O3 -pipe -I/usr/include/SDL -D_REENTRANT -DUSE_MMX -DTHREADED_AUDIO -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/us r/lib/glib/include -I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o .libs/glmovie glmovie-tile.o glmovie.o -lGL -lGLU .libs/libsmpeg.s o -lSDL -lpthread -lm -lSDL -lpthread -lm -lstdc++ -lSDL -lpthread -lm -lSDL -lp thread -lm /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libGL.so: undefined reference to ` _nv000038gl' /usr/lib/libGLcore.so.1: undefined reference to `_nv000037gl' collect2: ld returned 1 exit status make[1]: *** [glmovie] Error 1 make[1]: Leaving directory `/var/tmp/portage/smpeg-0.4.4-r7/work/smpeg-0.4.4' make: *** [all-recursive] Error 1 Moving that to nvidia's drivers' maintainers. *** Bug 145835 has been marked as a duplicate of this bug. *** *** Bug 150221 has been marked as a duplicate of this bug. *** *** Bug 152723 has been marked as a duplicate of this bug. *** *** Bug 153582 has been marked as a duplicate of this bug. *** Same problem with kde-base/kdeartwork-kscreensaver-3.5.2 + the screensaver doesn't run under KDE I've installed (not merged, run NVIDIA-1.0.9629.pkg?.run) the new nvidia-1.0.9629 driver, after that the problem vanished, so amarok, kdeartworks compiled without error. Probably it is a bug of nvidia-drivers ebuild. Is there any news on this, because it starts to become quite annoying? I experience this problem on AMD64 with nvidia-drivers-1.0.9629 as well as 1.0.8776. If the problem has vanished for Lorant after installing the 1.0.9629 drivers by hand (on not via portage as I did), maybe it really is the fault of the nvidia-drivers ebuild. Anyway here is what I get if I try to merge kdesktop-3.5.5 with nvidia-drivers-1.0.9629: ith -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -march=athlon64 -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o kdesktop_lock -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 lockprocess.o lockdlg.o autologout.o main.o ../libkdesktopsettings.la ../../kdmlib/libdmctl.la -lkio -lXxf86misc -lGLU -lGL -lX11 /usr/lib64/libGL.so: undefined reference to `_nv001220gl' /usr/lib64/libGL.so: undefined reference to `_nv001207gl' /usr/lib64/libGL.so: undefined reference to `_nv001215gl' /usr/lib64/libGL.so: undefined reference to `_nv001240gl' /usr/lib64/libGL.so: undefined reference to `_nv001213gl' /usr/lib64/libGL.so: undefined reference to `_nv001209gl' /usr/lib64/libGL.so: undefined reference to `_nv001248gl' /usr/lib64/libGL.so: undefined reference to `_nv001225gl' /usr/lib64/libGL.so: undefined reference to `_nv001226gl' /usr/lib64/libGL.so: undefined reference to `_nv001214gl' /usr/lib64/libGL.so: undefined reference to `_nv001224gl' /usr/lib64/libGL.so: undefined reference to `_nv001210gl' /usr/lib64/libGL.so: undefined reference to `_nv001228gl' /usr/lib64/libGL.so: undefined reference to `_nv001249gl' /usr/lib64/libGL.so: undefined reference to `_nv001217gl' /usr/lib64/libGL.so: undefined reference to `_nv001236gl' /usr/lib64/libGL.so: undefined reference to `_nv001221gl' /usr/lib64/libGL.so: undefined reference to `_nv001204gl' /usr/lib64/libGL.so: undefined reference to `_nv001219gl' /usr/lib64/libGL.so: undefined reference to `_nv001216gl' /usr/lib64/libGL.so: undefined reference to `_nv001233gl' /usr/lib64/libGL.so: undefined reference to `_nv001245gl' /usr/lib64/libGL.so: undefined reference to `_nv001211gl' /usr/lib64/libGL.so: undefined reference to `_nv001206gl' /usr/lib64/libGL.so: undefined reference to `_nv001227gl' /usr/lib64/libGL.so: undefined reference to `_nv001242gl' /usr/lib64/libGL.so: undefined reference to `_nv001222gl' /usr/lib64/libGL.so: undefined reference to `_nv001237gl' /usr/lib64/libGL.so: undefined reference to `_nv001230gl' /usr/lib64/libGL.so: undefined reference to `_nv001247gl' /usr/lib64/libGL.so: undefined reference to `_nv001238gl' /usr/lib64/libGL.so: undefined reference to `_nv001246gl' /usr/lib64/libGL.so: undefined reference to `_nv001212gl' /usr/lib64/libGL.so: undefined reference to `_nv001232gl' /usr/lib64/libGL.so: undefined reference to `_nv001208gl' /usr/lib64/libGL.so: undefined reference to `_nv001234gl' /usr/lib64/libGL.so: undefined reference to `_nv001229gl' /usr/lib64/libGL.so: undefined reference to `_nv001205gl' /usr/lib64/libGL.so: undefined reference to `_nv001244gl' /usr/lib64/libGL.so: undefined reference to `_nv001218gl' /usr/lib64/libGL.so: undefined reference to `_nv001235gl' /usr/lib64/libGL.so: undefined reference to `_nv001223gl' /usr/lib64/libGL.so: undefined reference to `_nv001241gl' /usr/lib64/libGL.so: undefined reference to `_nv001243gl' /usr/lib64/libGL.so: undefined reference to `_nv001231gl' collect2: ld returned 1 exit status make[3]: *** [kdesktop_lock] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdesktop-3.5.5/work/kdesktop-3.5.5/kdesktop/lock' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdesktop-3.5.5/work/kdesktop-3.5.5/kdesktop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdesktop-3.5.5/work/kdesktop-3.5.5' make: *** [all] Error 2 !!! ERROR: kde-base/kdesktop-3.5.5 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile kdesktop-3.5.5.ebuild, line 40: Called kde-meta_src_compile kde-meta.eclass, line 379: Called kde_src_compile kde.eclass, line 172: Called kde_src_compile 'all' kde.eclass, line 342: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 338: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. And here the same with nvidia-drivers 1.0.8776: /bin/sh ../../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -march=athlon64 -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o kdesktop_lock -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 lockprocess.o lockdlg.o autologout.o main.o ../libkdesktopsettings.la ../../kdmlib/libdmctl.la -lkio -lXxf86misc -lGLU -lGL -lX11 /usr/lib64/libGL.so: undefined reference to `_nv001207gl' /usr/lib64/libGL.so: undefined reference to `_nv001204gl' /usr/lib64/libGL.so: undefined reference to `_nv001206gl' /usr/lib64/libGL.so: undefined reference to `_nv001205gl' /usr/lib/libGLcore.so.1: undefined reference to `_nv000037gl' collect2: ld returned 1 exit status make[3]: *** [kdesktop_lock] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdesktop-3.5.5/work/kdesktop-3.5.5/kdesktop/lock' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdesktop-3.5.5/work/kdesktop-3.5.5/kdesktop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdesktop-3.5.5/work/kdesktop-3.5.5' make: *** [all] Error 2 !!! ERROR: kde-base/kdesktop-3.5.5 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile kdesktop-3.5.5.ebuild, line 40: Called kde-meta_src_compile kde-meta.eclass, line 379: Called kde_src_compile kde.eclass, line 172: Called kde_src_compile 'all' kde.eclass, line 342: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 338: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. I think I found what is the difference between the ebuild and the installer. The installer create files: /usr/lib64/libnvidia-cfg.so /usr/lib64/libnvidia-cfg.so.1 /usr/lib64/libnvidia-cfg.so.1.0.9629 which I didn't found in the ebuild. I didn't found the 32-bit counterpart of these files so it is a 64-bit specific problem. Maybe if you download the package run with --extract only, compile, and copy these files to their place (or modify the ebuild to do this), then - maybe - the error vanish. I forgot to say, after I runned the installer, I've merged the driver and the problem didn't happen again. *** Bug 156636 has been marked as a duplicate of this bug. *** *** Bug 163919 has been marked as a duplicate of this bug. *** I revbumped the ebuilds and had them install libnvidia-cfg.so to /usr/lib/opengl/nvidia/lib. I then emerged kdesktop with no issues. If you still have problems, please reopen this bug. |