Subject: FreeBSD compatibility - what am I doing wrong?
To: None <netbsd-help@netbsd.org>
From: Ambarish Malpani <ambarish@caymas.com>
List: netbsd-help
Date: 07/01/2003 14:34:26
Hi,
I am trying to get the FreeBSD compatibility mode working. Tried
following the instructions in COMPAT_FREEBSD(8), but am not having any
luck.
Here is what I did:
mkdir -p /emul/netbsd
copied over /usr/lib/*.so* to /emul/netbsd/usr/lib (actually got it
across with tar to maintain links)
copied over usr/libexec/ld.so, var/run/ld.so.hints
copied sbin/ldconfig, usr/bin/ldd
Now ran the FreeBSD ldconfig, telling it to look at /usr/lib
Also ran the ldconfig with a -aout flag
Verified the output files in /emul/netbsd/var/run (have both a new
ld.so.hints
and ld-elf.so.hints)
Tried to run the ldd program that I copied over on itself - always get
the error: "cannot execute binary file"
If I set up my LD_LIBRARY_PATH to explicitly include /emul/freebsd/usr/lib,
then I can get the ldd to run.....
Please help!
Ambarish