From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 21 20:09:07 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87B4D16A41B for ; Sun, 21 Oct 2007 20:09:07 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3AE6213C4BB for ; Sun, 21 Oct 2007 20:09:07 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IjNzh-0004Hv-M9 for freebsd-emulation@freebsd.org; Sat, 20 Oct 2007 23:44:37 +0000 Received: from c-71-193-243-110.hsd1.or.comcast.net ([71.193.243.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Oct 2007 23:44:37 +0000 Received: from zephiris by c-71-193-243-110.hsd1.or.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Oct 2007 23:44:37 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Zephiris Date: Sat, 20 Oct 2007 16:44:12 -0700 Lines: 140 Message-ID: References: <66147675@ipt.ru> <98294959@ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-193-243-110.hsd1.or.comcast.net User-Agent: KNode/0.10.5 Sender: news Subject: Re: Nvidia LibGL and RELENG_7 linuxulator X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2007 20:09:07 -0000 Boris Samorodov wrote: > Re: Nvidia LibGL and RELENG_7 linuxulator > From: > Boris Samorodov > Date: > Saturday 20 October 2007 09:37:52 am > To: > Zephiris > Groups: > gmane.os.freebsd.devel.emulation > References: 1 2 3 > 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? I install in order emulators/linux_base-fc6, x11/linux-xorg-libs, x11/nvidia-driver (with ACPI and LINUX flags), x11-toolkits/linux-gtk2, then x11-toolkits/linux-gtk. It's enough to test a number of things. > >> 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"? > That's for a linux glxinfo. >> 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: I thought my point was trying to get accelerated OpenGL with linux binaries as well? > ----- > 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. I already am, if the linux flag wasn't set, I imagine it wouldn't be trying to load the Nvidia-specific libraries either. And it wouldn't print out Nvidia diagnostic messages on Gentoo, where it gets further. I forgot, but I wanted to point out a stack trace from the 'pstack' command on the linux glxinfo when run with everything installed via ports. pstack -e glxinfo glxinfo.core pstack: unable to open executable '(object name unreadable)': No such file or directory (core file "glxinfo.core"): glxinfo ----------------- thread -1 (running) ----------------- 0x281a3d42 __ctype_b_loc (f5e616f2, 282da5d5, 282da5c7, 0, 0, 1) + 32 0x282e79b7 _X11TransConnectDisplay (804a4a8, bfbfe9b0, bfbfe9ac, bfbfe9a8, bfbfe9a4, bfbfe99c) + ed 0x282f8963 XOpenDisplay (804a4a8, 1, 0, 804b508, bfbfe9e8, 80488aa) + eb 0x8049adc main (1, bfbfea70, bfbfea78, 280583e2, 0, 284b6c80) + ec 0x28196dec __libc_start_main (80499f0, 1, bfbfea70, 8048880, 8049bcc, 28058d00) + dc