devel/linux_devtools question

Kris Kennaway kris at obsecurity.org
Fri Jul 9 14:25:52 PDT 2004


On Sat, Jul 10, 2004 at 03:25:24AM +1000, andrew clarke wrote:
> Hi,
> 
> 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.
> 
> 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.
> 
> $cat blah.c 
> #include <errno.h>
> 
> int main(void) { return 0; }
> 
> $setenv CC /compat/linux/usr/bin/gcc 
> 
> $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
> 
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040709/42e7801d/attachment.bin


More information about the freebsd-ports mailing list