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

Ankit Parikh anks.capri20 at gmail.com
Wed Jul 18 14:58:16 EDT 2007


Now, I have kernel 2.6.11 and openswan 3.0.06(RHEL 4)

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

here is what i got:


root at localhost openswan-3.0.06]#  make KERNELSRC=/lib/modules/`uname
-r`/build module minstall
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
Building module for a 2.6 kernel
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
make[1]: Entering directory `/root/openswan/openswan-3.0.06'
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
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.11/build
BUILDDIR=/root/openswan/openswan-3.0.06/modobj26
SUBDIRS=/root/openswan/openswan-3.0.06/modobj26
MODULE_DEF_INCLUDE=/root/openswan/openswan-3.0.06/packaging/linus/config-
all.h MODULE_DEFCONFIG=/root/openswan/openswan-3.0.06/linux/net/ipsec/defconfig
MODULE_EXTRA_INCLUDE= ARCH=i386 modules
make[2]: Entering directory `/root/Desktop/linux-2.6.11'
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_init.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_sa.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_radij.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/radij.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_life.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_proc.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_tunnel.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_xmit.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_rcv.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_ipip.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ipsec_snprintf.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/sysctl_net_ipsec.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/pfkey_v2.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parser.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_ext_process.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/version.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/satot.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/addrtot.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ultot.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/addrtypeof.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/anyaddr.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/initaddr.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/ultoa.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/addrtoa.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/subnettoa.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/subnetof.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/goodmask.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/datatot.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/rangetoa.o
  CC [M]  /root/openswan/openswan-3.0.06/modobj26/prng.o
  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'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:194: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:205: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:215: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:224: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:234: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:244: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function
`pfkey_address_parse':
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:331: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:340: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:349: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:369: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:416: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:425: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:435: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function
`pfkey_key_parse':
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:458: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:465: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:474: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:483: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:492: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:501: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function
`pfkey_ident_parse':
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:529: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:538: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:547: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:557: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:568: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function
`pfkey_msg_parse':
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1238: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1246: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1252: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1268: error: too
many arguments to function `printk_ratelimit'
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1364: error: too
many arguments to function `printk_ratelimit'
make[3]: *** [/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.o]
Error 1
make[2]: *** [_module_/root/openswan/openswan-3.0.06/modobj26] Error 2
make[2]: Leaving directory `/root/Desktop/linux-2.6.11'
make[1]: *** [module26] Error 2
make[1]: Leaving directory `/root/openswan/openswan-3.0.06'
make: *** [module] Error 2

What could be the problem?

Regards,
Ankit

On 7/18/07, Paul Wouters <paul at xelerance.com> wrote:
>
> On Wed, 18 Jul 2007, David McCullough wrote:
>
> > Jivin Ankit Parikh lays it down ...
> > > That's where I am stuck.
> > >
> > > I am using RHEL 5(kernel 2.6.18), Openswan (3.0.06).
> > >
> > > I have configured openswan now, but the KLIPS support is pending. I
> mean, I
> > > did make KERNELSRC=/lib/modules/'uname -r'/build module minstall  and
> got
> > > errors !! So, that portion is remaining.
> > >
> > > So, do I need to apply patches separately, or make programs and make
> install
> > > would do it for me?
> >
> > I can't recall your errors,  but I would look at what "make kpatch"
> > does. You do need to patch your 2.6 kernel but I am not sure of the
> > details since I do not use openswan that way, paul or someone in the
> > know will probably sort you out ;-)
>
> Using `uname -r` instead of 'uname -r' (note the quotes vs backticks) will
> be a
> start.
>
> Paul
>



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


More information about the Users mailing list