ports/astro/googleearth - only4archs=i386?

Juergen Lock nox at jelal.kn-bremen.de
Fri Aug 29 18:30:44 UTC 2008


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


More information about the freebsd-ports mailing list