linux compat: path problem? /compat/linux/bin/sh doesn't work!

Reid Linnemann lreid at cs.okstate.edu
Mon Feb 11 18:28:37 UTC 2008


Written by Steve Franks on 02/11/08 12:11>>
> I think my problem lies elsewhere:  linux & abi started, but no
> difference!  I have the linux .so files right in compat/linux/usr/lib,
> but it always finds the freeBSD versions first!
> 
> Steve
> 
> sh-3.00$ kldstat
> Id Refs Address    Size     Name
>  1   19 0xc0400000 926ed4   kernel
>  2    1 0xc0d27000 5a74     snd_t4dwave.ko
>  3    2 0xc0d2d000 4a5ac    sound.ko
>  4    1 0xc0d78000 22c98    radeon.ko
>  5    2 0xc0d9b000 10e98    drm.ko
>  6    1 0xc0dac000 6a1c4    acpi.ko
>  7    1 0xc304a000 7000     linprocfs.ko
>  8    1 0xc3051000 22000    linux.ko
> sh-3.00$ sudo /etc/rc.d/abi start
> Additional ABI support: linux.
> sh-3.00$ ls
> ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF
> file OS ABI invalid

It is not finding the FreeBSD versions of libraries. There is no
/usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading
library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if
it's branded.


More information about the freebsd-questions mailing list