Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225869 - app-emulation/wine does not compile with nvidia-drivers 173.14.05 due to libGL.so.1 not being found
Summary: app-emulation/wine does not compile with nvidia-drivers 173.14.05 due to libG...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Ricardo Mendoza (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 10:37 UTC by Mark
Modified: 2009-08-03 04:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,19.58 KB, text/plain)
2008-06-11 10:38 UTC, Mark
Details
config.log (config.log,250.09 KB, text/plain)
2008-06-12 08:41 UTC, Mark
Details
Output of "emerge wine" (emerge-wine.log,584.71 KB, text/plain)
2008-06-14 10:51 UTC, Andreas Stangl
Details
LC_ALL="C" emerge wine &> winelog (winelog,22.99 KB, text/plain)
2008-06-18 08:25 UTC, Mark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2008-06-11 10:37:22 UTC
I want to emerge wine but it fails because no opengl is found (though my system works very well with nvidia-drivers, opengl, videos and games).

This is the error that occurs after calling emerge wine:
checking for GL/gl.h... yes 
checking for GL/glx.h... yes 
checking for GL/glext.h... yes 
checking for GL/glu.h... yes 
checking for up-to-date OpenGL version... yes 
checking for -lGL... not found 
checking for -lGL... not found 
checking for -lGLU... not found 
configure: error: No OpenGL library found on this system. 
OpenGL and Direct3D won't be supported. 
This is an error since --with-opengl was requested.

When I disable the opengl useflag, wine emerges just fine and someone in the forums (see link) tells me, that it must be a problem with the ebuild, because after a manual installation of the nvidia driver he has no problems with wine.

I tried wine 1.0_rc4 and 0.9.57

Reproducible: Always

Steps to Reproduce:
emerge wine with nvidia-drivers 173.14.05




Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
Timestamp of tree: Wed, 11 Jun 2008 09:17:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/ramdisk"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnash-cvs"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth bzip2 cairo cddb cdio cdr cjk cli cracklib crypt cups dbus dri dts dvd dvdr dvdread emboss encode evo exif extras fam ffmpeg firefox flac fortran ftp gcj gd gdbm geoip gif gimp glut gmp gnuplot gnutls gpm graphviz gs gtk hal hddtemp hpn iconv ieee1394 imagemagick imap ipv6 isdnlog jabber javascript jce jingle joystick jpeg jpeg2k kde konqueror lame latex libnotify lm_sensors lzo mad matroska mbox memlimit midi mime mmap mmx mmxext mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses network nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdf perl png posix postgres pppd python qt3 qt3support qt4 quicktime raw readline reflection samba scanner sdl session sharedmem snmp sockets soup spl sse sse2 ssl startup-notification svg swat syslog sysvipc taglib tcpd tetex theora threads tiff truetype unicode usb utempter vim-syntax vorbis wxwindows x264 xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa aiglx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mark 2008-06-11 10:38:11 UTC
Created attachment 156333 [details]
build.log
Comment 2 SpanKY gentoo-dev 2008-06-12 07:53:15 UTC
you posted the build log, but not the config.log which is what the error message referred to ... please do so
Comment 3 Mark 2008-06-12 08:41:48 UTC
Created attachment 156467 [details]
config.log

oops, sorry. Here is the log you need.
Comment 4 Andreas Stangl 2008-06-14 10:44:05 UTC
* I have a similiar problem when trying to emerge app-emulation/wine-1.0_rc4:
---------------------------------------------------------------------------
ld:vertexdeclaration.o: file format not recognized; treating as linker script
ld:vertexdeclaration.o:1: syntax error
winebuild: ld -m elf_i386 -r failed with status 256
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [d3d8.dll.so] Fehler 2
make[2]: Leaving directory `/var/tmp/portage/app-emulation/wine-1.0_rc4/work/wine-1.0-rc4/dlls/d3d8'
make[1]: *** [d3d8] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
x86_64-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith  -march=nocona -O2 -pipe  -o vertexshader.o vertexshader.c
x86_64-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith  -march=nocona -O2 -pipe  -o volume.o volume.c
x86_64-pc-linux-gnu-gcc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith  -march=nocona -O2 -pipe  -o volumetexture.o volumetexture.c
../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include  -D__WINESRC__   -foversion.res version.rc
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./d3d9.spec    basetexture.o cubetexture.o d3d9_main.o device.o directx.o indexbuffer.o pixelshader.o query.o resource.o stateblock.o surface.o swapchain.o texture.o vertexbuffer.o vertexdeclaration.o vertexshader.o volume.o volumetexture.o     version.res  -o d3d9.dll.so  -ldxguid -luuid -lwined3d -lkernel32   ../../libs/port/libwine_port.a
ld:texture.o: file format not recognized; treating as linker script
ld:texture.o:1: syntax error
winebuild: ld -m elf_i386 -r failed with status 256
winegcc: ../../tools/winebuild/winebuild failed
make[2]: *** [d3d9.dll.so] Fehler 2
make[2]: Leaving directory `/var/tmp/portage/app-emulation/wine-1.0_rc4/work/wine-1.0-rc4/dlls/d3d9'
make[1]: *** [d3d9] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/wine-1.0_rc4/work/wine-1.0-rc4/dlls'
make: *** [dlls] Fehler 2


