From owner-freebsd-ports@FreeBSD.ORG Fri Jul 9 21:25:52 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D376C16A4CE for ; Fri, 9 Jul 2004 21:25:52 +0000 (GMT) Received: from ylpvm01.prodigy.net (ylpvm01-ext.prodigy.net [207.115.57.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 940FB43D45 for ; Fri, 9 Jul 2004 21:25:52 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-67-119-55-212.dsl.lsan03.pacbell.net [67.119.55.212]) i69LPn1m017552; Fri, 9 Jul 2004 17:25:50 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C85C5524C4; Fri, 9 Jul 2004 14:25:49 -0700 (PDT) Date: Fri, 9 Jul 2004 14:25:49 -0700 From: Kris Kennaway To: andrew clarke Message-ID: <20040709212549.GA52445@xor.obsecurity.org> References: <20040709172523.GA64473@ozzmosis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20040709172523.GA64473@ozzmosis.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-ports@freebsd.org Subject: Re: devel/linux_devtools question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 21:25:52 -0000 --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 >=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--