Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114893 (nvidia-opengl) - Compile failures due to nVidia OpenGL (undefined reference to `_nv??????gl')
Summary: Compile failures due to nVidia OpenGL (undefined reference to `_nv??????gl')
Status: RESOLVED FIXED
Alias: nvidia-opengl
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 150221 152723 153582 156636 163919 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-08 10:27 UTC by Sean Sullivan
Modified: 2007-03-13 22:35 UTC (History)
8 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 Sean Sullivan 2005-12-08 10:27:03 UTC
smpeg-0.4.4-r7 fails to compile with a string of errors like this:

/usr/lib64/libGL.so: undefined reference to `_nv000330gl'
/usr/lib64/libGL.so: undefined reference to `_nv000339gl'
/usr/lib64/libGL.so: undefined reference to `_nv000949gl'
/usr/lib64/libGL.so: undefined reference to `_nv000906gl'
/usr/lib64/libGL.so: undefined reference to `_nv000852gl'
.....




Reproducible: Always
Steps to Reproduce:
1. emerge smpeg



Actual Results:  
It fails with the undefined reference error described above.

Expected Results:  
Compiled successfully

bitwise sean # emerge info
Portage 2.0.53 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 audiofile avi berkdb bitmap-fonts bzip2
cdparanoia cdr crypt cups curl dbm divx4linux dvd dvdr dvdread eds emboss encode
esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gif glut gmp gpm
gstreamer gtk2 gtkhtml guile idn imagemagick imlib ipv6 java jpeg junit kde lcms
libclamav libwww lzw lzw-tiff mad mailwrapper mhash mng motif mozilla mp3 mpeg
mysql mysqli ncurses nls nvidia ogg oggvorbis opengl oss pam pcre pdflib perl
php png ppds python qt quicktime readline samba sdl spell ssl tcltk tcpd tiff
truetype truetype-fonts type1-fonts udev usb userlocales vorbis xine xml xml2
xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-08 10:59:06 UTC
Make sure you have the latest nvidia-glx package and then re-run 
 
eselect opengl set nvidia 
 
and try again. 
 
Comment 2 Sean Sullivan 2005-12-08 11:07:37 UTC
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.
Comment 3 Dead Schorsch 2005-12-11 01:06:12 UTC
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
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-17 18:05:55 UTC
Moving that to nvidia's drivers' maintainers.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-01 05:16:38 UTC
*** Bug 145835 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 00:09:57 UTC
*** Bug 150221 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-10-24 17:33:29 UTC
*** Bug 152723 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-10-31 11:58:21 UTC
*** Bug 153582 has been marked as a duplicate of this bug. ***
Comment 9 Lóránt Farkas 2006-11-01 00:34:20 UTC
Same problem with kde-base/kdeartwork-kscreensaver-3.5.2 + the screensaver doesn't run under KDE
Comment 10 Lóránt Farkas 2006-11-12 06:49:26 UTC
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. 
Comment 11 Stefan Tittel 2006-11-18 16:37:53 UTC
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.
Comment 12 Lóránt Farkas 2006-11-20 12:15:20 UTC
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.
Comment 13 Lóránt Farkas 2006-11-25 02:04:59 UTC
I forgot to say, after I runned the installer, I've merged the driver and the problem didn't happen again.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-11-29 11:11:15 UTC
*** Bug 156636 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2007-01-26 15:06:48 UTC
*** Bug 163919 has been marked as a duplicate of this bug. ***
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2007-03-13 22:35:22 UTC
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.