Linux.ko

joerg at britannica.bec.de joerg at britannica.bec.de
Mon Jan 16 04:53:41 PST 2006


On Mon, Jan 16, 2006 at 01:07:50PM +0100, Simon 'corecode' Schubert wrote:
> John Duncan wrote:
> >Hi,
> >    I am running a linux binary compiled against libc5 using the
> >pkgsrc provided linux emulation set-up. The library paths that
> >the linux.ko searches seem to be still set to /compat/linux.

Yes, and that won't change either. Keep in mind that e.g. NetBSD uses
/emul which would be linked to /usr/pkg/emul, see below.

For libc5 programs, you might still need to brandelf them, since are not
always detected automatically.

> >
> >   I have copied over /usr/pkg/emul/linux to /compat and the binary
> >appears to work, linking didn't work, but this is only probably
> >working because this binary is so simple.
> 
> Just do a symlink:
> 
> ln -s /usr/pkg/emul/linux /compat/linux

Often easier and slightly better

ln -s /usr/pkg/emul /compat

Joerg





More information about the Users mailing list