Shared object "libffi.so.6" not found

Tijl Coosemans tijl at FreeBSD.org
Mon Jul 20 09:08:35 UTC 2015


On Sun, 19 Jul 2015 17:18:08 +0100 Mike Clarke <mike at milibyte.co.uk> wrote:
> While booting 10.1-RELEASE I get the following message on the console:
> 
> Shared object "libffi.so.6" not found, required by "libp11-kit.so.0"
> 
> The message appears early in the boot process while network routing is being 
> set up.
> 
> A few checks show that libffi.so.6 does exist:
> 
> curlew:/home/mike% locate libp11-kit.so.0
> /usr/local/lib/libp11-kit.so.0
> /usr/local/lib/libp11-kit.so.0.1.0
> 
> curlew:/home/mike% ldd /usr/local/lib/libp11-kit.so.0
> /usr/local/lib/libp11-kit.so.0:
>         libffi.so.6 => /usr/local/lib/libffi.so.6 (0x801660000)
>         libthr.so.3 => /lib/libthr.so.3 (0x801867000)
>         libc.so.7 => /lib/libc.so.7 (0x80081f000)
> 
> curlew:/home/mike% ls -l /usr/local/lib/libffi.so.6*
> lrwxr-xr-x  1 root  wheel     15  8 Jan  2015 /usr/local/lib/libffi.so.6@ -> 
> libffi.so.6.0.4
> -rwxr-xr-x  1 root  wheel  27960  8 Jan  2015 /usr/local/lib/libffi.so.6.0.4*
> 
> I'm puzzled why I see the 'libffi.so.6 not found' message at a stage in the 
> boot process after local filesystems have been mounted.

It's probably caused by a script in /usr/local/etc/rc.d that runs before
/etc/rc.d/ldconfig instead of after.  You can fix this order by adding
DAEMON to the REQUIRE list at the beginning of that script.


More information about the freebsd-questions mailing list