Hi! thanks for your answer. Didn't knew before that there is a debian specific freeswan package. Added non-US tree to my apt/sources.conf and know it works.
> -----BEGIN PGP SIGNED MESSAGE----- > On Tuesday 05 August 2003 11:14, Dirk Leinenbach wrote: >> 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' > I'm using a RedHat system, and I'm able to compile ipsec modules using the > 2.4.21 kernel without a problem. > The specific problem you're mentioning seems to be similar to that talked > about here: > http://lists.debian.org/debian-powerpc/2003/debian-powerpc-200307/msg00548.html > (excerpt) >> .... but in 2.4.21 (contrary to 2.4.20), inet_add_protocol has a second >> argument: /usr/src/kernel-source-2.4.21/include/net/protocol.h >> contains >> >> extern int inet_add_protocol(struct inet_protocol *prot, unsigned char num); > That doesn't appear to be a true statement; when I look through kernel.org's > 2.4.21, inet_add_protocol only takes one argument. > include/net/protocol.h:96:extern void inet_add_protocol(struct inet_protocol > *prot); > ... so perhaps debian's 2.4.21 kernel-source package has that modification. > You may be better off using one of debian's FreeS/WAN packages, instead; I > see that Rene just released 2.01-1. > http://lists.debian.org/debian-devel-changes/2003/debian-devel-changes-200307/msg02099.html > Alternatively, compile 2.4.21 from kernel.org sources. _______________________________________________ FreeS/WAN Users mailing list [EMAIL PROTECTED] https://mj2.freeswan.org/cgi-bin/mj_wwwusr
