Date: Tue, 16 Mar 1999 16:45:00 -0800 From: Ken Marx <kmarx@bigshed.com> To: emulation@FreeBSD.ORG Cc: Ken Marx <kmarx@bigshed.com> Subject: /lib/ld-linux.so.2 in 2.2.8 Message-ID: <36EEFB0C.C4A24A87@bigshed.com>
next in thread | raw e-mail | index | archive | help
Hi, I've been scouring the handbook, and the general and emulation archives but haven't seen a resolution for this: I *am* able to run certain linux ELF binaries. I'm having linux compat problems in 2.2.8 wrt dynamic libs. I have installed the linux_lib and linux_devel stuff from the 2.2.8 CD. The first symptom is a bad magic complaint in the lib: bad magic number in "./../J-HAPI/lib/linux/libjhapi.so" (libjhapi.so) I tracked down the instructions for setting up linux_lib (http://www.freebsd.org/handbook/handbook310.html#655) and got to the step where I run /compat/linux/usr/bin/ldd on itself to verify that things work. It fails due to not mapping /lib -> /compat/linux/lib, so I kludged this link by hand. The above 'ldd' is a script that tries to actually invoke ld-linux.so.2 --verify $file This makes no sense to me, but doing so definitely gives an error: bash: /lib/ld-linux.so.2: cannot execute binary file (Same as any wrongly attempted execution of any .so.) This happens also if I use the /compat/linux/bin/bash, and occurs whether I modload /lkm/linux_mox.o, or run a kernel with COMPAT_LINUX enabled. I've tried brandelf'ing some of the .so's with no effect. I didn't try branding everything under /compat/linux though. Since this is for a production system, I currently don't have the option of upgrading to 3.1. Does anyone have a clue what I can do to get .so format recognized? Thanks! k. (If you know the solution to exist within the archives, can you give me an explicit pointer please - As mentioned, I've already spent quite a bit of time in there, so if I missed it, I need my nose stuck directly into it. Thanks...) -- Ken Marx, kmarx@bigshed.com This seems correct, however, correctness doesn't pay the bills. We need to right size and get our arms around the inappropriate behavior. - http://cgi.bigshed.com/~kmarx/cgi-bin/speak.cgi 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?36EEFB0C.C4A24A87>