NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Getting 32 bit linux binary support
On Sun, 13 Sep 2026, Cameron Kelly wrote:
When I try to run modload compat_linux32 as root I get the following error:
modload: compat_linux32: Exec format error
With a GENERIC 11.0_STABLE kernel all I had to do was:
1. In /etc.modules.conf
compat_linux
compat_linux32
2. pkgin -y in suse_lsb suse32_lsb
3. echo 'tmpfs /emul/linux32/dev/shm tmpfs rw,-m1777' >> /etc/fstab
(As per the install message: `pkg_info -D suse32_base')
Then, the 32-bit commands that came with suse32_lsb worked:
```
qemu$ /emul/linux32/bin/date
Mon Sep 14 07:21:23 2026
qemu$ /emul/linux32/bin/bash --version
GNU bash, version 4.2.53(1)-release (i586-suse-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
qemu$ /tmp/SLACK-15/bin/bzip2
/tmp/SLACK-15/bin/bzip2: /lib/libc.so.6: version `GLIBC_2.33' not found (required by /tmp/SLACK-15/bin/bzip2)
qemu$
```
That slackware-15 i586 binary failed only due to missing symbols (the compat glibc
is very old). I just had to copy the libbz2.so* files to the correct location
for it to get this far.
-RVP
Home |
Main Index |
Thread Index |
Old Index