From owner-freebsd-questions@FreeBSD.ORG Mon Dec 20 20:31:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAB6B16A4CF for ; Mon, 20 Dec 2004 20:31:05 +0000 (GMT) Received: from smtp1.tsgincorporated.com (ns1.tsgincorporated.com [67.66.242.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3764143D5C for ; Mon, 20 Dec 2004 20:31:01 +0000 (GMT) (envelope-from micheal@tsgincorporated.com) Received: from localhost (localhost.tsgincorporated.com [127.0.0.1]) by smtp1.tsgincorporated.com (Postfix) with ESMTP id E15223A73EB; Mon, 20 Dec 2004 14:31:00 -0600 (CST) Received: from smtp1.tsgincorporated.com ([127.0.0.1])port 10024) with ESMTP id 80732-06; Mon, 20 Dec 2004 14:30:56 -0600 (CST) Received: from smtp3.tsgincorporated.com (support.tsgincorporated.com [67.66.242.9]) by smtp1.tsgincorporated.com (Postfix) with ESMTP id 112F03A73DF; Mon, 20 Dec 2004 14:30:56 -0600 (CST) Received: from micheal (micheal.tsgincorporated.com [67.66.242.77]) by smtp3.tsgincorporated.com (Postfix) with SMTP id 0E06262899; Mon, 20 Dec 2004 14:30:56 -0600 (CST) Message-ID: <04ea01c4e6d2$cf129a40$4df24243@tsgincorporated.com> From: "Micheal Patterson" To: "Stephen Maver" , References: <1103570209.41c72521dfa44@www.ihr.gla.ac.uk> Date: Mon, 20 Dec 2004 14:26:16 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: amavisd-new at tsgincorporated.com Subject: Re: Linux libs missing dependancies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 20:31:05 -0000 ----- Original Message ----- From: "Stephen Maver" To: Sent: Monday, December 20, 2004 1:16 PM Subject: Linux libs missing dependancies > Dear List, > > I've installed the linux steam client the other day, > > /usr/ports/games/linux-steam > > This theoretically allows you to download and run steam based games, > such as Halflife and Counter Strike Source. > > Related ports installed: > linux-steam-1.0 Half Life dedicated server running on steam > linux_base-7.1_7 The base set of packages needed in Linux mode > > # uname -a > FreeBSD lupus.ntropy.net 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #1: > Sun Dec 5 16:11:09 GMT 2004 ... > > # kldstat > Id Refs Address Size Name > 1 10 0xc0400000 39dcf8 kernel > 2 14 0xc079e000 537f0 acpi.ko > 3 1 0xc15e1000 6000 linprocfs.ko > 4 1 0xc15ef000 17000 linux.ko > > I chanced it and used the linux steam client to download the Counter > Strike Source files, with no obvious problems. > > When I try to run the dedicated server it immediately crashes, > probably as it should as it is linux specific I'd guess. > > $ ./srcds_run -console -game cstrike +map de_dust +maxplayers 16 > -steamuser -steampass > ------ > Auto detecting CPU > Using default binary. > Auto-restarting the server on crash > ./srcds_i486: error while loading shared libraries: > /usr/compat/linux/lib/libm.so.6: ELF file OS ABI invalid > Mon Dec 20 17:53:37 GMT 2004: Server restart in 10 seconds > ---- > > # ldd ./srcds_i486 > ./srcds_i486: > ./srcds_i486: error while loading shared libraries: > /lib/libm.so.6: ELF file OS ABI invalid > ./srcds_i486: exit status 127 > > The binary 'srcds_i486' relies on several other files that > have missing dependancies. > > # ldd bin/dedicated_i486.so > bin/dedicated_i486.so: > libm.so.6 => not found (0x0) > libdl.so.2 => not found (0x0) > tier0_i486.so (0x0) > vstdlib_i486.so (0x0) > libc.so.6 => not found (0x0) > > All of these libs exist in /usr/compat/linux/lib, and, with > the linux emulation running, are seen as being in /lib/* if I > understand it all correctly. > > Also, last night I was trying to use ldd, and suicidal symbolic > linking, to show the *so files where their libs were. At one > point it failed with an error about being unable to use the > libraries as they were not freebsd native. > > Sorry for the lack of the specific error I am unable to > recreate it today. > > So, the questions are: > > 1) What would cause the error "ELF file OS ABI invalid" on > `ldd ./srcds_i486` above ? > > 2) How would I go about teaching the linux *.so files where > their linux libraries are located ? > > Pointers to docs, or FMs I should have read, are welcome. I > had a look through the manual and googled about on the error, > but didnt turn up anything that helped. > > Thanks, > > Ste > This is my post to the hlds_linux list on how to get Source running on FreeBSD. Hopefully it will get you where you need to go. -- Micheal Patterson Senior Communications Systems Engineer 405-917-0600 ----------------------------------------------------- Micheal Patterson hlds_linux@list.valvesoftware.com Fri Aug 20 05:08:02 2004 Previous message: [hlds_linux] CS:S and FreeBSD 4.10-STABLE Next message: [hlds_linux] CS:S and FreeBSD 4.10-STABLE Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Ok folks.. Here's what I did to get Source running on FreeBSD 4.10 with an Intel cpu. AMD should be no different system wise. 1. Install source :) 2. Install the Linux_base-8 port. Once this is done, run: shell$> ldconfig -m /compat/linux/lib ** This merges the linux compat lib paths into your existing environment and is what allows source to locate lib.so.6 3. Then recompile your kernel with the following options: ## SSE/MMX2 instructions support options CPU_ENABLE_SSE ** This allows source to determine your CPU speed. 3. Reboot Log back into the account you installed steam to, and execute: ./srcds_run -game cstrike +ip xx.xx.xx.xx -port 27015 +maxplayers 20 +map de_dust This procedure worked for me with a clean freebsd 4.10 install and no linux base. If you have linux base 7 installed, you'll need to run a pkg_delete linux_base-7.1_7 before base 8 will install.