Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
On Mon, 11 Feb 2008 19:11:32 +0100 (CET) Wojciech Puchar wrote: > > serafina# dmesg -a | grep -A1 ABI > > Additional ABI support: > > linux > > > > serafina# /etc/rc.d/abi restart > > Additional ABI support: linux. > > > magic starts here. sorry. :-) > > serafina# /compat/linux/bin/sh > > sh-3.00# ls > > ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF > > file OS ABI invalid I think the result is expected. By running /compat/linux/bin/sh you don't change much: - # /compat/linux/bin/sh sh-3.00# file `which ls` /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700055), dynamically linked (uses shared libs), FreeBSD-style, stripped sh-3.00# - Maybe you want to run: - # chroot /compat/linux /bin/sh sh-3.00# ls bin etc lib media mnt opt proc sbin selinux srv sys usr var sh-3.00# - If you want to do a linux developing you may concider installing linux_dist-gentoo. Linux_base is not good for it. WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Written by Steve Franks on 02/11/08 13:56>> > So my problem is that things are expecting libs in > /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when > they don't find it in linux/lib they go straight to the FreeBSD > version? > > So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? > > Steve > Please don't top-post. The crux of the problem, as I understand it, is that if the linuxulator tries to load /compat/linux/x/y/libz.so and can't find it, it then tries to load /x/y/libz.so, I'm not certain why. Ideally, your linux binaries would be linked correctly to their support libs. In lieu of that, symlinking missing libs can suffice. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 20:56 Uhr, schrieb Steve Franks <[EMAIL PROTECTED]>: So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? On Feb 11, 2008 12:06 PM, Reid Linnemann <[EMAIL PROTECTED]> wrote: work around this by linking /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at /usr/compat/linux/lib/librt.so.1 ln -s /usr/compat/linux/lib/librt.so.1 /usr/compat/linux/usr/lib/librt.so.1 works for me. I am not sure though if and where-to to file a PR (let alone where to look for the source to patch). Just for the record: serafina# pkg_info | grep linux | awk '{print $1}' linux-expat-1.95.8 linux-fontconfig-2.2.3_7 linux-xorg-libs-6.8.2_5 linux_base-fc-4_10 Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
So my problem is that things are expecting libs in /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when they don't find it in linux/lib they go straight to the FreeBSD version? So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? Steve On Feb 11, 2008 12:06 PM, Reid Linnemann <[EMAIL PROTECTED]> wrote: > Written by Michael Ross on 02/11/08 12:42>> > > > Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: > > > > > >> 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. > > > > > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 > > brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No > > such file or directory > > > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1 > > File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). > > > > [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1 > > File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). > > > > > > Michael > > Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right > path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've > dug a little deeper and seen other people work around this by linking > /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at > > /usr/compat/linux/lib/librt.so.1 > -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Written by Michael Ross on 02/11/08 12:42>> > Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: > > >> 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. > > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 > brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No > such file or directory > > [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1 > File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). > > [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1 > File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). > > > Michael Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've dug a little deeper and seen other people work around this by linking /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at /usr/compat/linux/lib/librt.so.1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: 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. [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No such file or directory [EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1 File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). [EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1 File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
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 AddressSize Name > 1 19 0xc040 926ed4 kernel > 21 0xc0d27000 5a74 snd_t4dwave.ko > 32 0xc0d2d000 4a5acsound.ko > 41 0xc0d78000 22c98radeon.ko > 52 0xc0d9b000 10e98drm.ko > 61 0xc0dac000 6a1c4acpi.ko > 71 0xc304a000 7000 linprocfs.ko > 81 0xc3051000 22000linux.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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
serafina# dmesg -a | grep -A1 ABI Additional ABI support: linux serafina# /etc/rc.d/abi restart Additional ABI support: linux. magic starts here. sorry. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
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 AddressSize Name 1 19 0xc040 926ed4 kernel 21 0xc0d27000 5a74 snd_t4dwave.ko 32 0xc0d2d000 4a5acsound.ko 41 0xc0d78000 22c98radeon.ko 52 0xc0d9b000 10e98drm.ko 61 0xc0dac000 6a1c4acpi.ko 71 0xc304a000 7000 linprocfs.ko 81 0xc3051000 22000linux.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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 18:53 Uhr, schrieb Wojciech Puchar <[EMAIL PROTECTED]>: if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. should be Additional ABI support:linux. you miss linux_enable="YES" in rc.conf If I linux_enable in rc.conf, the ABI linux support is there. - is it unreasonable to assume it _should_ be there if I kldload the module and restart abi afterwards? - Nevertheless: serafina# grep linux_enable /etc/rc.conf linux_enable="YES" serafina# dmesg -a | grep -A1 ABI Additional ABI support: linux serafina# /etc/rc.d/abi restart Additional ABI support: linux. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. should be Additional ABI support:linux. you miss linux_enable="YES" in rc.conf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
Am 11.02.2008, 18:20 Uhr, schrieb Wojciech Puchar <[EMAIL PROTECTED]>: did you have linux_enable="YES" in your rc.conf if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid sh-3.00# uname -a Linux serafina.local 2.4.2 FreeBSD 7.0-PRERELEASE #0: Fri Feb 8 21:57:13 CET 2008 i686 i686 i386 GNU/Linux serafina# locate -d: librt.so.1 /usr/compat/linux/lib/librt.so.1 /usr/compat/linux/lib/obsolete/linuxthreads/librt.so.1 /usr/lib/librt.so.1 /usr/obj/usr/src/lib/librt/librt.so.1 /usr/obj/usr/src/tmp/usr/lib/librt.so.1 Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!
sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid sh-3.00$ Sothat don't seem right. How do I get /compat/linux/bin/sh to work right? New .shrc file? Something I missed? [EMAIL PROTECTED] ~]$ /compat/linux/bin/sh sh-3.00$ ls b compat dvd etc libexec mnt mnt4 proc sbin usr bin COPYRIGHT dvd2 home lost+found mnt2 NOBACKUP razor-agent.log sys var boot deventropy lib media mnt3 pen root tmp zip sh-3.00$ /compat/linux/bin/ls b compat dvd etc libexec mnt mnt4 proc sbin usr bin COPYRIGHT dvd2 home lost+found mnt2 NOBACKUP razor-agent.log sys var boot deventropy lib media mnt3 pen root tmp zip looks ok on my system. sh works on yours - as you were able to put a command. sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid means that your /compat/linux/lib/librt.so.1 is missing or ldconfig on linux subdirs not done. did you have linux_enable="YES" in your rc.conf if not set it and rerun /etc/rc.d/abi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"