googleearth & skype trouble

Boris Samorodov bsam at ipt.ru
Sat Apr 19 19:22:19 UTC 2008


On Sat, 19 Apr 2008 21:07:43 +0200 Tijl Coosemans wrote:

> Under linux sh you do get linux programs when they exist. Running ls or
> any shell script (like Maple/Matlab/... install and startup scripts)
> under linux /bin/sh currently does not work with fc4 and
> osrelease=2.4.2.

> This is not really a bug of linux compat, but is because of the
> following:

> 1. opening /path/to/somefile under linux compat first tries
>    /compat/linux/path/to/somefile then /path/to/somefile.
> 2. linux binaries have two search paths for librt.so.1:
>    /lib and /usr/lib.
> 3. fc4 has a librt.so.1 in /lib but it is rejected under 2.4.2
>    emulation.
> 4. fc4 does not have a librt.so.1 under /usr/lib so when the runtime
>    linker tries this search path it ends up opening FreeBSD
>    /usr/lib/librt.so.1 (because of point 1) and fails.

> By adding a softlink in /compat/linux/usr/lib to the librt.so.1 in
> /compat/linux/lib, the linker doesn't open the FreeBSD librt.so.1
> anymore. Instead, under 2.4.2, it rejects this lib and then tries an
> internal search path /lib/obsolete/linuxthreads where it finds the
> correct version. Under 2.6.16 the softlink doesn't change anything,
> so imho this is something the fc4 port/package should deal with.

Great, the fact that it use a library from /lib/obsolete/linuxthreads
explains all. I'll take care of it.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-emulation mailing list