From owner-freebsd-questions@FreeBSD.ORG Thu Jul 13 15:07:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 523BF16A4DD for ; Thu, 13 Jul 2006 15:07:11 +0000 (UTC) (envelope-from e.schuele@computer.org) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.200.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 042A143D6E for ; Thu, 13 Jul 2006 15:07:06 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [208.206.151.59] (host59.gtisd.com?[208.206.151.59]) by comcast.net (sccrmhc12) with ESMTP id <2006071315070501200slrpfe>; Thu, 13 Jul 2006 15:07:05 +0000 Message-ID: <44B66198.7020103@computer.org> Date: Thu, 13 Jul 2006 10:07:04 -0500 From: Eric Schuele User-Agent: Thunderbird 1.5.0.4 (X11/20060604) MIME-Version: 1.0 To: Boris Samorodov References: <44B522BC.5090307@computer.org> <68739333@srv.sem.ipt.ru> <44B651D2.20207@computer.org> <59778381@srv.sem.ipt.ru> In-Reply-To: <59778381@srv.sem.ipt.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions , sean-freebsd@farley.org Subject: Re: ELF file OS ABI invalid.... 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: Thu, 13 Jul 2006 15:07:11 -0000 On 07/13/2006 09:52, Boris Samorodov wrote: > On Thu, 13 Jul 2006 08:59:46 -0500 Eric Schuele wrote: >> On 07/13/2006 06:50, Boris Samorodov wrote: >>> (maintainer CCed) >>> >>> On Wed, 12 Jul 2006 11:26:36 -0500 Eric Schuele wrote: >>> >>>> I am trying to get a linux app to use hardware acceleration. I have a >>>> couple of linux apps (googleearth, NWN) that *do presently work* with >>>> hardware acceleration... but this one in particular (linux-ut) *does >>>> not*. >>> Which version of linux-ut you are running? > >> linux-ut-451 = [held] up-to-date with port > >> Though, I don't think that is in the ports tree yet. Sean sent it to >> me directly, after he made the port. > >> I asked him about getting hardware acceleration up and running.... and >> we were not able to figure it out. Though the message below is more >> descriptive now (in the 451 build) than it was when I asked him >> previously. > >>>> It gives me the following error in its log file: >>>> Critical: Failed loading /usr/compat/linux/usr/X11R6/lib/libGL.so.1: >>>> /usr/local/ >>>> lib/libdrm.so.2: ELF file OS ABI invalid >>> It's really strange that only linux-ut doesn't work. > >> I agree. > >>> Eric, are you sure that you don't have any non-standard paths, LD_* or >>> something else at your environment which ends up with searching >>> /usr/local before /compat/linux for linux-ut? > >> No, I'm not exactly. If I modify /usr/local/bin/ut so that it echoes >> LD_LIBRARY_PATH right before it launches the game I get the following: > >> LD_LIBRARY_PATH = :/usr/local/share/linux-ut/System > >> which looked odd. > > Yes. That may be a culprit. > >> So I tried the following two, and neither worked. >> LD_LIBRARY_PATH = >> :/usr/compat/linux:/usr/compat/linux/usr/lib:/usr/local/share/linux-ut/System >> LD_LIBRARY_PATH = >> /usr/compat/linux:/usr/compat/linux/usr/lib:/usr/local/share/linux-ut/System > >> Both end up with exactly the same error message. > > I think that you may try to delete all LD_* stuff and restore the > defaults. I.e. something like: > > LD_LIBRARY_PATH = ${LD_LIBRARY_PATH} in /usr/local/bin/ut the original code relevant to LD_LIBRARY_PATH looks like this: LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$PWD export LD_LIBRARY_PATH echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH" and that provides me: LD_LIBRARY_PATH = :/usr/local/share/linux-ut/System I seem to have no LD_LIBRARY_PATH environment variable by default. A 'setenv' in a shell shows that LD_LIBRARY_PATH is not defined at all. > or > LD_LIBRARY_PATH = : > >> I tried to run /usr/compat/linux/usr/bin/ldd on /usr/compat/.../libGL >> but it gave no output!? Is that correct? > >>>> Is my linux libGL.so.1 trying to use my FreeBSD libdrm.so.2? Surely >>>> that's not what is supposed to happen? >>>> I have: >>>> FreeBSD 6.1-STABLE i386 as of a few days ago. >>>> linux-atk-1.9.1 = up-to-date with port >>>> linux-expat-1.95.8 = up-to-date with port >>>> linux-fontconfig-2.2.3_5 = up-to-date with port >>>> linux-glib2-2.6.6 = up-to-date with port >>>> linux-gtk2-2.6.10 = up-to-date with port >>>> linux-jpeg-6b.34 = up-to-date with port >>>> linux-openmotif-2.2.4_2 = up-to-date with port >>>> linux-pango-1.8.1 = up-to-date with port >>>> linux-png-1.2.8_2 = up-to-date with port >>>> linux-realplayer-10.0.7.785.20060201 = up-to-date with port >>>> linux-sdl-1.2.10_1 = up-to-date with port >>>> linux-tiff-3.7.1 = up-to-date with port >>>> linux-xorg-libs-6.8.2_5 = up-to-date with port >>>> linux_base-fc-4_6 = up-to-date with port >>>> linux_dri-6.5 = up-to-date with port >>>> linuxdoc-1.1_1 = up-to-date with port >>>> linuxpluginwrapper-20051113_4 = up-to-date with port >>>> What else can I provide that might be of use? Any ideas? > > > WBR -- Regards, Eric