Date: Fri, 9 Jul 2004 14:25:49 -0700 From: Kris Kennaway <kris@obsecurity.org> To: andrew clarke <mail@ozzmosis.com> Cc: freebsd-ports@freebsd.org Subject: Re: devel/linux_devtools question Message-ID: <20040709212549.GA52445@xor.obsecurity.org> In-Reply-To: <20040709172523.GA64473@ozzmosis.com> References: <20040709172523.GA64473@ozzmosis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 10, 2004 at 03:25:24AM +1000, andrew clarke wrote: > Hi, >=20 > I've installed linux_devtools-8.0_1 from the ports tree on a FreeBSD 4.8 > machine but have run into some problems building anything useful > apparently due to missing header files. >=20 > Is it correct to expect that the following should compile, are there > files missing from the port, am I doing something wrong, or am I > expecting too much? Thanks. >=20 > $cat blah.c=20 > #include <errno.h> >=20 > int main(void) { return 0; } >=20 > $setenv CC /compat/linux/usr/bin/gcc=20 >=20 > $make blah > /compat/linux/usr/bin/gcc -O -pipe blah.c -o blah > In file included from /usr/include/errno.h:36, > from blah.c:1: > /usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory > *** Error code 1 >=20 > Stop in /usr/home/ozzmosis/src/csource/blah. Not going to work since the compiler will still see freebsd headers. chroot to /compat/linux and build from there, so the compiler toolchain sees only linux files. Kris --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA7w1dWry0BWjoQKURAqivAKCaFYAD29QMr1koMx0VhqoyZUsdRwCfWTTU a9udU5H4O+KcjxhcJU2hBR8= =VzUP -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040709212549.GA52445>