<html>
<body>
Hi.<br><br>
How can I obtain interface <i>ipsec0</i> in my RHEL 3 with kernel
2.4.21-27.0.2.EL?<br>
When I try to compile the module part:<br>
-------------------------------------------------------------------------------------------------------------------------------------------<br>
[mork@ogre openswan-2.3.1]$ make module<br>
...<br>
...<br>
...<br>
make[2]: Leaving directory `/home/mork/download3/openswan-2.3.1'<br>
make -C /home/mork/download3/openswan-2.3.1/modobj&nbsp;
OPENSWANSRCDIR=/home/mork/download3/openswan-2.3.1 ARCH=i386
KLIPSMODULE=true -f
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/defconfig&nbsp;
MODULE_DEF_INCLUDE=/home/mork/download3/openswan-2.3.1/packaging/linus/config-all.h
TOPDIR=/usr/src/linux-2.4 -f Makefile ipsec.o<br>
/usr/src/linux-2.4/scripts/pathdown.sh: line 4: TOPDIR: parameter null or
not set<br>
make[2]: Entering directory
`/home/mork/download3/openswan-2.3.1/modobj'<br>
cc&nbsp; -include
/home/mork/download3/openswan-2.3.1/packaging/linus/config-all.h -O3
-Wall -DIPCOMP_PREFIX -D__KERNEL__
-I/usr/src/linux-2.4.21-27.0.2.EL/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused
-fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2
-march=i686 -I/home/mork/download3/openswan-2.3.1/linux/include
-I/usr/src/linux-2.4/include&nbsp; -I -DIPCOMP_PREFIX -DARCH=i386&nbsp;
-DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/modversions.h&nbsp;&nbsp;
-DKBUILD_BASENAME=ipsec_init&nbsp; -c -o ipsec_init.o
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c<br>
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c: In
function `openswan_inet_add_protocol':<br>
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c:154: too
few arguments to function `inet_add_protocol_R712ef7bc'<br>
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c: In
function `openswan_inet_del_protocol':<br>
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c:161: too
few arguments to function `inet_del_protocol_Rbb6fa440'<br>
make[2]: *** [ipsec_init.o] Error 1<br>
make[2]: Leaving directory
`/home/mork/download3/openswan-2.3.1/modobj'<br>
make[1]: *** [module24] Error 2<br>
make[1]: Leaving directory `/home/mork/download3/openswan-2.3.1'<br>
make: *** [module] Error 2<br>
-------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
If I try with <i>module26</i>:<br>
-------------------------------------------------------------------------------------------------------------------------------------------<br>
[mork@ogre openswan-2.3.1]$ make module26<br>
/bin/sh: line 1:&nbsp; : command not found<br>
make[1]: Entering directory `/home/mork/download3/openswan-2.3.1'<br>
mkdir -p /home/mork/download3/openswan-2.3.1/modobj26<br>
echo ln -s -f /home/mork/download3/openswan-2.3.1/linux/net/ipsec/des/*.S
/home/mork/download3/openswan-2.3.1/modobj26<br>
ln -s -f
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/des/dx86unix.S
/home/mork/download3/openswan-2.3.1/modobj26<br>
(rm -f /home/mork/download3/openswan-2.3.1/modobj26/des; mkdir -p
/home/mork/download3/openswan-2.3.1/modobj26/des &amp;&amp; cd
/home/mork/download3/openswan-2.3.1/modobj26/des &amp;&amp; ln -s -f
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/des/* . &amp;&amp; ln
-s -f Makefile.fs2_6 Makefile)<br>
(rm -f /home/mork/download3/openswan-2.3.1/modobj26/aes; mkdir -p
/home/mork/download3/openswan-2.3.1/modobj26/aes &amp;&amp; cd
/home/mork/download3/openswan-2.3.1/modobj26/aes &amp;&amp; ln -s -f
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/aes/* . &amp;&amp; ln
-s -f Makefile.fs2_6 Makefile)<br>
mkdir -p /home/mork/download3/openswan-2.3.1/modobj26/aes<br>
cp /home/mork/download3/openswan-2.3.1/packaging/makefiles/module26.make
/home/mork/download3/openswan-2.3.1/modobj26/Makefile<br>
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; /home/mork/download3/openswan-2.3.1/modobj26/Makefile<br>
echo &quot;# Local Variables: &quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt; /home/mork/download3/openswan-2.3.1/modobj26/Makefile<br>
echo &quot;# compile-command: \&quot;make -C
/home/mork/download3/openswan-2.3.1 ARCH=i386
KERNELSRC=/usr/src/linux-2.4
MOD26BUILDDIR=/home/mork/download3/openswan-2.3.1/modobj26
module26\&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&gt;&gt; /home/mork/download3/openswan-2.3.1/modobj26/Makefile<br>
echo &quot;# End: &quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;
/home/mork/download3/openswan-2.3.1/modobj26/Makefile<br>
ln -s -f /home/mork/download3/openswan-2.3.1/linux/net/ipsec/match*.S
/home/mork/download3/openswan-2.3.1/modobj26<br>
make[1]: Leaving directory `/home/mork/download3/openswan-2.3.1'<br>
make -C /usr/src/linux-2.4&nbsp;
BUILDDIR=/home/mork/download3/openswan-2.3.1/modobj26
SUBDIRS=/home/mork/download3/openswan-2.3.1/modobj26
MODULE_DEF_INCLUDE=/home/mork/download3/openswan-2.3.1/packaging/linus/config-all.h
ARCH=i386 modules<br>
make[1]: Entering directory `/usr/src/linux-2.4.21-27.0.2.EL'<br>
make -r -f tmp_include_depends all<br>
make[2]: Entering directory `/usr/src/linux-2.4.21-27.0.2.EL'<br>
make[2]: Circular /usr/src/linux-2.4.21-27.0.2.EL/include/asm/smplock.h
&lt;- /usr/src/linux-2.4.21-27.0.2.EL/include/linux/interrupt.h
dependency dropped.<br>
make[2]: Circular
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/netfilter_ipv4/ip_conntrack_helper.h
&lt;-
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/netfilter_ipv4/ip_conntrack.h
dependency dropped.<br>
make[2]: Nothing to be done for `all'.<br>
make[2]: Leaving directory `/usr/src/linux-2.4.21-27.0.2.EL'<br>
make -C&nbsp; /home/mork/download3/openswan-2.3.1/modobj26
CFLAGS=&quot;-D__KERNEL__ -I/usr/src/linux-2.4.21-27.0.2.EL/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common&nbsp; -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/modversions.h&quot;
MAKING_MODULES=1 modules<br>
make[2]: Entering directory
`/home/mork/download3/openswan-2.3.1/modobj26'<br>
make[2]: *** No rule to make target `modules'.&nbsp; Stop.<br>
make[2]: Leaving directory
`/home/mork/download3/openswan-2.3.1/modobj26'<br>
make[1]: *** [_mod_/home/mork/download3/openswan-2.3.1/modobj26] Error
2<br>
make[1]: Leaving directory `/usr/src/linux-2.4.21-27.0.2.EL'<br>
make: *** [module26] Error 2<br>
-------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
Thanks, Morgan</body>
</html>