From owner-freebsd-questions@FreeBSD.ORG Mon Dec 20 19:16:26 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 D495F16A4CE for ; Mon, 20 Dec 2004 19:16:26 +0000 (GMT) Received: from orb.ihr.gla.ac.uk (orb.ihr.gla.ac.uk [194.80.44.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F06043D1F for ; Mon, 20 Dec 2004 19:16:26 +0000 (GMT) (envelope-from steve@ntropy.net) Received: from orb.ihr.gla.ac.uk (localhost [127.0.0.1]) iBKJGoUp002174 for ; Mon, 20 Dec 2004 19:16:50 GMT Received: (from www@localhost) by orb.ihr.gla.ac.uk (8.12.10+Sun/8.12.10/Submit) id iBKJGojJ002173 for freebsd-questions@freebsd.org; Mon, 20 Dec 2004 19:16:50 GMT X-Authentication-Warning: orb.ihr.gla.ac.uk: www set sender to steve@ntropy.net using -f Received: from cpc2-broo2-4-0-cust36.renf.cable.ntl.com (cpc2-broo2-4-0-cust36.renf.cable.ntl.com [81.101.237.36]) by www.ihr.gla.ac.uk (IMP) with HTTP for ; Mon, 20 Dec 2004 19:16:49 +0000 Message-ID: <1103570209.41c72521dfa44@www.ihr.gla.ac.uk> Date: Mon, 20 Dec 2004 19:16:49 +0000 From: Stephen Maver To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 81.101.237.36 Subject: 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 19:16:27 -0000 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