kernel compile now depends on /usr/include ?

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Wed, 11 Jun 2003 16:38:53 +0200
I thought that including stuff from /usr/include in kernel code was
bad style ?

If it is, Should src/include/bitstring.h be repocopied to
src/sys/sys/bitstring.h ?

Alternatively, we need some makefile magic to cater for the following
case:

+ set -e
+ P=/bang/somewhere
+ rm -rf /bang/somewhere
+ mkdir /bang/somewhere
+ cd /bang/somewhere
+ cvs -d /home/ncvs -Q -R co sys
+ cd sys/i386/conf
+ make LINT
cat ../../conf/NOTES NOTES | sed -E -n -f ../../conf/makeLINT.sed > LINT
+ config LINT
[...]
Kernel build directory is ../compile/LINT
Don't forget to do a ``make depend''
+ cd ../compile/LINT
+ make -s depend
[...]
===> netgraph/bluetooth/l2cap
===> netgraph/bluetooth/socket
/bang/somewhere/sys/netgraph/bluetooth/socket/ng_btsocket.c:44:23: bitstring.h: No such file or directory
/bang/somewhere/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c:52:23: bitstring.h: No such file or directory
/bang/somewhere/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c:51:23: bitstring.h: No such file or directory
/bang/somewhere/sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c:52:23: bitstring.h: No such file or directory
/bang/somewhere/sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c:54:23: bitstring.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /bang/somewhere/sys/modules/netgraph/bluetooth/socket.
*** Error code 1

Stop in /bang/somewhere/sys/modules/netgraph/bluetooth.
*** Error code 1

Stop in /bang/somewhere/sys/modules/netgraph.
*** Error code 1

Stop in /bang/somewhere/sys/modules.
*** Error code 1

Stop in /bang/somewhere/sys/i386/compile/LINT.
-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Received on Wed Jun 11 2003 - 05:38:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC