> -----Original Message----- > From: Sam Sgro [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 6 August 2003 04:09 > To: Dirk Leinenbach; [EMAIL PROTECTED] > Subject: Re: [Users] problem with freeswan 2.01 and kernel > 2.4.21 under debian > > > -----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/msg00 548.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. There are currently problems in testing and unstable compiling kernel.org sources for 2.4.20 & 2.4.21, due to the use of the new gcc 3.? Package. I think you can compile them using gcc 2.9x but this needs to be installed and also specified at compile time. The package that Rene has released will compile and work against debian package kernel-source 2.4.20, but as of last week their was a problem with the /usr/lib/ipsec/plutorun script looking for the ipsec & pluto executeables in /usr/libexec/ipsec which didn't exist. This can be overcome, with a little modification of the script or addition relevant symlinks. I can personally verify that it works fine after this. I also found that Rene's package will not will not compile against 2.4.21. Cheers, Lewis _______________________________________________ FreeS/WAN Users mailing list [EMAIL PROTECTED] https://mj2.freeswan.org/cgi-bin/mj_wwwusr
