[Openswan dev] [PATCH] Source changes required to build KLIPS on 2.6

Paul Wouters paul at xelerance.com
Thu Jun 24 17:35:49 CEST 2004


On Wed, 23 Jun 2004, Nate Carlson wrote:

I tried to see if I could confirm your work.
 
> Steps to build under 2.6:
> 
> - Grab a fresh CVS HEAD checkout
> - Apply the 'openswan-head-26klips-sourceonly-works.patch' patch
> - Go to the openswan-2 directory, and run the move-files script

I also ran the move-files-2 script

> - Copy the Makefile-WORKS over the Makefile in linux/net/ipsec
> - Edit linux/net/ipsec/Makefile; change the -I's in extra-cflags to the 
> proper locations. Be grossed out by the ugliness of this thing.
> - Change to linux/net/ipsec/
> - Run:
> 
> make V=1 -C /path/to/kernel-source-2.6.6 SUBDIRS=`pwd` 
> MODULE_DEF_INCLUDE=`pwd`/config-all.h module

That 'module' should be 'modules'.
It almost works and compiles most of the stuff, then dies at not having
a target for linux/net/ipsec/version.o

But this is on 2.2.0dr1, so I'll try it on head instead.

> - Copy the ipsec.ko file to /lib/modules/<whatever>
> - Load it, run it, have fun.
> 
> Current problems:
> - If NAT Traversal is enabled in the build options, get the following 
> errors:

What happens when you try to load both ipsec.ko and af_key.ko/esp4.ko ? :)
(sync your box before trying this :)
 
> Hopefully this helps you guys along to getting support for KLIPS under 
> 2.6 into the mainstream! At least I'll be able to test out the Padlock 
> processor with KLIPS now.  :)

It definately helps! 

Paul


More information about the Dev mailing list