* Wine refuses to compile sice quit a long time now and this is becoming pretty annoying... Here is my emerge --info:
------------------------------------------------------------------------------
Portage 2.1.5.4 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Timestamp of tree: Tue, 10 Jun 2008 21:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/xorg.conf /etc/conf.d/apache2 /etc/conf.d/hdparm /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-q"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS=""
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl aiglx alsa amarok amd64 apache2 audiofile berkdb bluetooth bogofilter branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cups curl dbus dga directfb divx dri dts dvd dvdr dvdread emboss encode evo exif extrafilters fam fame fbcon ffmpeg firefox flac fortran ftp gdbm gif glitz gpm gtk hal hbci httpd iconv idn imagemagick ipv6 irmc java jpeg kde lame libnotify libsamplerate live lm_sensors lzo mad midi mikmod mjpeg mmx mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp openssl pam pcre pdf perl php png ppds python qt3 qt3support qt4 quicktime rar rdesktop readline reflection samba session skins sndfile sox spell spl sqlite sse sse2 ssl startup-notification stream subversion svg syslog taglib tcpd tga theora tidy tiff truetype unicode usb userlocales vcd vhosts vim-pager vim-syntax vim-with-x visualization vorbis wavpack xcomposite xft xine xinetd xml xorg xpm xscreensaver xv xvid xvmc zip" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon ati vesa vga"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Andreas Stangl 2008-06-14 10:51:01 UTC
Created attachment 156727 [details]
Output of "emerge wine"

the complete "emerge wine" output. Maybe I should notice that I am using ati-drivers.
Comment 6 SpanKY gentoo-dev 2008-06-18 01:22:36 UTC
your problem is unrelated
Comment 7 SpanKY gentoo-dev 2008-06-18 01:23:46 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libGL.so.1, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib32/libGLU.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib32/libGLU.so: undefined reference to `glEvalMesh1'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib32/libGLU.so: undefined reference to `glTranslated'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib32/libGLU.so: undefined reference to `glMap1f'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib32/libGLU.so: undefined reference to `glNormal3f'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib32/libGLU.so: undefined reference to `glEnd'
Comment 8 SpanKY gentoo-dev 2008-06-18 01:24:38 UTC
not a bug in wine ... your nvidia install appears to be broken
Comment 9 Tony Vroon (RETIRED) gentoo-dev 2008-06-18 01:36:19 UTC
Please try both 173.14.09 and 169.12; I need to know whether this was introduced recently. If you wish to submit your build failures, run them as:
LC_ALL="C" emerge blah &> blah.buildlog.txt

I take it you have already used eselect opengl nvidia?
Comment 10 Mark 2008-06-18 08:25:37 UTC
Created attachment 157403 [details]
LC_ALL="C" emerge wine &> winelog

