[Openswan Users] Do I need to patch the kernel to build OCF with Openswan?

Ankit Parikh anks.capri20 at gmail.com
Wed Jul 18 19:41:10 EDT 2007


I am now using version of the kernel now...

Now i did make KERNELSRC=/lib/modules/'uname -r'/build module minstall

and got the following error:

root at localhost openswan-3.0.06]#  make KERNELSRC=/lib/modules/`uname
-r`/build module minstall
which: no git in
Building module for a 2.6 kernel
which: no git in
make[1]: Entering directory `/root/openswan/openswan-3.0.06'
which: no git in
make[2]: Entering directory `/root/openswan/openswan-3.0.06'
make[2]: `/root/openswan/openswan-3.0.06/modobj26/Makefile' is up to date.
make[2]: Leaving directory `/root/openswan/openswan-3.0.06'
make -C /lib/modules/2.6.18-8.el5/build  BUILDDIR=/root/openswan/openswan-
3.0.06/modobj26 SUBDIRS=/root/openswan/openswan-3.0.06/modobj26
all.h MODULE_DEFCONFIG=/root/openswan/openswan-3.0.06/linux/net/ipsec/defconfig
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [module26] Error 2
make[1]: Leaving directory `/root/openswan/openswan-3.0.06'
make: *** [module] Error 2

I saw the directory /lib/modules/2.6.18-8.el5/build:

build is a symbolic link which points to
/usr/src/kernels/2.6.18-8.elf-i686,but when in /usr/src/ there is no
directory called kernels...

does that mean that the kernel source is not there in the directory and I
need to recompile the kernel? Btw..I am using RHEL 5 now and this is the
default kernel installed with RHEL 5. I haven't recompiled the kernel.



On 7/18/07, Paul Wouters <paul at xelerance.com> wrote:
> On Wed, 18 Jul 2007, Ankit Parikh wrote:
> > Now, I have kernel 2.6.11 and openswan 3.0.06(RHEL 4)
> You might want to try a 2.6.17 or 2.6.18.* kernel instead. That's
> what we used when developing the OCF code.
> >  CC [M]  /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.o
> > /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function
> > `pfkey_sa_parse':
> > /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:165: error: too
> > many arguments to function `printk_ratelimit'
> > /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:173: error: too
> > many arguments to function `printk_ratelimit'
> I am not sure where does came from. It would require some serious
> investigation.
> Paul
> --
> Building and integrating Virtual Private Networks with Openswan:
> http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155

Ankit Parikh
MS, Computer Science
University of Southern California
Los Angeles
(M) 213.448.9394
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20070718/3575811a/attachment.html 

More information about the Users mailing list