[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compat_linux
Hi
Check that you have :
/emul/linux/etc/ld.so.conf
/emul/linux/bin/ldconfig (or sbin, or anywhere)
/emul/linux/bin/ldd (usefull but not a must)
/emul/linux/lib/ld.so
/emul/linux/lib/ld-linux.so.1
you'll also need :
/emul/linux/lib/libc.so.x (x = the latest version)
/emul/linux/lib/libm.so.x
and for X (a minimal set):
/emul/linux/lib/libICE.so.x
/emul/linux/lib/libSM.so.x
/emul/linux/lib/libX11.so.x
/emul/linux/lib/libXpm.so.x
/emul/linux/lib/libXt.so.x
(or be organized and put that at usr/X11R6/lib, usr/lib, usr/local/lib, etc)
begin with that and, helped by ktrace/kdump test to run the linux app and see
what more it needs. You can also use ldd.
For the first time, you don't need to run ldconfig, just try to run linux app
(some linux apps will run without installing anything under emul)
On Thu, 1 Jul 1999, Michael S. Hornung wrote:
> I'm trying to figure out how to get binary compatibility to work with my
> 2.4/intel machine. I read through compat_linux(8) and believe I've
> installed the proper files. I'm still feeling pretty clue-free about the
> process, but anyhow here's what I have:
>
> My kernel:
> #[foobar][/emul/linux]# uname -v
> ARGH2#0
>
> Double check that the kernel was compiled with COMPAT_LINUX:
> #[foobar][/emul/linux]# egrep LINUX /usr/src/sys/arch/i386/conf/ARGH2
> option COMPAT_LINUX # binary compatibility with Linux
>
> This is indeed an ELF Linux binary:
> #[foobar][/emul/linux]# file sbin/ldconfig
> sbin/ldconfig: ELF 32-bit LSB executable, Intel 80386, version 1
>
> Look what happens when I try to run it:
> #[foobar][/emul/linux]# sbin/ldconfig
> Bad system call
>
> Apparently ldconfig is supposed to just "work" since its libraries are
> statically linked. Do I need an a.out binary instead?
>
> Thanks for help/pointers.
>
> -----------------------------------------------
> Michael Hornung foobar@u.washington.edu
>
>
>
============================================================================
Ministerio de Economia y Obras y Servicios Publicos
Secretaria de Hacienda Tel : +54 1 349-6110
Pablo Luis Bucich Fax : +54 1 349-6505
Buenos Aires, Argentina e-mail : pbucic@mecon.ar
----------------------------------------------------------------------------
Never attribute to malice that which is adequately explained by stupidity.
-- Hanlon's Razor
- References:
- compat_linux
- From: "Michael S. Hornung" <foobar@u.washington.edu>