Hello all, For the handful of you who care about compat_freebsd, here is a update on this situation:
compat_freebsd has been broken in late 3.x's up through 4.1 but is fixed in CURRENT. A 4.2 snapshot from the 7th appears to work and I am trying to determine if there is a patch that can be applied to 4.1. A PR does not appear to have been opened. Should anyone know where the mmap fix was made, I would appreciate hearing it. I have done many searches of cvsweb and looked in some likely places but have not found it. Note that the freebsd_lib is unlikely to be responsible for the issue as it simply includes some libraries, ldconfig and sets the sysctl. Michael >As with posters on this list from 7/15/06, 10/25/06 and 2/10/07, I am having >trouble with compat_freebsd and binaries that depend on shared libraries. >Everyone seems to have given up so far but sincerely want to get it working. > >In short, launching a FreeBSD binary that depends on shared libraries reports: > ># /emul/freebsd/usr/bin/ldd >/usr/libexec/ld-elf.so.1: /usr/lib/libc.so.4: mmap of entire address space >failed: Invalid argument > >... even though they exist: > ># ldconfig-freebsd -r|grep libc.so.4 > 13:-lc.4 => /usr/lib/libc.so.4 ># find / -name libc.so.4 -print >/usr/local/emul/freebsd/usr/lib/libc.so.4 ># ls -l /usr/local/emul/freebsd/usr/lib/libc.so* >lrwxr-xr-x 1 root wheel 9 Aug 4 00:44 \ > /usr/local/emul/freebsd/usr/lib/libc.so -> libc.so.4 >-r--r--r-- 1 root wheel 582928 Jan 21 2005 \ > /usr/local/emul/freebsd/usr/lib/libc.so.4 > > >Environment: OpenBSD 4.1 x86, FreeBSD 4.11 binaries > > >Now the checklist: <install freebsd_lib port, check> >Is the sysctl enabled? Check. >sysctl -w kern.emul.freebsd=1 snip