From owner-freebsd-stable@FreeBSD.ORG Thu Nov 29 07:22:05 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 59BF8CB7 for ; Thu, 29 Nov 2012 07:22:05 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id DB05A8FC14 for ; Thu, 29 Nov 2012 07:22:04 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c13so9932996eek.13 for ; Wed, 28 Nov 2012 23:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=baOuFZX9zbyPzCypOfzjzHq03pc6T8NQQtEnTYSyD5g=; b=VShzL7pci6OJwBjQVRHPoY20XJcFVl1OG5xfTwSyDQA8WZO+ZRWHhM3wepDcz81VsI hNHocRs6117gMTCgXpOKgDuKd1lCZ+4WRp6IWc3QEENFjQ6ri4nkV+LFoFNNk4q4kwDT O0r28P92DJprOSue2+BR+0jfq1ZUWQUhN9ZDLMiLLFhw1NXlvUdCLo2KFcxsAR19rrAU qxmxsOz2ChMpc8UK1xyxy+1EivOCeNCvDOdaUfQ3h5m+cXaBb4Q7oPqLL/WU0edv4lO4 ZdhOjdIUnEz4kQkWM8/GnP2d1k2b68iKYMS3zghLxwWJxK3hhTIPJ0/OwKxXhTA3MZ7V 3bkA== MIME-Version: 1.0 Received: by 10.14.2.196 with SMTP id 44mr50462308eef.25.1354173723846; Wed, 28 Nov 2012 23:22:03 -0800 (PST) Received: by 10.14.188.136 with HTTP; Wed, 28 Nov 2012 23:22:03 -0800 (PST) In-Reply-To: References: <4AA267EA-8FC8-42E8-A885-F22F4DC524D0@lafn.org> <997CEAC4-4F57-4C33-BDCE-EE21AD607DC0@fisglobal.com> Date: Thu, 29 Nov 2012 01:22:03 -0600 Message-ID: Subject: Re: Library Problem From: Scot Hetzel To: Doug Hardie Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD-STABLE Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list 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 07:22:05 -0000 On Thu, Nov 29, 2012 at 12:46 AM, Doug Hardie wrote: > > On 28 November 2012, at 20:01, Devin Teske wrote: > >> >> 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 o= f them worked just fine. The last one is causing a problem. It will not l= ook in /usr/local/lib/ for shared libraries. I did the standard install, m= oved in some source, compiled it and tried to run it. The library is there= . On the working systems ktrace shows: >>> >>> 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 >>> >>> >>> On the failing system ktrace shows: >>> >>> 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"" >>> >>> >>> It never attempts to check /usr/local/lib. I can't find any configurat= ion item that affects that. How can this be fixed? >>> >> >> 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 > > > /etc/defaults/rc.conf has: > > ldconfig_paths=3D"/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pk= g" > > > /etc/rc.conf has nothing for ldconfig_paths. > > What does ldconfig -r show? It should show which paths it is configured to scan. Is LD_LIBRARY_PATH set? Scot --=20 DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.