On Thursday 26 October 2006 20:14, Andrew Daugherity wrote: > First, read through the compat_freebsd (8) man page. > > Some points to note: > -The 'ldd' command being run in your excerpts is most likely the > OpenBSD /usr/bin/ldd, which is not going to work properly with > binaries compiled for other OSes. You need a FreeBSD 'ldd' binary; > preferably as /emul/freebsd/usr/bin/ldd. (Note that the ldd examples > in the compat_freebsd(8) man page refer to running ldd on a FreeBSD > system.) Symlinking that to something like > /usr/local/bin/ldd-freebsd, so you can then invoke it as > 'ldd-freebsd', avoiding any confusion, is also a good idea. > > -I assume you have the emulators/freebsd_lib port/pkg already > installed. I don't see usr/bin/ldd in the PLIST, so you may want to > grab that from a FreeBSD 4.11 machine or FTP archive (since that is > the version of libraries in the freebsd_lib pkg). > > -FreeBSD programs and files don't have to live under /emul/freebsd, > but it's a good idea. If they include files also in the OpenBSD > system, they must go there so they don't clobber the OpenBSD files. > > Most of the same concepts also apply to Linux emulation. > > > -Andrew
hi andrew, thank you for your reply. after about 48 hours of pondering, researching, and testing how to get this working, i changed gears earlier today and tried the linux version of the netbackup client (with compat_linux). as i did with compat_freebsd, i followed the man page closely, and much to my surprise, the linux version of the client worked on the first shot. i left off on the freebsd libraries where ldd /usr/openv/netbackup/bin/bpcd would specify that it could not find its 4 libraries, then ldconfig-freebsd -r|grep libkvm would that that /usr/lib/libkvm.so.2 (the exact version bpcd was specifying actually, and found under /emul/freebsd/) was sucessfully loaded into the library cache. this setting held thru a reboot after a ldconfig-freebsd -m /usr/lib. i ended up throwing my arms in the air on that one, which i hated doing (yuck... a linux binary! ewww! *wink*) cheers, jonathan