(In reply to comment #9)
> Please try both 173.14.09 and 169.12; I need to know whether this was
> introduced recently. 

169 won't work because I'm using kernel 2.6.25 and 169 is too old to compile with this kernel.

> I take it you have already used eselect opengl nvidia?

Yes, eselect opengl nvidia was/is set:
---
# eselect opengl show
nvidia
---

> If you wish to submit your build failures, run them as:
> LC_ALL="C" emerge blah &> blah.buildlog.txt

I don't have any build failures except for wine; I attached LC_ALL="C" emerge wine &> winelog
Comment 11 Mark 2008-06-18 08:46:29 UTC
I upgraded from 173.14.05 to 173.14.09, stopped X, unloaded the old nvidia module, loaded the new module, switched to nvidia opengl, started X, emerged wine => no changes
Comment 12 Andreas Stangl 2008-06-18 19:29:02 UTC
(In reply to comment #6)
> your problem is unrelated
> 
Well, I first thought it could be related because of the types of error messages in the build output. But my build failed during compilation not while doing ./configure ...

My problem is solved now and was not related to my graphics driver.
I found some broken dependencies (so it was _not_ a problem with wine)
and everything works fine now.
Comment 13 Mark 2008-07-07 17:30:56 UTC
ok, some news here: I tried several wine versions now and everything I tried from 0.9 to 0.9.52 compiled and everything above 0.9.52 did not compile because of "configure: error: No OpenGL library found on this system."

So there must be a change from 0.9.52 -> 0.9.53 which breaks wine.
Comment 14 Miguel Sanjurjo 2008-07-16 09:56:42 UTC
(In reply to comment #13)
> ok, some news here: I tried several wine versions now and everything I tried
> from 0.9 to 0.9.52 compiled and everything above 0.9.52 did not compile because
> of "configure: error: No OpenGL library found on this system."
> 
> So there must be a change from 0.9.52 -> 0.9.53 which breaks wine.
> 

I think this is an issue from eselect (or the Wine build looking for the wrong symlinks) and so independent of the nvidia-drivers. I had the same problems using xorg's OpenGL.
Solution: Make the symlinks for libGL.so and libGLU.so pointing to your libGL.so.1 and libGLU.so.1 respectivelly in /usr/lib. I only had to do the first symlink, the second one was already there. Configure then without problems.

Good luck
Comment 15 Mark 2008-07-16 18:19:46 UTC
can you tell me, which file should be symlinked to what?
Because I tried cd /usr/lib; ln -s /usr/lib64/opengl/nvidia/lib/libGL.so.1 libGL.so.1 but GL is still not found.
Comment 16 Sylvain Philip 2008-10-30 22:08:40 UTC
I had the same problem with 2.6.25-gentoo-r4 x86_64 and I resolve it by copying libGL.so from another 32 bits system and past in /usr/lib32.
I think the problem come from app-emulation/emul-linux-x86-baselibs which ommit this lib
Comment 17 Seppo Yli-Olli 2008-12-20 15:46:35 UTC
Sounds like a bug in x11-drivers/nvidia-drivers-173.14.05 not installing 32bit compatibility libs. app-emulation/emul-linux-x86-xlibs would be the right packagage I think, not baselibs, if we'd be talking about non-proprietary drivers but the proprietary 32bit libs are afaik normally inside nvidia-drivers itself.
Comment 18 Balint Dobai-Pataky 2009-02-18 17:09:42 UTC
i had the same problem, resolved it by adding 
/usr/lib32/opengl/nvidia/lib
to /etc/ld.so.conf
and rerun ldconfig
Comment 19 Balint Dobai-Pataky 2009-02-18 20:17:29 UTC
looks like it lasts only until the next nvidia-drivers install, so i think nvidia-drivers is to blame
Comment 20 Dima Tisnek 2009-03-19 15:11:59 UTC
A step closer to the root of the problem is to edit /etc/env.d/03opengl and change lib path to (assuming you use nvidia):
LDPATH="/usr/lib/opengl/nvidia/lib:/usr/lib32/opengl/nvidia/lib"

after that env-update and all is well.
until next eselect opengl set <anything>

it seems opengl installation naively assumes that /usr/lib/ is enough for everyone, while it's not in a mixed 64/32 bit system.

this file is overwritten by eselect-opengl magic, someone should file a bug to eselect...
Comment 21 Alailson Ribeiro (Multiappiance) 2009-03-31 16:33:27 UTC
Try

USE=-opengl emerge wine


(In reply to comment #20)
> A step closer to the root of the problem is to edit /etc/env.d/03opengl and
> change lib path to (assuming you use nvidia):
> LDPATH="/usr/lib/opengl/nvidia/lib:/usr/lib32/opengl/nvidia/lib"
> 
> after that env-update and all is well.
> until next eselect opengl set <anything>
> 
> it seems opengl installation naively assumes that /usr/lib/ is enough for
> everyone, while it's not in a mixed 64/32 bit system.
> 
> this file is overwritten by eselect-opengl magic, someone should file a bug to
> eselect...
> 

Comment 22 Mark 2009-04-19 10:36:13 UTC
some time passed and with my current, up to date system it was enough to create a symlink from /usr/lib32/opengl/nvidia/lib/libGL.so to /usr/lib32/libGL.so.
wine compiled and I was able to play the Warcraft 3 Demo, so I guess that opengl works.
I do not know, which package is responsible for (not) setting this symlink.
Comment 23 hyliker cheung 2009-07-23 14:37:04 UTC
you can try the flowing.
#sudo eselect opengl set xorg-x11
hope this will fix your problem.
Comment 24 Doug Goldstein (RETIRED) gentoo-dev 2009-08-03 04:10:11 UTC
This one has gotten a little stale and I've never been able to reproduce it. If its still an issue, please reopen.