Now, I have kernel 2.6.11 and openswan 3.0.06(RHEL 4)<br><br>I did <span style="font-weight: bold;">make KERNELSRC=/lib/modules/'uname -r'/build module minstall<br><br><span style="font-weight: bold;"></span></span>
here is what i got:<br><br><br><span style="color: rgb(51, 102, 255);">root@localhost openswan-3.0.06]# make KERNELSRC=/lib/modules/`uname -r`/build module minstall</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
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)</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
Building module for a 2.6 kernel</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">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)
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[1]: Entering directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
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)</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
make[2]: Entering directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[2]: `/root/openswan/openswan-3.0.06/modobj26/Makefile' is up to date.
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[2]: Leaving directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
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</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[2]: Entering directory `/root/Desktop/linux-2.6.11'</span>
<br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">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)</span>
<br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_init.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_sa.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_radij.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/radij.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06
/modobj26/ipsec_life.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_proc.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_tunnel.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_xmit.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_rcv.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06
/modobj26/ipsec_ipip.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ipsec_snprintf.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
CC [M] /root/openswan/openswan-3.0.06/modobj26/sysctl_net_ipsec.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/pfkey_v2.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parser.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_ext_process.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/version.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/satot.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06
/modobj26/addrtot.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/ultot.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
CC [M] /root/openswan/openswan-3.0.06/modobj26/addrtypeof.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/anyaddr.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/initaddr.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06
/modobj26/ultoa.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/addrtoa.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
CC [M] /root/openswan/openswan-3.0.06/modobj26/subnettoa.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/subnetof.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/goodmask.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06
/modobj26/datatot.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/rangetoa.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
CC [M] /root/openswan/openswan-3.0.06/modobj26/prng.o</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);"> CC [M] /root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.o</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function `pfkey_sa_parse':</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:165: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:173: error: too many arguments to function `printk_ratelimit'
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:194: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:205: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:215: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:224: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:234: error: too many arguments to function `printk_ratelimit'
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:244: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function `pfkey_address_parse':</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:331: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:340: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:349: error: too many arguments to function `printk_ratelimit'
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:369: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:416: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:425: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:435: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function `pfkey_key_parse':
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:458: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:465: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:474: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:483: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:492: error: too many arguments to function `printk_ratelimit'
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:501: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c: In function `pfkey_ident_parse':</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:529: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:538: error: too many arguments to function `printk_ratelimit'
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:547: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:557: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:568: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c: In function `pfkey_msg_parse':</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1238: error: too many arguments to function `printk_ratelimit'
</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1246: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1252: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
/root/openswan/openswan-3.0.06/modobj26/pfkey_v2_parse.c:1268: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.c:1364: error: too many arguments to function `printk_ratelimit'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[3]: *** [/root/openswan/openswan-
3.0.06/modobj26/pfkey_v2_parse.o] Error 1</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[2]: *** [_module_/root/openswan/openswan-3.0.06/modobj26] Error 2</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">make[2]: Leaving directory `/root/Desktop/linux-2.6.11'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[1]: *** [module26] Error 2</span>
<br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">make[1]: Leaving directory `/root/openswan/openswan-3.0.06'</span><br style="color: rgb(51, 102, 255);"><span style="color: rgb(51, 102, 255);">
make: *** [module] Error 2</span><br><br>What could be the problem? <br><br>Regards,<br>Ankit<span style="font-weight: bold;"><span style="font-weight: bold;"></span><br></span><br><div><span class="gmail_quote">On 7/18/07,
<b class="gmail_sendername">Paul Wouters</b> <<a href="mailto:paul@xelerance.com">paul@xelerance.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 18 Jul 2007, David McCullough wrote:<br><br>> Jivin Ankit Parikh lays it down ...<br>> > That's where I am stuck.<br>> ><br>> > I am using RHEL 5(kernel 2.6.18), Openswan (3.0.06).<br>> >
<br>> > I have configured openswan now, but the KLIPS support is pending. I mean, I<br>> > did make KERNELSRC=/lib/modules/'uname -r'/build module minstall and got<br>> > errors !! So, that portion is remaining.
<br>> ><br>> > So, do I need to apply patches separately, or make programs and make install<br>> > would do it for me?<br>><br>> I can't recall your errors, but I would look at what "make kpatch"
<br>> does. You do need to patch your 2.6 kernel but I am not sure of the<br>> details since I do not use openswan that way, paul or someone in the<br>> know will probably sort you out ;-)<br><br>Using `uname -r` instead of 'uname -r' (note the quotes vs backticks) will be a
<br>start.<br><br>Paul<br></blockquote></div><br><br clear="all"><br>-- <br>Ankit Parikh<br>MS, Computer Science<br>University of Southern California<br>Los Angeles<br>California<br>(M) 213.448.9394