Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2008 20:10:10 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Steve Franks <stevefranks@ieee.org>
Cc:        ports@freebsd.org
Subject:   Re: ports/astro/googleearth - only4archs=i386?
Message-ID:  <20080829181010.GA11346@saturn.kn-bremen.de>
In-Reply-To: <539c60b90808281636p5156b135xea6380a555529143@mail.gmail.com>
References:  <539c60b90808281636p5156b135xea6380a555529143@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 28, 2008 at 04:36:42PM -0700, Steve Franks wrote:
> I *think* (and I'm no guru) that googleearth needs the
> ONLYFORARCHS=i386 flag set.  I can't for the life of me get it to run
> on amd64 with either linux_base-fc4 or base-f7 - it installs, but
> complains about missing libGL.so.1:
> 
>     ./googleearth-bin: error while loading shared libraries:
> libGL.so.1: cannot open shared object file: No such file or directory
> 
Huh?  Can you ktrace?  (use ktrace -di, and then linux_kdump and look
for where/how it tries to load libGL.so.1...)  Also, on which FreeBSD
version and graphics hardware is this?

> If I explicitly point (LDPRELOAD and/or ldconfig) it to
> /usr/compat/linux/usr/X11R6/lib/libGL.so.1, I get the following:
> 
>     ./googleearth-bin: error while loading shared libraries:
> libGL.so.1: wrong ELF class: ELFCLASS64

 Hmm.  /usr/compat/linux/usr/X11R6/lib/libGL.so.1 here is a symlink to
libGL.so.1.2 (in the same dir), which is

% ls -l /usr/compat/linux/usr/X11R6/lib/libGL.so.1.2
-r-xr-xr-x  1 root  wheel  1650754 Apr 18 10:37 /usr/compat/linux/usr/X11R6/lib/libGL.so.1.2
% file /usr/compat/linux/usr/X11R6/lib/libGL.so.1.2
/usr/compat/linux/usr/X11R6/lib/libGL.so.1.2: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
% md5 /usr/compat/linux/usr/X11R6/lib/libGL.so.1.2
MD5 (/usr/compat/linux/usr/X11R6/lib/libGL.so.1.2) = a5a8ddaf8a9d49e5dc80685a95d9b52d
% pkg_info -W /compat/linux/usr/X11R6/lib/libGL.so.1.2
/compat/linux/usr/X11R6/lib/libGL.so.1 was installed by package linux_dri-7.0

 (/compat is a symlink to /usr/compat.)

 So wherever this ELFCLASS64 is coming from, its unlikely to be from this
file. :)  (the googleearth port installs linux_dri as a dependency, unless
when WITH_NVIDIA_GL is defined, but that, i.e. x11/nvidia-driver, doesnt
exist for amd64 so I doubt you'd be using that...)

 HTH,
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080829181010.GA11346>