Date: Sun, 14 Feb 1999 15:54:00 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: emulation@FreeBSD.ORG Subject: linux emulation can't find ld-linux.so Message-ID: <Pine.BSF.3.95.990214154239.11800E-100000@current1.whistle.com>
next in thread | raw e-mail | index | archive | help
I've seen this mentionned but can't find the reference. Here's a partial log of me trying to run a Linux ELF called xess4. Other linux progs "Just worked " (e.g. the bash in the linux-libs package) julian [phaser.whistle.com] 582 ./xess4 ELF interpreter /compat/linux/lib/ld-linux.so.1 not found Abort [phaser.whistle.com] 583[phaser.whistle.com] 583 ls -la /compat/linux/lib total 8120 drwxr-xr-x 2 root wheel 1024 Feb 14 15:10 ./ drwxr-xr-x 8 root wheel 512 Feb 14 15:13 ../ -rwxr-xr-x 2 root wheel 21367 Oct 25 1996 ld-linux.so.1* -rwxr-xr-x 2 root wheel 21367 Oct 25 1996 ld-linux.so.1.7.14* -rwxr-xr-x 1 root wheel 158747 Oct 24 02:59 ld-linux.so.2* -rwxr-xr-x 2 root wheel 24580 Oct 25 1996 ld.so* -rwxr-xr-x 2 root wheel 24580 Oct 25 1996 ld.so.1.7.14* -rwxr-xr-x 1 root wheel 12927 Oct 24 02:59 libBrokenLocale.so.1* lrwxr-xr-x 1 root wheel 14 Feb 14 15:10 libc.so.5@ -> libc.so.5.4.23 -rwxr-xr-x 1 root wheel 705995 Oct 25 1996 libc.so.5.3.12* -rwxr-xr-x 1 root wheel 1861963 Apr 10 1997 libc.so.5.4.23* -rwxr-xr-x 1 root wheel 3061550 Oct 24 02:59 libc.so.6* -rwxr-xr-x 1 root wheel 181993 Oct 24 02:59 libcrypt.so.1* -rwxr-xr-x 1 root wheel 257548 Oct 24 02:59 libdb.so.2* lrwxr-xr-x 1 root wheel 15 Feb 14 15:10 libdl.so@ -> libdl.so.1.7.14 lrwxr-xr-x 1 root wheel 15 Feb 14 15:10 libdl.so.1@ -> libdl.so.1.7.14 -rwxr-xr-x 1 root wheel 6983 Oct 25 1996 libdl.so.1.7.14* -rwxr-xr-x 1 root wheel 37146 Oct 24 02:59 libdl.so.2* lrwxr-xr-x 1 root wheel 15 Feb 14 15:10 libfbm.so@ -> libfbm.so.1.0.0 lrwxr-xr-x 1 root wheel 15 Feb 14 15:10 libfbm.so.1@ -> libfbm.so.1.0.0 -rwxr-xr-x 1 root wheel 72053 Oct 25 1996 libfbm.so.1.0.0* lrwxr-xr-x 1 root wheel 13 Feb 14 15:10 libm.so.5@ -> libm.so.5.0.8 -rwxr-xr-x 1 root wheel 36084 Oct 25 1996 libm.so.5.0.6* -rwxr-xr-x 1 root wheel 76697 Apr 10 1997 libm.so.5.0.8* -rwxr-xr-x 1 root wheel 413550 Oct 24 02:59 libm.so.6* -rwxr-xr-x 1 root wheel 81462 Oct 24 02:59 libnsl.so.1* -rwxr-xr-x 1 root wheel 111285 Oct 24 02:59 libnss_compat.so.1* -rwxr-xr-x 1 root wheel 141242 Oct 24 02:59 libnss_db.so.1* -rwxr-xr-x 1 root wheel 37261 Oct 24 02:59 libnss_dns.so.1* -rwxr-xr-x 1 root wheel 176059 Oct 24 02:59 libnss_files.so.1* -rwxr-xr-x 1 root wheel 227959 Oct 24 02:59 libnss_nis.so.1* -rwxr-xr-x 1 root wheel 195735 Oct 24 02:59 libpthread.so.0* -rwxr-xr-x 1 root wheel 149537 Oct 24 02:59 libresolv.so.2* lrwxr-xr-x 1 root wheel 19 Feb 14 15:10 libtermcap.so.2@ -> libtermcap.so.2.0.8 -rwxr-xr-x 1 root wheel 11925 Oct 25 1996 libtermcap.so.2.0.8* -rwxr-xr-x 1 root wheel 34782 Oct 24 02:59 libutil.so.1* [phaser.whistle.com] 584 truss ./xess4 ELF interpreter /compat/linux/lib/ld-linux.so.1 not found process exited before exec'ing [phaser.whistle.com] 591 cd /compat/linux/bin [...] [phaser.whistle.com] 605 strings bash|grep ld /lib/ld-linux.so.1 %0dm%0ld.%02ds child setpgid (%d to %d) error %d: %s wait: pid %d is not a child of this shell cannot make a child for process substitution: %s Can't make a child for command substitution: %s set [--abefhknotuvxldHCP] [-o option] [arg ...] The -l flag specifies that `dirs' should not print shorthand versions have a visible scope restricted to that function and its children. which should be separated from it by white space. be signal numbers for which names should be listed. Kill is a shell FILE1 -ot FILE2 True if file1 is older than file2. that would be exec'ed, or nothing if -type wouldn't return `file'. For each NAME, indicate how it would be interpreted if used as a N is not given, all currently active child processes are waited for, could not get current directory: %s set [--abefhknotuvxldHCP] [-o option] [arg ...] %ld%s vi-tilde-expand tilde-expand expand-tilde [phaser.whistle.com] 606 ./bash bash# file ./bash ./bash: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked, stripped bash# ls bash# file * bash: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked, stripped sh: symbolic link to bash bash# cd ../usr/local/xess bash# ls Connections.xs4 example2.c loancalc.xs4 Examples.xs4 example33 lsexample.xs4 README example33.c mexican.xs4 Xess4 example5 pie.xs4 anova.xs4 example5.c probrpt.xs4 bars.xs4 feedback.xs4 sens_demo.xs4 datafeed.xs4 full_adder.xs4 singraph.xs4 ecg.xs4 goalseek.xs4 spline.xs4 ecgdft.xs4 gunzip xess4 enhreq.xs4 hi-lo.xs4 xess4-help.html example2 histogram.xs4 xess4-messages.txt bash# ./xess4 ELF interpreter /compat/linux/lib/ld-linux.so.1 not found IOT trap/Abort bash# ls -l /compat/linux/lib/ld-linux.so.1 -rwxr-xr-x 2 root wheel 21367 Oct 25 1996 /compat/linux/lib/ld-linux.so.1 bash# file !$ file /compat/linux/lib/ld-linux.so.1 /compat/linux/lib/ld-linux.so.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (Linux), not stripped bash# ldd xess4 /compat/linux/usr/bin/ldd: /lib/ld-linux.so.2: not found not a dynamic executable bash# ls /compat/linux/lib/ld-linux.so.2 /compat/linux/lib/ld-linux.so.2 bash# ls -l !$ ls -l /compat/linux/lib/ld-linux.so.2 -rwxr-xr-x 1 root wheel 158747 Oct 24 02:59 /compat/linux/lib/ld-linux.so.2 bash# (???) bash# ls -la /compat lrwxr-xr-x 1 root wheel 11 Feb 14 15:09 /compat -> /usr/compat bash# bash# ls -l /compat/linux total 14 -rw-r--r-- 1 root wheel 4 Oct 24 02:58 .linux_lib-version -rw-r--r-- 1 200 15 6159 Nov 18 1997 README drwxr-xr-x 2 root wheel 512 Feb 14 15:10 bin drwxr-xr-x 2 root wheel 512 Feb 14 15:10 etc drwxr-xr-x 2 root wheel 1024 Feb 14 15:40 lib drwxr-xr-x 2 root wheel 512 Feb 14 15:10 sbin drwxr-xr-x 10 root wheel 512 Feb 14 15:15 usr drwxr-xr-x 3 root wheel 512 Feb 14 15:11 var bash# Can anyone explain to me what is going on...?? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.990214154239.11800E-100000>