[Openswan Users] Problem to install openswan with Kernel 2.4

Paul Wouters paul at xelerance.com
Mon Apr 18 16:04:18 CEST 2005

> make dep
> make clean
> make bzImage
> make modules, here came the next error
> ostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_tunnel  -c -o
> ipsec_tunnel.o ipsec_tunnel.c
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-286/include  -Wall -Wstrict-prototy
> pes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
> -fno-unit-at-a-time -pipe -msoft-float -mpreferred-stack-boundary=2 -march=
> athlon -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4.21-286/include/linux/modversions.h -DIPCOMP_PREFIX  -I../
> ../include -I/usr/src/linux-2.4.21-286/include  -I../../lib/zlib -DCONFIG_IP
> SEC_ALG  -Wall -D__KERNEL__ -I/usr/src/linux-2.4.21-286/include -Wall -Wstri
> ct-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-fra
> me-pointer -fno-unit-at-a-time -pipe -msoft-float -mpreferred-stack-boundary
> =2 -march=athlon -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4.21-286/include/linux/modversions.h -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=ipsec_xmit  -c -o ipsec_xmit.o ipsec_xmit.c
> ipsec_xmit.c: In function `ipsec_xmit_encap_once':
> ipsec_xmit.c:919: error: too many arguments to function
> `ip_select_ident_Rd603b6c5'
> make[2]: *** [ipsec_xmit.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.21-286/net/ipsec'
> make[1]: *** [_modsubdir_ipsec] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.21-286/net'
> make: *** [_mod_net] Error 2

Can you make a plain kernel, without ipsec patches in the source tree.
Once that builds a kernel fine, please do:

cd openswan-2
make KERNELSRC=/usr/src/linux-2.4.21-286 module minstall

If that also works, add nat-traversal if needed:

make nattpatch > /usr/src/linux-2.4.21-286/nat-patch
cd /usr/src/linux-2.4.21-286
cat nat-patch | patch -s -p1 
make oldconfig [say yes to CONFIG_IPSEC_NAT_TRAVERSAL]
make dep bzImage modules modules_install


> Lennart
> _______________________________________________
> Users mailing list
> Users at openswan.org
> http://lists.openswan.org/mailman/listinfo/users


As time passes hardware approaches the effectiveness of a rock and
the reliability of a crack addict.
                                      --- Naubert's law

More information about the Users mailing list