Subject: Recompiling kernel with IPSEC
To: None <netbsd-help@netbsd.org>
From: Robert Bannocks <R.Bannocks@ucl.ac.uk>
List: netbsd-help
Date: 02/16/2005 10:16:21
I am trying to compile the kernel with IPSEC on NetBSD 2.0 and it fails 
with the following error can anyone suggest what may be wrong?:

In file included from ../../../../dev/ic/ath.c:113:
../../../../dev/ic/athvar.h:52:42: ../contrib/sys/dev/ic/athhal.h: No 
such file or directory
In file included from ../../../../dev/ic/ath.c:113:
../../../../dev/ic/athvar.h:134: warning: type defaults to `int' in 
declaration of `HAL_RATE_TABLE'
../../../../dev/ic/athvar.h:134: warning: no semicolon at end of struct 
or union
../../../../dev/ic/athvar.h:134: error: parse error before '*' token
../../../../dev/ic/athvar.h:135: error: parse error before '*' token
../../../../dev/ic/athvar.h:135: warning: type defaults to `int' in 
declaration of `sc_currates'
../../../../dev/ic/athvar.h:135: warning: data definition has no type or 
storage class
../../../../dev/ic/athvar.h:139: error: parse error before "sc_imask"
../../../../dev/ic/athvar.h:139: warning: type defaults to `int' in 
declaration of `sc_imask'
../../../../dev/ic/athvar.h:139: warning: data definition has no type or 
storage class
../../../../dev/ic/athvar.h:199: error: parse error before '}' token
../../../../dev/ic/ath.c:114:47: ../contrib/sys/dev/ic/athhal_desc.h: No 
such file or directory
../../../../dev/ic/ath.c:170: error: parse error before "HAL_BOOL"
../../../../dev/ic/ath.c:171: warning: function declaration isn't a 
prototype
../../../../dev/ic/ath.c:206: error: `AH_TRUE' undeclared here (not in a 
function)
../../../../dev/ic/ath.c:207: error: `AH_TRUE' undeclared here (not in a 
function)
../../../../dev/ic/ath.c:208: error: `CTRY_DEFAULT' undeclared here (not 
in a function)
../../../../dev/ic/ath.c: In function `ath_activate':
../../../../dev/ic/ath.c:244: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c: In function `ath_enable':
../../../../dev/ic/ath.c:254: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:255: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:255: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:257: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:260: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c: In function `ath_disable':
../../../../dev/ic/ath.c:268: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:270: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:271: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:272: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c: In function `ath_attach':
../../../../dev/ic/ath.c:412: error: dereferencing pointer to incomplete 
type
../../../../dev/ic/ath.c:415: error: `HAL_STATUS' undeclared (first use 
in this function)
../../../../dev/ic/ath.c:415: error: (Each undeclared identifier is 
reported only once
../../../../dev/ic/ath.c:415: error: for each function it appears in.)
../../../../dev/ic/ath.c:415: error: parse error before "status"
[.....snip...]