[Openswan Users] Openswan 2.3.1, RHEL 3, interface ipsec0

Morgan Marodin mmarodin at develon.com
Mon Apr 11 11:31:27 CEST 2005


Hi.

How can I obtain interface ipsec0 in my RHEL 3 with kernel 2.4.21-27.0.2.EL?
When I try to compile the module part:
-------------------------------------------------------------------------------------------------------------------------------------------
[mork at ogre openswan-2.3.1]$ make module
...
...
...
make[2]: Leaving directory `/home/mork/download3/openswan-2.3.1'
make -C 
/home/mork/download3/openswan-2.3.1/modobj 
OPENSWANSRCDIR=/home/mork/download3/openswan-2.3.1 ARCH=i386 
KLIPSMODULE=true -f 
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/defconfig 
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
/usr/src/linux-2.4/scripts/pathdown.sh: line 4: TOPDIR: parameter null or 
not set
make[2]: Entering directory `/home/mork/download3/openswan-2.3.1/modobj'
cc  -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  -I -DIPCOMP_PREFIX -DARCH=i386  -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 
-DKBUILD_BASENAME=ipsec_init  -c -o ipsec_init.o 
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c: In 
function `openswan_inet_add_protocol':
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c:154: too 
few arguments to function `inet_add_protocol_R712ef7bc'
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c: In 
function `openswan_inet_del_protocol':
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/ipsec_init.c:161: too 
few arguments to function `inet_del_protocol_Rbb6fa440'
make[2]: *** [ipsec_init.o] Error 1
make[2]: Leaving directory `/home/mork/download3/openswan-2.3.1/modobj'
make[1]: *** [module24] Error 2
make[1]: Leaving directory `/home/mork/download3/openswan-2.3.1'
make: *** [module] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------

If I try with module26:
-------------------------------------------------------------------------------------------------------------------------------------------
[mork at ogre openswan-2.3.1]$ make module26
/bin/sh: line 1:  : command not found
make[1]: Entering directory `/home/mork/download3/openswan-2.3.1'
mkdir -p /home/mork/download3/openswan-2.3.1/modobj26
echo ln -s -f /home/mork/download3/openswan-2.3.1/linux/net/ipsec/des/*.S 
/home/mork/download3/openswan-2.3.1/modobj26
ln -s -f /home/mork/download3/openswan-2.3.1/linux/net/ipsec/des/dx86unix.S 
/home/mork/download3/openswan-2.3.1/modobj26
(rm -f /home/mork/download3/openswan-2.3.1/modobj26/des; mkdir -p 
/home/mork/download3/openswan-2.3.1/modobj26/des && cd 
/home/mork/download3/openswan-2.3.1/modobj26/des && ln -s -f 
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/des/* . && ln -s -f 
Makefile.fs2_6 Makefile)
(rm -f /home/mork/download3/openswan-2.3.1/modobj26/aes; mkdir -p 
/home/mork/download3/openswan-2.3.1/modobj26/aes && cd 
/home/mork/download3/openswan-2.3.1/modobj26/aes && ln -s -f 
/home/mork/download3/openswan-2.3.1/linux/net/ipsec/aes/* . && ln -s -f 
Makefile.fs2_6 Makefile)
mkdir -p /home/mork/download3/openswan-2.3.1/modobj26/aes
cp /home/mork/download3/openswan-2.3.1/packaging/makefiles/module26.make 
/home/mork/download3/openswan-2.3.1/modobj26/Makefile
echo "# "                        >> 
/home/mork/download3/openswan-2.3.1/modobj26/Makefile
echo "# Local Variables: "       >> 
/home/mork/download3/openswan-2.3.1/modobj26/Makefile
echo "# compile-command: \"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\""         >> /home/mork/download3/openswan-2.3.1/modobj26/Makefile
echo "# End: "       >> /home/mork/download3/openswan-2.3.1/modobj26/Makefile
ln -s -f /home/mork/download3/openswan-2.3.1/linux/net/ipsec/match*.S 
/home/mork/download3/openswan-2.3.1/modobj26
make[1]: Leaving directory `/home/mork/download3/openswan-2.3.1'
make -C 
/usr/src/linux-2.4  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
make[1]: Entering directory `/usr/src/linux-2.4.21-27.0.2.EL'
make -r -f tmp_include_depends all
make[2]: Entering directory `/usr/src/linux-2.4.21-27.0.2.EL'
make[2]: Circular /usr/src/linux-2.4.21-27.0.2.EL/include/asm/smplock.h <- 
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/interrupt.h dependency dropped.
make[2]: Circular 
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/netfilter_ipv4/ip_conntrack_helper.h 
<- 
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/netfilter_ipv4/ip_conntrack.h 
dependency dropped.
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/linux-2.4.21-27.0.2.EL'
make -C  /home/mork/download3/openswan-2.3.1/modobj26 CFLAGS="-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 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.21-27.0.2.EL/include/linux/modversions.h" 
MAKING_MODULES=1 modules
make[2]: Entering directory `/home/mork/download3/openswan-2.3.1/modobj26'
make[2]: *** No rule to make target `modules'.  Stop.
make[2]: Leaving directory `/home/mork/download3/openswan-2.3.1/modobj26'
make[1]: *** [_mod_/home/mork/download3/openswan-2.3.1/modobj26] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21-27.0.2.EL'
make: *** [module26] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------

Thanks, Morgan 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20050411/67894be5/attachment.htm


More information about the Users mailing list