From owner-freebsd-questions@FreeBSD.ORG Mon Jun 23 08:31:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAA7A1065679 for ; Mon, 23 Jun 2008 08:31:04 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id A12728FC22 for ; Mon, 23 Jun 2008 08:31:04 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1KAhS2-0009hy-Pg; Mon, 23 Jun 2008 12:31:02 +0400 To: Gonzalo Nemmi References: <200806221438.15555.gnemmi@gmail.com> From: Boris Samorodov Date: Mon, 23 Jun 2008 12:30:51 +0400 In-Reply-To: <200806221438.15555.gnemmi@gmail.com> (Gonzalo Nemmi's message of "Sun\, 22 Jun 2008 14\:38\:15 -0300") Message-ID: <16488116@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: linux-quake4 (short and sweet, again) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2008 08:31:05 -0000 On Sun, 22 Jun 2008 14:38:15 -0300 Gonzalo Nemmi wrote: > Has anyone been able to get linux-quake4 working on FBSD7.0-REL? > Useful info: > [gonzalo@inferna ~]% uname -rsim > FreeBSD 7.0-RELEASE i386 GENERIC > [gonzalo@inferna ~]% sysctl -a | grep linux > hw.snd.compat_linux_mmap: 0 > compat.linux.oss_version: 198144 > compat.linux.osrelease: 2.6.16 > compat.linux.osname: Linux > [gonzalo@inferna ~]% pkg_info -xE linux > linux-doom3-1.1.1286,0 > linux-expat-1.95.8 > linux-flashplugin-9.0r124 > linux-fontconfig-2.2.3_7 > linux-openssl-0.9.7f > linux-quake4-1.4.2,1 > linux-sdl-1.2.10,1 > linux-xorg-libs-6.8.2_5 > linux_base-fc-4_13 > [gonzalo@inferna ~]% > The problem: > [gonzalo@inferna ~]% linux-quake4 > /usr/local/lib/quake4/quake4.x86: error while loading shared > libraries: /usr/local/lib/libX11.so.6: ELF file OS ABI invalid ^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] > [gonzalo@inferna ~]% linux-quake4smp > /usr/local/lib/quake4/quake4smp.x86: error while loading shared libraries: > libSDL-1.2.id.so.0: cannot open shared object file: No such file or directory > [gonzalo@inferna ~]% ldd /usr/local/lib/quake4/quake4smp.x86 > /usr/local/lib/quake4/quake4smp.x86: > libpthread.so.0 => /lib/libpthread.so.0 (0x284da000) > libdl.so.2 => /lib/libdl.so.2 (0x284ec000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x284f0000) ^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x285c3000) > libSDL-1.2.id.so.0 => not found > libz.so.1 => /usr/lib/libz.so.1 (0x285d2000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x285e5000) > libm.so.6 => /lib/libm.so.6 (0x286c2000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x286e8000) > libc.so.6 => /lib/libc.so.6 (0x286f2000) > /lib/ld-linux.so.2 (0x284bc000) > [gonzalo@inferna ~]% > ldd seems to indicate the port is hosed: libSDL-1.2.id.so.0 => not found > For the record: linux-doom3-1.1.1286,0 runs like silk in here .. so .. it > doesn't seem to be an emulation problem. Yet still: linux-quake4 > /usr/local/lib/quake4/quake4.x86: error while loading shared > libraries: /usr/local/lib/libX11.so.6: ELF file OS ABI invalid, dazzels > me ... > Any hints, pointers, info, will be greatly appreciated. I want to make sure Im > not doing something wrong before e-mailing the maintainer. Your program stops at [1] which is a native FreeBSD library while ldd finds [2] which is a linux one. I've seen that only when there is something non-default is defined (ex. LD_LIBRARY_PATH) which redefines a default FreeBSD behaviour and results in finding a library at /usr/local/lib before /compat/linux. Please, check up your environment and/or script. Can't comment no libSDL-1.2.id.so.0 though. > If the maintainer (Ed Schouten according to the Makefile) is on the list, > please feel free to contact me to work and test this =) > Thanks :) WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve