Date: Sat, 20 Oct 2007 20:37:52 +0400 From: Boris Samorodov <bsam@ipt.ru> To: Zephiris <zephiris@gmail.com> Cc: freebsd-emulation@freebsd.org Subject: Re: Nvidia LibGL and RELENG_7 linuxulator Message-ID: <98294959@ipt.ru> In-Reply-To: <ffc2ql$qti$1@ger.gmane.org> (zephiris@gmail.com's message of "Fri\, 19 Oct 2007 22\:13\:56 -0700") References: <ffagut$7tq$1@ger.gmane.org> <66147675@ipt.ru> <ffc2ql$qti$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Oct 2007 22:13:56 -0700 Zephiris wrote: > Boris Samorodov wrote: > > On Fri, 19 Oct 2007 08:02:48 -0700 Zephiris wrote: > > > >> I've been getting a rather strange issue between Nvidia driver and the > >> linux compatibility. > > > >> I've tried this with default Fedora Core 4 libraries, default 2.4 > >> version emulation, 2.6.16, FC6, F7, and now Gentoo. With older Linux X11 > >> libraries > > > > As of 2.6.16: did you follow instructions from /usr/ports/UPDATING > > while upgrade to 2.6.16? > I just tried it again explicitly following those instructions from the > start, identical results. > >> (eg, those from ports), anything trying to use Nvidia's libGL that > >> installs into the linux compat area will crash immediately. To get this > > > > Crash... Did you ugrade your system and may be forgot to upgrade the > > port? Or did you upgrade the OS without reinstalling ports? > This was a pretty fresh installation from CURRENT, not a long upgrade chain > or from 6.x. Everything's up to date. Via ports itself, there's no way to > get newer X11 libraries than 6.8 itself, correct? If you mean linux libraries then yes. OK. can you describe in details how do you install ports/options/etc to populate /compat/linux from scratch? And which options do you use for nvidia-driver port and other *GL* ports? > >> working at all, I had to install the Gentoo linux dist and install with > >> newer versions of everything (except glibc). > > > >> This will get far enough that it notes things like: > >> NVIDIA: Direct rendering failed; attempting indirect rendering. > > > >> /sbin/modprobe, as per suggestions and documentation, is symlinked > >> to ../bin/true, and that allows many things to work rather than > >> complaining that the module can't be loaded. Linux glxgears gets roughly > >> the same speed as on native host, but Linux glxinfo reports no direct > >> rendering is enabled, and a number of extensions aren't reported. This > >> means for basically all Linux games and most 3D apps, they get a small > >> fraction of the normal speed. > > > >> In addition, I have devfs mounted on /compat/linux/dev (also per various > > > > I don't have it (I use the default linux_base installation), > > > >> suggestions found), but if I run Linux glxinfo or glxgears or something > > > > though I don't use any glx- programs. > I'm assuming this is what it's supposed to look like, since these are all > the default ports versions, with Nvidia libGL and etc. > ldd glxinfo > glxinfo: > libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x2806a000) > libGL.so.1 => /usr/lib/libGL.so.1 (0x280eb000) That is very strange. This library should be at least at /usr/local/lib directory. Can you show an output of "pkg_info -W /usr/lib/libGL.so.1"? > libc.so.6 => /lib/libc.so.6 (0x28181000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282c4000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x282d3000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x283a6000) > libm.so.6 => /lib/libm.so.6 (0x2848f000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x284b7000) > libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x284c3000) > libnvidia-tls.so.1 => /usr/lib/libnvidia-tls.so.1 (0x28e5b000) > libdl.so.2 => /lib/libdl.so.2 (0x28e5d000) > /lib/ld-linux.so.2 (0x2804b000) You don't use linux with nvidia... Here is what I have: ----- localhost% ldd `which skype_bin` /usr/local/bin/skype_bin: libGL.so.1 => /compat/linux/usr/X11R6/lib/libGL.so.1 (0x28c2d000) libXmu.so.6 => /compat/linux/usr/X11R6/lib/libXmu.so.6 (0x28c89000) libXrandr.so.2 => /compat/linux/usr/X11R6/lib/libXrandr.so.2 (0x28ca0000) libXcursor.so.1 => /compat/linux/usr/X11R6/lib/libXcursor.so.1 (0x28ca4000) libXft.so.2 => /compat/linux/usr/X11R6/lib/libXft.so.2 (0x28cae000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x28cc1000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x28d42000) libSM.so.6 => /compat/linux/usr/X11R6/lib/libSM.so.6 (0x28d6c000) libICE.so.6 => /compat/linux/usr/X11R6/lib/libICE.so.6 (0x28d75000) libdl.so.2 => /lib/libdl.so.2 (0x28d8f000) libXext.so.6 => /compat/linux/usr/X11R6/lib/libXext.so.6 (0x28d93000) libX11.so.6 => /compat/linux/usr/X11R6/lib/libX11.so.6 (0x28da3000) libpthread.so.0 => /lib/libpthread.so.0 (0x28e76000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x28e8c000) libm.so.6 => /lib/libm.so.6 (0x28f45000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x28f6c000) libc.so.6 => /lib/libc.so.6 (0x28f78000) libXxf86vm.so.1 => /compat/linux/usr/X11R6/lib/libXxf86vm.so.1 (0x290bb000) libXdamage.so.1 => /compat/linux/usr/X11R6/lib/libXdamage.so.1 (0x290c1000) libXfixes.so.3 => /compat/linux/usr/X11R6/lib/libXfixes.so.3 (0x290c4000) libdrm.so.2 => /usr/lib/libdrm.so.2 (0x290c9000) libXt.so.6 => /compat/linux/usr/X11R6/lib/libXt.so.6 (0x290d2000) libXrender.so.1 => /compat/linux/usr/X11R6/lib/libXrender.so.1 (0x29127000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x29130000) libz.so.1 => /usr/lib/libz.so.1 (0x2914f000) /lib/ld-linux.so.2 (0x28c0a000) ----- > I moved the previous semi-working /compat/linux attempt (gentoo) out of the > way then reinstalled all of the Linux ports including base, after > following the instructions. All of the files, layouts, and settings appear > normal compared to previous attempts, but the result is the same. Anything > that tries to load libGL crashes immediately after loading it. I have a wild guess. If you don't use nvidia-driver with linux support (i.e. without FreeBSD AGP) please try it. HTH and WBR -- bsam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98294959>