Subject: kernel build annoyance.
To: None <>
From: Andrew Gillham <>
List: current-users
Date: 04/16/1999 20:48:23

I have been noticing for the last <insert long time> that whenever
I do a kernel build, I inevitably get a kernel message similar to
the following: (not an exact copy of message)
Apr 16 14:57:37 ghost amd[xxx]: unknown host radix.h

This is because I have '/net' as an amd mount, and make is trying to
do a '#include <net/radix.h>' from '/' incorrectly!  (Or it might just
be trying to stat() the file?)

In the past I haven't looked for this too hard, because it works.
With recent problems I have been having with amd mounts hanging, I
had make hang while attempting to build libcompat.  So I looked at
the environment for the running make, and find this:
/bin/sh -ec cd ../../../../compat/common && M
AKEOBJDIR=/sys/arch/i386/compile/GILLHAM/lib/compat make  CC=cc CFLAGS=-g\\ -O2\
\ -Werror\\ -Wall\\ -Wmissing-prototypes\\ -Wstrict-prototypes\\ \\ -Wpointer-ar
ith\\ -Wno-main  AS=as AFLAGS=-x\\ assembler-with-cpp\\ -traditional-cpp\\ -D_LO
CORE  AR=ar NM=nm  LORDER=lorder  TSORT=tsort\\ -q  RANLIB=ranlib  LD=ld STRIP=s
trip  MACHINE=i386 MACHINE_ARCH=i386  COMPATCPPFLAGS=-I../../.\\ -I../../../../.
./../arch\\ -I../../../../../..\\ -nostdinc\\ -DLKM\\ -DDIAGNOSTIC\\ -DMAXUSERS=
64\\ -D_KERNEL\\ -Di386   libcompat.a 
This '-I' combined with 'cd ../../../../compat/common' works out to be '/'
which is definitely wrong.  The '-I..../arch' is '/arch' also.

I am not very knowledgeable with make, but this appears broken to me.

Andrew Gillham                            | This space left blank                     | inadvertently.
I speak for myself, not for my employer.  | Contact the publisher.