Date: Sat, 19 Apr 2008 23:22:18 +0400 From: Boris Samorodov <bsam@ipt.ru> To: Tijl Coosemans <tijl@ulyssis.org> Cc: freebsd-emulation@freebsd.org Subject: Re: googleearth & skype trouble Message-ID: <49491077@bb.ipt.ru> In-Reply-To: <200804192107.44258.tijl@ulyssis.org> (Tijl Coosemans's message of "Sat\, 19 Apr 2008 21\:07\:43 %2B0200") References: <480921B2.6030004@inode.at> <200804191746.12611.tijl@ulyssis.org> <15571435@bb.ipt.ru> <200804192107.44258.tijl@ulyssis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49491077>