On Fri, Apr 14, 2006 at 12:26:09PM +0530, Premal Mishra wrote: > Hi Kris, > > I was trying to build a linux binary but seems doing it the wrong way. > > Problem is: I want to use a library which is built for linux. So i did > the following: > > 1. cd /compat/linux > 2. linked /compat/linux/lib/libc.so.6 > > When i linked to libc.so.6 the undefined reference errors for > __ctype_b were gone. > > How to correctly build a linux binary?
chroot to /compat/linux, so that no FreeBSD files are visible. You will need to install the linux_devtools port to provide linux versions of the compiler toolchain etc. Kris
Description: PGP signature