Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88840 - nvidia-glx 7174-r1 apps linked against libGL now require libGLcore
Summary: nvidia-glx 7174-r1 apps linked against libGL now require libGLcore
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-12 05:55 UTC by Mark Boddington
Modified: 2005-04-21 05:54 UTC (History)
0 users

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 Mark Boddington 2005-04-12 05:55:17 UTC
Hi,

When trying to emerge several apps which use libGL, (including mythtv, gtkglarea, smpeg) I recieve unknown reference errors when they are linked. It looks as though some functions which used to be available through libGL are now in libGLcore? If I modify the respective ebuilds to link against libGL and libGlcore they compile fine.




Reproducible: Always
Steps to Reproduce:
1.Using mythtv as an example. 
2.emerge mythtv


Actual Results:  
g++  -o mythepg main.o    -L/usr/qt/3/lib -L../../libs/libmyth
-L../../libs/libmythtv -L../../libs/libavcodec -L../../libs/libavformat
-lmythtv-0.17 -lmythavformat-0.17 -lmythavcodec-0.17 -lmyth-0.17 -lfreetype
-lmp3lame -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm `artsc-config
--libs` -lXvMCNVIDIA -lXvMC -lGL -lGLU -lqt-mt -lXext -lX11 -lm -lpthread
g++  -o mythprogfind main.o    -L/usr/qt/3/lib -L../../libs/libmyth
-L../../libs/libmythtv -L../../libs/libavcodec -L../../libs/libavformat
-lmythtv-0.17 -lmythavformat-0.17 -lmythavcodec-0.17 -lmyth-0.17 -lfreetype
-lmp3lame -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm `artsc-config
--libs` -lXvMCNVIDIA -lXvMC -lGL -lGLU -lqt-mt -lXext -lX11 -lm -lpthread
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000793gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000795gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000792gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000797gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000794gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000800gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000798gl'
/usr/lib64/libGLcore.so.1: undefined reference to `_nv000790gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000796gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000791gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000799gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000801gl'
collect2: ld returned 1 exit status
make[2]: *** [mythepg] Error 1
make[2]: Leaving directory
`/var/tmp/portage/mythtv-0.17-r1/work/mythtv-0.17/programs/mythepg'
make[1]: *** [sub-mythepg] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000793gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000795gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000792gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000797gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000794gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000800gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000798gl'
/usr/lib64/libGLcore.so.1: undefined reference to `_nv000790gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000796gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000791gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000799gl'
/usr/X11R6/lib/libGL.so: undefined reference to `_nv000801gl'
collect2: ld returned 1 exit status
make[2]: *** [mythprogfind] Error 1
make[2]: Leaving directory
`/var/tmp/portage/mythtv-0.17-r1/work/mythtv-0.17/programs/mythprogfind'
make[1]: *** [sub-mythprogfind] Error 2
make[1]: Leaving directory
`/var/tmp/portage/mythtv-0.17-r1/work/mythtv-0.17/programs'
make: *** [sub-programs] Error 2

Expected Results:  
It should have built mythtv.

If I modify the setting.pro file for mythtv adding "-lGLcore" to the opengl
EXTRALIBS variable it compiles. 

Please look at bug 86221 for how I worked around the issue in smpeg
 http://bugs.gentoo.org/show_bug.cgi?id=86221

emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  2 2005, 08:15:13)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -pipe -O2"
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/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa arts audiofile avi berkdb bitmap-fonts bzlib
cdparanoia cdr crypt cups curl dga directfb divx4linuxdvb dvd dvdr dvdread
encode esd fam fbcon flac font-server foomaticdb fortran gdbm gif gimpprint
gnome gphoto2 gpm gstreamer gtkgtk2 imagemagick imap imlib ipv6 jack java
joystick jp2 jpeg kde lirci live lmtp lzw lzw-tiff mad mng motif mozilla mp3
mpeg multilib mysql ncurses network nls nptl nvidia offensive oggvorbis openal
opengl oss pam perl png python qt quicktime readline real samba sdl ssl tcltk
tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales videos xine
xml xml2 xmms xpm xprint xrandr xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Mark Boddington 2005-04-21 05:54:59 UTC
I had an old 1.0.6xxx version of the GL libs that I had installed last year using Nvidias installer. running "nvidia-installer --uninstall" followed by a "opengl-update nvidia" fixes it.

Oooops. Sorry.