compat4x broken in FreeBSD 8.1-RELEASE?

Steve Polyack korvus at
Wed Sep 22 03:14:31 UTC 2010

  Is anyone else having issues using compat4x / running FreeBSD 4 
binaries on 8.1-RELEASE?  I recently upgraded a system of mine from 
8.0-RELEASE to 8.1-RELEASE, which seems to have broken compatibility 
with compat4x.  The requisite package is installed (I even reinstalled 
it, but it appears to be a binary package).  The kernel options are all 
still there in my kernel config, which is only a slightly modified GENERIC.

$ uname -a
FreeBSD xxxxxx 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Tue Sep 21 01:18:45 
EDT 2010     root at xxxxx:/usr/obj/usr/src/sys/PFSYNC-MFIB  amd64

$ grep -ir compat /usr/src/sys/amd64/conf/PFSYNC-MFIB
options         COMPAT_43TTY            # BSD 4.3 TTY compat (sgtty)
options         COMPAT_IA32             # Compatible with i386 binaries
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         COMPAT_FREEBSD6         # Compatible with FreeBSD6
options         COMPAT_FREEBSD7         # Compatible with FreeBSD7

An example FreeBSD 4 port which no longer works is audio/ventrilo-server:
$ sudo /usr/local/etc/rc.d/ventrilo-server start
Starting ventrilo.
/usr/local/ventrilo-server/ventrilo_srv: 1: Syntax error: "(" unexpected
$ file /usr/local/ventrilo-server/ventrilo_srv
/usr/local/ventrilo-server/ventrilo_srv: ELF 32-bit LSB executable, 
Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), 
for FreeBSD 4.5, stripped
$  ldd /usr/local/ventrilo-server/ventrilo_srv
ldd: /usr/bin/ldd32: Exec format error

Interestingly enough, the compat4 libraries themselves don't seem to be 
$ ldd /usr/local/lib32/compat/
ldd: /usr/bin/ldd32: Exec format error

Compat5x libraries do not appear to be affected:
$ ldd /usr/local/lib/compat/
/usr/local/lib/compat/ => /usr/local/lib/compat/ (0x800c00000) => /usr/local/lib/compat/ 

Has anyone else ran into this issue? I realize trying to use things 
built for FreeBSD 4 may be like beating a dead horse at this point, I'm 
just surprised that the compatibility was broken during a minor release 


Steve Polyack

More information about the freebsd-questions mailing list