[Openswan Users] Do I need to patch the kernel to build OCF with Openswan?
Ankit Parikh
anks.capri20 at gmail.com
Wed Jul 18 23:34:09 EDT 2007
I recompiled the kernel(ver 2.6.18.8) and did make
KERNELSRC=/lib/modules/'uname -r'/build module minstall
I got the following err
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.18.8/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/linux-2.6.18.8'
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)
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_init.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_init.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_init.o
ln -s -f /root/openswan/openswan- 3.0.06/linux/net/ipsec/ipsec_sa.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_sa.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_sa.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_radij.c
/root/openswan/openswan- 3.0.06/modobj26/ipsec_radij.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_radij.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/radij.c
/root/openswan/openswan-3.0.06/modobj26/radij.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/radij.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_life.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_life.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_life.o
ln -s -f /root/openswan/openswan- 3.0.06/linux/net/ipsec/ipsec_proc.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_proc.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_proc.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_tunnel.c
/root/openswan/openswan- 3.0.06/modobj26/ipsec_tunnel.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_tunnel.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_xmit.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_xmit.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_xmit.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_rcv.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_rcv.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/ipsec_rcv.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_ipip.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_ipip.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_ipip.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ipsec_snprintf.c
/root/openswan/openswan-3.0.06/modobj26/ipsec_snprintf.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_snprintf.o
ln -s -f /root/openswan/openswan- 3.0.06/linux/net/ipsec/sysctl_net_ipsec.c
/root/openswan/openswan-3.0.06/modobj26/sysctl_net_ipsec.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/sysctl_net_ipsec.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/pfkey_v2.c
/root/openswan/openswan- 3.0.06/modobj26/pfkey_v2.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/pfkey_v2.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/pfkey_v2_parser.c
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parser.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parser.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/pfkey_v2_ext_process.c
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_ext_process.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/pfkey_v2_ext_process.o
sed '/"/s/xxx/3.0.06GITGITGIT/'
/root/openswan/openswan-3.0.06/linux/net/ipsec/version.in.c
>/root/openswan/openswan-3.0.06/modobj26/version.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/version.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/satot.c
/root/openswan/openswan-3.0.06/modobj26/satot.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/satot.o
ln -s -f /root/openswan/openswan- 3.0.06/linux/net/ipsec/addrtot.c
/root/openswan/openswan-3.0.06/modobj26/addrtot.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/addrtot.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ultot.c
/root/openswan/openswan- 3.0.06/modobj26/ultot.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ultot.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/addrtypeof.c
/root/openswan/openswan-3.0.06/modobj26/addrtypeof.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/addrtypeof.o
/root/openswan/openswan-3.0.06/modobj26/addrtypeof.c: In function
‘addrbytesof’:
/root/openswan/openswan-3.0.06/modobj26/addrtypeof.c:78: warning: ‘p’
may be used uninitialized in this function
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/anyaddr.c
/root/openswan/openswan-3.0.06/modobj26/anyaddr.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/anyaddr.o
ln -s -f /root/openswan/openswan-3.0.06 /linux/net/ipsec/initaddr.c
/root/openswan/openswan-3.0.06/modobj26/initaddr.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/initaddr.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/ultoa.c
/root/openswan/openswan- 3.0.06/modobj26/ultoa.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/ultoa.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/addrtoa.c
/root/openswan/openswan-3.0.06/modobj26/addrtoa.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/addrtoa.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/subnettoa.c
/root/openswan/openswan-3.0.06/modobj26/subnettoa.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/subnettoa.o
ln -s -f /root/openswan/openswan- 3.0.06/linux/net/ipsec/subnetof.c
/root/openswan/openswan-3.0.06/modobj26/subnetof.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/subnetof.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/goodmask.c
/root/openswan/openswan- 3.0.06/modobj26/goodmask.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/goodmask.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/datatot.c
/root/openswan/openswan-3.0.06/modobj26/datatot.c
CC [M] /root/openswan/openswan- 3.0.06/modobj26/datatot.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/rangetoa.c
/root/openswan/openswan-3.0.06/modobj26/rangetoa.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/rangetoa.o
ln -s -f /root/openswan/openswan- 3.0.06/linux/net/ipsec/prng.c
/root/openswan/openswan-3.0.06/modobj26/prng.c
CC [M] /root/openswan/openswan-3.0.06/modobj26/prng.o
ln -s -f /root/openswan/openswan-3.0.06/linux/net/ipsec/pfkey_v2_parse.c
/root/openswan/openswan- 3.0.06/modobj26/pfkey_v2_parse.c
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/linux-2.6.18.8'
make[1]: *** [module26] Error 2
make[1]: Leaving directory `/root/openswan/openswan-3.0.06'
make: *** [module] Error 2
This is the same error which i got before...Not able to figure out !!! Plz
help..
Thanks
Ankit
On 7/18/07, Paul Wouters <paul at xelerance.com> wrote:
>
> On Wed, 18 Jul 2007, Ankit Parikh wrote:
>
> > same version of the kernel? Which one is recommended...
>
> You are goingto build openswan with OCF for the 2.6.18.8 kernel. Yes, I
> would use the 2.6.18.8 kernel for that.
>
> I am afraid you might be a bit in over you head trying to make OCF to
> work.
>
> Paul
>
> > > On 7/18/07, Paul Wouters <paul at xelerance.com> wrote:
> > > >
> > > > On Wed, 18 Jul 2007, Ankit Parikh wrote:
> > > >
> > > > > I am now using 2.6.18.8 version of the kernel now...
> > > > >
> > > > > Now i did make KERNELSRC=/lib/modules/'uname -r'/build module
> minstall
> > > >
> > > >
> > > > > and got the following error:
> > > >
> > > > > 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...
> > > >
> > > > That is because you don't have an RHEL5 kernel package installed. If
> you
> > > > are compiling a custom kernel from source, then point KERNELSRC= to
> that
> > > > source directory.
> > > >
> > > > > 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.
> > > >
> > > >
> > > > You will have to recompile your own kernel.
> > > >
> > > > Paul
> > > >
> > >
> > >
> > >
> > > --
> > > Ankit Parikh
> > > MS, Computer Science
> > > University of Southern California
> > > Los Angeles
> > > California
> > > (M) 213.448.9394
> > >
> >
> >
> >
> >
>
> --
> 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
California
(M) 213.448.9394
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20070718/479bde42/attachment-0001.html
More information about the Users
mailing list