[Openswan Users] Openswan 2.4.0 and 2.4 Kernel

Ethy H. Brito ethy.brito at inexo.com.br
Tue Oct 4 15:42:14 CEST 2005


On Tue, 4 Oct 2005 19:37:02 +0200 (CEST)
Paul Wouters <paul at xelerance.com> wrote:

I run to this a few hours ago. And also submited a BUG report.

pfkey_sock_lock is only defined in 2.6 kernels and it is used umprotected 
in pfkey_v2.

There should be a 'ifdef NET_26' around its use.

Paul, I think there should be an equivalent code for line 824 
for kernels <=2.4 there.

Regards

Ethy


> On Tue, 4 Oct 2005, John Bass wrote:
> 
> > Tried that, got the following error
> 
> > /usr/src/linux-2.4.31/include/linux/modversions.h
> > -DKBUILD_BASENAME=pfkey_v2  -c -o pfkey_v2.o
> > /home/john/Freeswan/openswan-2.4.1dr1/linux/net/ipsec/pfkey_v2.c
> > /home/john/Freeswan/openswan-2.4.1dr1/linux/net/ipsec/pfkey_v2.c: In
> > function `pfkey_release':
> > /home/john/Freeswan/openswan-2.4.1dr1/linux/net/ipsec/pfkey_v2.c:824:
> > `pfkey_sock_lock' undeclared (first use in this function)
> > /home/john/Freeswan/openswan-2.4.1dr1/linux/net/ipsec/pfkey_v2.c:824: (Each
> > undeclared identifier is reported only once
> > /home/john/Freeswan/openswan-2.4.1dr1/linux/net/ipsec/pfkey_v2.c:824: for
> > each function it appears in.)
> > make[2]: *** [pfkey_v2.o] Error 1
> > make[2]: Leaving directory `/home/john/Freeswan/openswan-2.4.1dr1/modobj'
> > make[1]: *** [module24] Error 2
> > make[1]: Leaving directory `/home/john/Freeswan/openswan-2.4.1dr1'
> > make: *** [module] Error 2
> 
> hmm. Can you try to checkout the CVS v2_4_x tree and see if that works for you?
> 
> cvs -d :pserver:anoncvs at anoncvs.openswan.org:/public/cvs login
> cvs -d :pserver:anoncvs at anoncvs.openswan.org:/public/cvs co -r v2_4_X openswan-2
> 
> Paul
> _______________________________________________
> Users mailing list
> Users at openswan.org
> http://lists.openswan.org/mailman/listinfo/users


More information about the Users mailing list