$ uname -a A_BLOG_ABOUT_UNIX_TOOLS_AND_THE_BEAUTY_OF_SIMPLE_SYSTEMS
SYS.YEAR  2026
← Back to articles
2026-08-17ARTICLE

00c 32

Add FreeBSD 32-Bit Support

The previous stage established that ApplixWare is a 32-bit i386 executable and that the amd64 jail lacks /usr/bin/ldd32:

ldd: /usr/bin/ldd32: No such file or directory

The jail needs FreeBSD's 32-bit base runtime before it can load or inspect the ApplixWare executable.

1. Enable the FreeBSD base-package repository

Run these commands on the FreeBSD host:

jexec applix151 mkdir -p /usr/local/etc/pkg/repos

jexec applix151 sh -c \
  'printf "%s\n" "FreeBSD-base: { enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf'

This enables the repository containing packaged FreeBSD base-system components. It is separate from the ordinary ports/packages repository.

2. Install the 32-bit base set

jexec applix151 pkg install -y FreeBSD-set-lib32

FreeBSD-set-lib32 supplies the amd64 system's compatibility runtime for executing 32-bit FreeBSD programs. It does not supply ApplixWare's old FreeBSD 3.x libraries; those are a later compatibility layer.

3. Verify the installed pieces

jexec applix151 ls -l \
  /libexec/ld-elf32.so.1 \
  /usr/bin/ldd32 \
  /usr/lib32/libc.so.7

The observed files were:

-r-xr-xr-x  1 root wheel  105848 Jul 28 14:26 /libexec/ld-elf32.so.1
-r-xr-xr-x  1 root wheel    8692 Jun 29 14:16 /usr/bin/ldd32
-r--r--r--  1 root wheel 1920200 Jul 28 14:26 /usr/lib32/libc.so.7

Their roles are:

  • /libexec/ld-elf32.so.1 loads 32-bit FreeBSD ELF programs.
  • /usr/bin/ldd32 lets the normal ldd command inspect 32-bit executables.
  • /usr/lib32/libc.so.7 is the modern 32-bit FreeBSD C library.

This resolves the missing 32-bit execution machinery identified in 00b-cd.md. Now run the original CD launcher again:

jexec applix151 /applixware1999cdrom/applix
ld-elf32.so.1: Shared object "libX11.so.6" not found, required by "applix"