problems with_dynamicroot =yes/noshared=no ?
Ruslan Ermilov
ru at freebsd.org
Sun Sep 7 13:03:40 PDT 2003
On Sun, Sep 07, 2003 at 09:32:51PM +0200, masta at yazzy.org wrote:
> Hello friends,
>
> I'm seeing a weird issue with my recent build, here goes:
>
> shiba# ls -ld /lib
> drwxr-xr-x 2 root wheel 1024 Sep 7 01:53 /lib
> shiba# ls -lh /lib/libc.so.5
> -r--r--r-- 1 root wheel 862K Sep 7 01:50 /lib/libc.so.5
> shiba# ls -lh /usr/lib/libc.so.5
> -r--r--r-- 1 root wheel 875K Jul 6 19:53 /usr/lib/libc.so.5
> shiba# ldd /sbin/init
> /sbin/init:
> libutil.so.3 => /usr/lib/libutil.so.3 (0x28076000)
> libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x28082000)
> libc.so.5 => /usr/lib/libc.so.5 (0x2809b000)
>
> Nothing in my /bin or /sbin is linked to anything in /lib. =(
> My environment is a jail where I use NOSHARED=NO, and WITH_DYNAMICROOT.
> At first I though my init was linking to stuff in /usr/lib for
> compatibility, but libc is not a symbolic link, so this is not a
> compatability-link issue. My working theory thus far is that maybe
> NOSHARED=NO might be interfearing with WITH_DYNAMICROOT, but I'm not sure
> how to find out if that is true/false. Anybody know what is going on?
>
Most probably, you forgot to upgrade your /etc/rc.d/ldconfig.
Check with ``ldconfig -r'', the ``search directories: '' should
start with ``/lib:/usr/lib''.
Also, the latest bsd.lib.mk,v 1.154 takes care of removing
stale /usr/lib/libfoo.so.X libraries.
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software Ltd,
ru at FreeBSD.org FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030907/04ff4bcc/attachment.bin
More information about the freebsd-current
mailing list