<br>I am using RHEL 5 , kernel 2.6.18-8 and openswan 2.4.9. My basic aim is to integrate OCF and Openswan. <br><br>I have integrated ocf and openswan. And it works fine....I have done this many times since last few days, but today I faced one error while following the same procedure, which I used to follow before, which I tried to debug without much success. So, I do the following and then I get the error:
<br><br>1) export KERNELSRC=/usr/src/kernels/linux-2.6.18.i386<br>2) make programs<br>3) make CONFIG_KLIPS_OCF=y install<br>4) make KERNELSRC=/lib/modules/`uname -r`/build module minstall<br><br>After I do the fourth step, I get the following....
<br><br><span style="color: rgb(102, 0, 204);">[root@localhost openswan-2.4.9]# make KERNELSRC=/lib/modules/`uname -r`/build module minstall</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">
WARNING: Kernel source /lib/modules/2.6.18-mykernel/build has already been patched with openswan-2, out of tree build might fail!</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">Building module for a 
2.6 kernel</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">make[1]: Entering directory `/usr/src/openswan-2.4.9&#39;</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">
make[2]: Entering directory `/usr/src/openswan-2.4.9&#39;</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">mkdir -p /usr/src/openswan-2.4.9/modobj26</span><br style="color: rgb(102, 0, 204);">
<span style="color: rgb(102, 0, 204);">echo ln -s -f /usr/src/openswan-2.4.9/linux/net/ipsec/des/*.S /usr/src/openswan-2.4.9/modobj26</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">ln -s -f /usr/src/openswan-
2.4.9/linux/net/ipsec/des/dx86unix.S /usr/src/openswan-2.4.9/modobj26</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">(rm -f /usr/src/openswan-2.4.9/modobj26/des; mkdir -p /usr/src/openswan-
2.4.9/modobj26/des &amp;&amp; cd /usr/src/openswan-2.4.9/modobj26/des &amp;&amp; ln -s -f /usr/src/openswan-2.4.9/linux/net/ipsec/des/* . &amp;&amp; ln -s -f Makefile.fs2_6 Makefile)</span><br style="color: rgb(102, 0, 204);">
<span style="color: rgb(102, 0, 204);">(rm -f /usr/src/openswan-2.4.9/modobj26/aes; mkdir -p /usr/src/openswan-2.4.9/modobj26/aes &amp;&amp; cd /usr/src/openswan-2.4.9/modobj26/aes &amp;&amp; ln -s -f /usr/src/openswan-2.4.9
/linux/net/ipsec/aes/* . &amp;&amp; ln -s -f Makefile.fs2_6 Makefile)</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">mkdir -p /usr/src/openswan-2.4.9/modobj26/aes</span><br style="color: rgb(102, 0, 204);">
<span style="color: rgb(102, 0, 204);">cp /usr/src/openswan-2.4.9/packaging/makefiles/module26.make /usr/src/openswan-2.4.9/modobj26/Makefile</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">
echo &quot;# &quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; /usr/src/openswan-2.4.9/modobj26/Makefile</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">echo &quot;# Local Variables: &quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; /usr/src/openswan-
2.4.9/modobj26/Makefile</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">echo &quot;# compile-command: \&quot;make -C /usr/src/openswan-2.4.9 ARCH=i386 KERNELSRC=/lib/modules/2.6.18-mykernel/build MOD26BUILDDIR=/usr/src/openswan-
2.4.9/modobj26 module26\&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; /usr/src/openswan-2.4.9/modobj26/Makefile</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">echo &quot;# End: &quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; /usr/src/openswan-
2.4.9/modobj26/Makefile</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">ln -s -f /usr/src/openswan-2.4.9/linux/net/ipsec/match*.S /usr/src/openswan-2.4.9/modobj26</span><br style="color: rgb(102, 0, 204);">
<span style="color: rgb(102, 0, 204);">make[2]: Leaving directory `/usr/src/openswan-2.4.9&#39;</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">make -C /lib/modules/2.6.18-mykernel/build&nbsp; BUILDDIR=/usr/src/openswan-
2.4.9/modobj26 SUBDIRS=/usr/src/openswan-2.4.9/modobj26 MODULE_DEF_INCLUDE=/usr/src/openswan-2.4.9/packaging/linus/config-all.h MODULE_DEFCONFIG=/usr/src/openswan-2.4.9/linux/net/ipsec/defconfig&nbsp; MODULE_EXTRA_INCLUDE= ARCH=i386 modules
</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">make[2]: Entering directory `/usr/src/kernels/linux-2.6.18.i386&#39;</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">
ln -s -f /usr/src/openswan-2.4.9/linux/net/ipsec/ipsec_init.c /usr/src/openswan-2.4.9/modobj26/ipsec_init.c</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">&nbsp; CC [M]&nbsp; /usr/src/openswan-2.4.9
/modobj26/ipsec_init.o</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">ln -s -f /usr/src/openswan-2.4.9/linux/net/ipsec/ipsec_sa.c /usr/src/openswan-2.4.9/modobj26/ipsec_sa.c</span><br style="color: rgb(102, 0, 204);">
<span style="color: rgb(102, 0, 204);">&nbsp; CC [M]&nbsp; /usr/src/openswan-2.4.9/modobj26/ipsec_sa.o</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">/usr/src/openswan-2.4.9/modobj26/ipsec_sa.c: In function ‘ipsec_sa_getbyid’:
</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">/usr/src/openswan-2.4.9/modobj26/ipsec_sa.c:505: error: implicit declaration of function ‘KLIPS_SATOT’</span><br style="color: rgb(102, 0, 204);">
<span style="color: rgb(102, 0, 204);">make[3]: *** [/usr/src/openswan-2.4.9/modobj26/ipsec_sa.o] Error 1</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">make[2]: *** [_module_/usr/src/openswan-
2.4.9/modobj26] Error 2</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">make[2]: Leaving directory `/usr/src/kernels/linux-2.6.18.i386&#39;</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">
make[1]: *** [module26] Error 2</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">make[1]: Leaving directory `/usr/src/openswan-2.4.9&#39;</span><br style="color: rgb(102, 0, 204);"><span style="color: rgb(102, 0, 204);">
make: *** [module] Error 2</span><br style="color: rgb(102, 0, 204);"><br>Sorry, forgot to do export LANG=&quot;&quot;C&quot;&quot; and that is why getting some weird symbols in the output.......too curious to solve the error...
<br><br>Have you faced this error before??&nbsp; ..I would appreciate your input and comments...<br><br>Hope to hear from you soon. Thank you.<br><br>Thanks <br><br>-- <br>Ankit Parikh<br>MS, Computer Science<br>University of Southern California
<br>Los Angeles<br>California<br>(M) 213.448.9394