Hello! I get the following error when I try to compile freeswan 2.01 with kernel 2.4.21:
> make[3]: Entering directory `/usr/src/kernel-source-2.4.21/net/ipsec' > gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe > -mpreferred-stack-boundary=2 -march=i686 -DIPCOMP_PREFIX -I../../include > -I/usr/src/kernel-source-2.4.21/include -I../../lib/zlib -Wall -D__KERNEL__ > -I/usr/src/kernel-source-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 > -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe > -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include > -DKBUILD_BASENAME=ipsec_init -c -o ipsec_init.o ipsec_init.c > ipsec_init.c: In function `ipsec_init': > ipsec_init.c:171: error: too few arguments to function `inet_add_protocol' > ipsec_init.c:175: error: too few arguments to function `inet_add_protocol' > ipsec_init.c: In function `ipsec_cleanup': > ipsec_init.c:219: error: too few arguments to function `inet_del_protocol' > ipsec_init.c:224: error: too few arguments to function `inet_del_protocol' > make[3]: *** [ipsec_init.o] Error 1 > make[3]: Leaving directory `/usr/src/kernel-source-2.4.21/net/ipsec' > make[2]: *** [_subdir_ipsec] Error 2 > make[2]: Leaving directory `/usr/src/kernel-source-2.4.21/net' > make[1]: *** [_dir_net] Error 2 > make[1]: Leaving directory `/usr/src/kernel-source-2.4.21' > packaging/utils/errcheck out.kbuild > > ***ERRORS DETECTED in out.kbuild (examine file for details): > ipsec_init.c:171: error: too few arguments to function `inet_add_protocol' > ipsec_init.c:175: error: too few arguments to function `inet_add_protocol' > ipsec_init.c:219: error: too few arguments to function `inet_del_protocol' > ipsec_init.c:224: error: too few arguments to function `inet_del_protocol' > make[3]: *** [ipsec_init.o] Error 1 > make[2]: *** [_subdir_ipsec] Error 2 > make[1]: *** [_dir_net] Error 2 > > make: *** [kernel] Error 1 The kernel alone (without freeswan) compiles without any problems. Can somebody help me? Dirk
