From owner-freebsd-stable@FreeBSD.ORG Thu Nov 29 04:01:49 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BAF01D14 for ; Thu, 29 Nov 2012 04:01:49 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC6C8FC0C for ; Thu, 29 Nov 2012 04:01:49 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id qAT41fkj020798 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 28 Nov 2012 22:01:42 -0600 Received: from [10.0.0.100] (10.14.152.61) by smtp.fisglobal.com (10.132.206.16) with Microsoft SMTP Server (TLS) id 14.2.309.2; Wed, 28 Nov 2012 22:01:40 -0600 Subject: Re: Library Problem MIME-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="us-ascii" From: Devin Teske In-Reply-To: <4AA267EA-8FC8-42E8-A885-F22F4DC524D0@lafn.org> Date: Wed, 28 Nov 2012 20:01:39 -0800 Content-Transfer-Encoding: quoted-printable Message-ID: <997CEAC4-4F57-4C33-BDCE-EE21AD607DC0@fisglobal.com> References: <4AA267EA-8FC8-42E8-A885-F22F4DC524D0@lafn.org> To: Doug Hardie X-Mailer: Apple Mail (2.1283) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8185, 1.0.431, 0.0.0000 definitions=2012-11-29_05:2012-11-28,2012-11-29,1970-01-01 signatures=0 Cc: FreeBSD-STABLE Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 04:01:50 -0000 On Nov 28, 2012, at 7:36 PM, Doug Hardie wrote: > I have installed 4 systems from the same FreeBSD 9.1-RC3 disk. Three of = them worked just fine. The last one is causing a problem. It will not loo= k in /usr/local/lib/ for shared libraries. I did the standard install, mov= ed in some source, compiled it and tried to run it. The library is there. = On the working systems ktrace shows: >=20 > 2259 intro CALL access(0x28066000,0) > 2259 intro NAMI "/lib/libsermons.so" > 2259 intro RET access -1 errno 2 No such file or directory > 2259 intro CALL access(0x28066000,0) > 2259 intro NAMI "/usr/lib/libsermons.so" > 2259 intro RET access -1 errno 2 No such file or directory > 2259 intro CALL access(0x28066000,0) > 2259 intro NAMI "/usr/lib/compat/libsermons.so" > 2259 intro RET access -1 errno 2 No such file or directory > 2259 intro CALL access(0x28066000,0) > 2259 intro NAMI "/usr/local/lib/libsermons.so" > 2259 intro RET access 0 >=20 >=20 > On the failing system ktrace shows: >=20 > 6746 intro NAMI "/lib/libsermons.so" > 6746 intro RET access -1 errno 2 No such file or directory > 6746 intro CALL access(0x28066000,0) > 6746 intro NAMI "/usr/lib/libsermons.so" > 6746 intro RET access -1 errno 2 No such file or directory > 6746 intro CALL access(0x28066000,0) > 6746 intro NAMI "/usr/lib/compat/libsermons.so" > 6746 intro RET access -1 errno 2 No such file or directory > 6746 intro CALL access(0x28066000,0) > 6746 intro NAMI "/lib/libsermons.so" > 6746 intro RET access -1 errno 2 No such file or directory > 6746 intro CALL access(0x28066000,0) > 6746 intro NAMI "/usr/lib/libsermons.so" > 6746 intro RET access -1 errno 2 No such file or directory > 6746 intro CALL write(0x2,0x28060080,0x3c) > 6746 intro GIO fd 2 wrote 60 bytes > "Shared object "libsermons.so" not found, required by "intro"" >=20 >=20 > It never attempts to check /usr/local/lib. I can't find any configuratio= n item that affects that. How can this be fixed? >=20 What's the value of "ldconfig_paths" in rc.conf(5)? That includes: /etc/rc.conf /etc/rc.conf.local (if it exists) /etc/defaults/rc.conf Here on my 9.0-R system it has the following in /etc/defaults/rc.conf: /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.