Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 01:22:03 -0600
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Doug Hardie <bc979@lafn.org>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: Library Problem
Message-ID:  <CACdU%2Bf_dyGordGi3z-ULZ5u3K8zNwOHjN3tJ4GTBZhxD3bKPcQ@mail.gmail.com>
In-Reply-To: <D3773280-56F8-47B9-BC26-3921A0AF5FFB@lafn.org>
References:  <4AA267EA-8FC8-42E8-A885-F22F4DC524D0@lafn.org> <997CEAC4-4F57-4C33-BDCE-EE21AD607DC0@fisglobal.com> <D3773280-56F8-47B9-BC26-3921A0AF5FFB@lafn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 29, 2012 at 12:46 AM, Doug Hardie <bc979@lafn.org> 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<F_OK>)
>>> 2259 intro    NAMI  "/lib/libsermons.so"
>>> 2259 intro    RET   access -1 errno 2 No such file or directory
>>> 2259 intro    CALL  access(0x28066000,0<F_OK>)
>>> 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<F_OK>)
>>> 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<F_OK>)
>>> 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<F_OK>)
>>> 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<F_OK>)
>>> 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<F_OK>)
>>> 6746 intro    NAMI  "/lib/libsermons.so"
>>> 6746 intro    RET   access -1 errno 2 No such file or directory
>>> 6746 intro    CALL  access(0x28066000,0<F_OK>)
>>> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf_dyGordGi3z-ULZ5u3K8zNwOHjN3tJ4GTBZhxD3bKPcQ>