[Openswan Users] kernel 2.4.31 + KLIPS patch compilation error
Ethy H. Brito
ethy.brito at inexo.com.br
Wed Oct 5 11:31:02 CEST 2005
On Wed, 5 Oct 2005 09:53:32 -0300
"Ethy H. Brito" <ethy.brito at inexo.com.br> wrote:
>
> Dears
>
> OpenSwan-2.4.2-dr1
> Kernel 2.4.31 with KLIPS patch applied.
>
> When making modules:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.31/include -Wall -Wstrict-prototypes -Wno-
> trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpref
> erred-stack-boundary=2 -march=i486 -DMODULE -DIPCOMP_PREFIX -nostdinc -iwithpre
> fix include -DKBUILD_BASENAME=ipsec_rcv -c -o ipsec_rcv.o ipsec_rcv.c
> ipsec_rcv.c: In function `ipsec_rcv_natt_decap':
> ipsec_rcv.c:1266: error: structure has no member named `natt_sport'
> ipsec_rcv.c:1267: error: structure has no member named `natt_dport'
> ipsec_rcv.c:1292: error: structure has no member named `natt_type'
> ipsec_rcv.c:1293: error: structure has no member named `natt_len'
> ipsec_rcv.c:1299: error: structure has no member named `natt_type'
> ipsec_rcv.c:1300: error: structure has no member named `natt_len'
> make[2]: *** [ipsec_rcv.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.31/net/ipsec'
> make[1]: *** [_modsubdir_ipsec] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.31/net'
> make: *** [_mod_net] Error 2
>
> How to solve this??
Too late. I solve it myself. Both patches MUST be applied since there is no
protection (#ifdef...ednif) around KLIPS patch NATT code.
So, one must apply KLIPS and NATT patch so the kernel compiles cleanly.
Applying just KLIPS is not enougth.
Regards
Ethy
More information about the Users
mailing list