[Openswan Users] Instrucctions in how to compile in kernel 2.4.x
Oliver Schulze L.
oliver at samera.com.py
Fri May 19 20:42:13 CEST 2006
Hi,
I'm trying to compile openswan 2.4.5 on kernel 2.4.21
The problem I have is that openswan does not compile.
I followed the instructions ins:
openswan-2.4.5/README
openswan-2.4.5/INSTALL
http://wiki.openswan.org/index.php/Installing
http://wiki.openswan.org/index.php/Building%20from%20tarballs%20for%202.4
The main problem I found is:
- in all docs, it says that the nat patch is optional, so I didn't use it
- in all docs, there no single word about applying any other patch other
than the nat patch.
So, it is not clear on to apply this patch:
openswan-2.4.5.kernel-2.4-klips.patch.gz
and for what it is for.
- the compile instructions from the README file fails to compile
The compile output after following the README file is:
make KERNELSRC=/usr/src/linux-2.4 programs
ok
make KERNELSRC=/usr/src/linux-2.4 module
WARNING: Kernel source /usr/src/linux-2.4 has already been patched with
openswan-2, out of tree build might fail!
Building module for a 2.4 kernel
make[1]: Entering directory `/root/openswan-2.4.5'
make[2]: Entering directory `/root/openswan-2.4.5'
make[2]: `/root/openswan-2.4.5/modobj/Makefile' is up to date.
make[2]: Leaving directory `/root/openswan-2.4.5'
make -C /root/openswan-2.4.5/modobj OPENSWANSRCDIR=/root/openswan-2.4.5
ARCH=i386 KLIPSMODULE=true -f
/root/openswan-2.4.5/linux/net/ipsec/defconfig
MODULE_DEF_INCLUDE=/root/openswan-2.4.5/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 `/root/openswan-2.4.5/modobj'
cc -include /root/openswan-2.4.5/packaging/linus/config-all.h -O3 -Wall
-DIPCOMP_PREFIX -D__KERNEL__ -I/usr/src/linux-2.4.21-27.0.1.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=i586
-I/root/openswan-2.4.5/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.1.EL/include/linux/modversions.h
-DKBUILD_BASENAME=ipsec_init -c -o ipsec_init.o
/root/openswan-2.4.5/linux/net/ipsec/ipsec_init.c
/root/openswan-2.4.5/linux/net/ipsec/ipsec_init.c: In function
`openswan_inet_add_protocol':
/root/openswan-2.4.5/linux/net/ipsec/ipsec_init.c:162: too few arguments
to function `inet_add_protocol'
/root/openswan-2.4.5/linux/net/ipsec/ipsec_init.c: In function
`openswan_inet_del_protocol':
/root/openswan-2.4.5/linux/net/ipsec/ipsec_init.c:169: too few arguments
to function `inet_del_protocol'
make[2]: *** [ipsec_init.o] Error 1
make[2]: Leaving directory `/root/openswan-2.4.5/modobj'
make[1]: *** [module24] Error 2
make[1]: Leaving directory `/root/openswan-2.4.5'
make: *** [module] Error 2
I'm willing to write a simple howto about building openswan for a 2.4.x
kernel, but
I'm stuck here.
I'm sure it is a problem with my system, I have RHEL/CentOS 3.4 stock
installed.
Maybe there is a problem with the includes.
Any help is welcome
Many thanks
Oliver
--
Oliver Schulze L.
<oliver at samera.com.py>
More information about the Users
mailing list