From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 7 20:23:09 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BEEF1065680 for ; Fri, 7 Nov 2008 20:23:09 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 259518FC1B for ; Fri, 7 Nov 2008 20:23:09 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1KyXrH-0009ms-14; Fri, 07 Nov 2008 23:23:07 +0300 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KyXrG-0000L6-Qo; Fri, 07 Nov 2008 23:23:06 +0300 To: Andriy Gapon References: <49147E9B.4050109@icyb.net.ua> From: Boris Samorodov Date: Fri, 07 Nov 2008 23:23:06 +0300 In-Reply-To: <49147E9B.4050109@icyb.net.ua> (Andriy Gapon's message of "Fri\, 07 Nov 2008 19\:44\:59 +0200") Message-ID: <12918453@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org Subject: Re: /etc/rc.d/abi: can't understand linux_start X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 20:23:09 -0000 Andriy Gapon writes: > FreeBSD 7.1-PRERELEASE r184741 amd64 > Fresh install. > > > I see the following in /etc/rc.d/abi: > > linux_start() > { > local _tmpdir > > echo -n ' linux' > load_kld -e 'linux(aout|elf)' linux > if [ -x /compat/linux/sbin/ldconfigDisabled ]; then > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > So we run linux ldconfig and create linux ld.so.cache only if there is > executable file ldconfigDisabled? > I have linux_base-f7-7 installed and there is no such file and skype > can't find required shared libs. If I manually run ldconfig, then skype > is happy. Here is some info (look at rev. 1.7): http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/abi > _tmpdir=`mktemp -d -t linux-ldconfig` > /compat/linux/sbin/ldconfig -C ${_tmpdir}/ld.so.cache > if ! cmp -s ${_tmpdir}/ld.so.cache > /compat/linux/etc/ld.so.cache; then > cat ${_tmpdir}/ld.so.cache > > /compat/linux/etc/ld.so.cache > fi > rm -rf ${_tmpdir} > fi > } WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve