NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Linux emulation: "Inappropriate file type or format" error



I intend to test a few programs under Linux emulation.

I am on NetBSD 6.0 BETA2.

My Linux kernel emulation version reported is 2.6.18.

SuSe seems a preferred distribution in pkgsrc. Version 11.3 is used by
packages like flash plugin. So I chose a matching distro and downlaoded a
live CD of SuSe 11.3.

If I mount a copy of the live cd's root system under /emul/linux (or
elsewhere) and try to run (say) bash from this copy, I get aforementioned
error.

I have also tried chrooting to location where live cd's copied files are
kept, which draws the same error.

# chroot SuSeLive /bin/bash
chroot: /bin/bash: Inappropriate file type or format

chroot however succeeds for pkgsrc's installation under /emul/linux

file command does not show any difference:

On bash installed through pkgsrc:
# file bash
bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.4,
BuildID[sha1]=0x4ba27f0e57832652fd489a7100e557f7d64ada9f, stripped

On SuSe's live cd copy:
# file bash
bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.4,
BuildID[sha1]=0x4ba27f0e57832652fd489a7100e557f7d64ada9f, stripped


I have been studying man compat_linux and Chapter 10 of user guide, though
I think I haven't got why above error comes.

Would appreciate help.

Mayuresh


Home | Main Index | Thread Index | Old Index