From owner-freebsd-current@FreeBSD.ORG Sat Mar 14 16:58:07 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F37810656FD for ; Sat, 14 Mar 2009 16:58:07 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id ADC438FC12 for ; Sat, 14 Mar 2009 16:58:06 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id n2EGw4Li052712; Sat, 14 Mar 2009 11:58:04 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Sat, 14 Mar 2009 11:58:04 -0500 (CDT) From: "Sean C. Farley" To: Michal Varga In-Reply-To: <3f1fd1ea0903140702n27db3182tee7d68a352a8538b@mail.gmail.com> Message-ID: References: <3f1fd1ea0903140635p74a47a7n290a70e1570b6f08@mail.gmail.com> <3f1fd1ea0903140702n27db3182tee7d68a352a8538b@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-2.8 required=3.0 tests=AWL,BAYES_00,NO_RELAYS, WHOIS_DMNBYPROXY autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: Alexander Best , freebsd-current@FreeBSD.org Subject: Re: linux 3d applications keep crashing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2009 16:58:11 -0000 On Sat, 14 Mar 2009, Michal Varga wrote: > On Sat, Mar 14, 2009 at 2:55 PM, Alexander Best > wrote: >> thanks for the hint. setting compat.linux.osrelease=2.4.2 works. :-) >> settings compat.linux.osrelease=2.4.20 let's quake4 crash with the >> very same error message when using compat.linux.osrelease=2.6.16. >> > Ah, I missed the .20 part. I think "2.4.2" and "2.6.16" are the magic > words to flip 2.4/2.6 linuxulators, as far as I know there should be > no other sub-versions doing anything specific (yes, too lazy to check > sources). I'd assume that setting 2.4.20 just enables the default > path, that is 2.6 on -CURRENT. Setting 2.4.20 and greater flips a switch in the linker to use NPTL as opposed to LinuxThreads (old threading library). Here are some good links about the different versions and how they can be changed for execution of a program: http://my.opera.com/onyxluo/blog/2008/10/15/metalink-note-433292-1-ld-assume-kernel-environment-variable http://developer.novell.com/wiki/index.php/LD_ASSUME_KERNEL http://people.redhat.com/drepper/assumekernel.html A discussion for Ubuntu on running old Loki games: http://ubuntuforums.org/showthread.php?t=21087 Gentoo use to have a page on Loki games: http://gentoo-wiki.com/HOWTO_Running_Old_Loki_Games Information on running Alpha Centauri on a Linux v2.6: http://lordhedgehog.hedgie.com/smac/ Information on running different versions of Unreal Tournament: http://members.shaw.ca/dan.mckay/LinGam.html Personally, I have tried to get games/linux-ut to run using linux-f8 and x11/nvidia-driver on RELENG_7 using various means. These means have included attempts such as setting LD_ASSUME_KERNEL=2.4.2 before running it and/or using a separate directory of linux-fc4 libraries. I may have missed a combination. I think if running it under linux-fc4 with compat.linux.osrelease=2.4.2 works it would be nice to be able to run multiple Linux bases at different compatibility versions. Obviously, this is anything but trivial. BTW, games/sauerbraten is a good OpenGL-based game that is compiled native for FreeBSD. It works well with the nvidia driver. Sean -- scf@FreeBSD.org