Re: clean for kernel build

2008-04-23 Thread Daniel Bye
On Tue, Apr 22, 2008 at 04:00:42PM -0600, Andrew Falanga wrote:
 On Tue, Apr 22, 2008 at 3:17 PM, Fraser Tweedale [EMAIL PROTECTED] wrote:
  `make buildkernel` in /usr/src does a clean before building.  You most
  likely are missing something in your kernel config (i.e. a device that is
  depended on by another device).
 
   frase
 
 
 
 
 Thanks.  What options are needed in conjunction with IPSEC?  I have
 this in my config file:
 
 options  IPSEC
 options  IPSEC_ESP # from the handbook
 
 The IPSec  VPN page in the handbook says to use these.  However, the
 IPSEC_ESP errors out of the build with unknown option.  What else is
 needed?  Also, if I'm not mistaken, the linker errors I'm seeing are
 dealing with the IPSEC implementation.  What kernel options are
 necessary for building a kernel with IPSec?

I'm not sure, as I don't user IPSEC, but this entry from /usr/src/UPDATING
might be of use:

20070704:
The new IPsec code is now compiled in using the IPSEC option.  The
IPSEC option now requires device crypto be defined in your kernel
configuration.  The FAST_IPSEC kernel option is now deprecated.


We have recently moved from the KAME Project's IPSEC to FAST_IPSEC.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpvzQrQ3wIeD.pgp
Description: PGP signature


Re: clean for kernel build

2008-04-22 Thread Fraser Tweedale
`make buildkernel` in /usr/src does a clean before building.  You most 
likely are missing something in your kernel config (i.e. a device that 
is depended on by another device).


frase

Andrew Falanga wrote:

How does one clean the build environment for the kernel?  I'm building
a custom kernel for IPSec and when it got to the linking phase of the
build, the build process bailed with many linking errors:

xform_ah.o(.text+0x15): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_sha2_512'
xform_ah.o(.text+0x25): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_key_md5'
xform_ah.o(.text+0x35): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_ripemd_160'
xform_ah.o(.text+0x3f): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_sha1'
xform_ah.o(.text+0x4f): In function `ah_algorithm_lookup':
: undefined reference to `auth_hash_hmac_md5'

Many more lines that look very similar to this.  I'm thinking that it
might be something left over from the last time I rebuilt the kernel
(which on this system is when it went from 6.2-RELEASE to
7.0-RELEASE).  So, what make target will clean what I need it to
clean, and are there any other directions similar to what can be found
in the handbook for when rebuilding world?  (This time I don't want to
rebuild world, I just need a new kernel.)

Andy






signature.asc
Description: OpenPGP digital signature


Re: clean for kernel build

2008-04-22 Thread Andrew Falanga
On Tue, Apr 22, 2008 at 3:17 PM, Fraser Tweedale [EMAIL PROTECTED] wrote:
 `make buildkernel` in /usr/src does a clean before building.  You most
 likely are missing something in your kernel config (i.e. a device that is
 depended on by another device).

  frase




Thanks.  What options are needed in conjunction with IPSEC?  I have
this in my config file:

options  IPSEC
options  IPSEC_ESP # from the handbook

The IPSec  VPN page in the handbook says to use these.  However, the
IPSEC_ESP errors out of the build with unknown option.  What else is
needed?  Also, if I'm not mistaken, the linker errors I'm seeing are
dealing with the IPSEC implementation.  What kernel options are
necessary for building a kernel with IPSec?

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]