[Openswan Users] KLIPS on 2.6.14 compile errors
Ken Bantoft
ken at xelerance.com
Wed Nov 16 06:08:05 CET 2005
Hi Alain,
More kernel changes breaking applications.
ixs->sport = ntohs(tw->tw_sport);
ixs->dport = ntohs(tw->tw_dport);
Are the two lines in question. This is a result of recent changes in
2.6.14, with the refactoring of code in the TCP stack, specifically the
tcp_tw_bucket struct seems to have been removed, meaning all the tw
references will now need to be #ifdef'd for 2.6.14 and higher.
http://www.linuxhq.com/kernel/v2.6/14/include/net/tcp.h
Has the diff that was applied to the kernel - alot of has changed, so it
won't be a simple fix.
Ken
On Mon, 14 Nov 2005, Alain RICHARD wrote:
> Under fedora-4, openswan 2.4.2 is unable to compile with the new kernel
> 2.6.14-1.1637_FC4, although it compile perfectly with previous kernel
> 2.6.13-1.1532_FC4. The error returned is :
>
> ln -s -f /usr/src/redhat/BUILD/openswan-2.4.2/linux/net/ipsec/ipsec_tunnel.c
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c
> CC [M] /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.s
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c: In
> function 'ipsec_tunnel_SAlookup':
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c:279:
> error: dereferencing pointer to incomplete type
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c:279:
> error: dereferencing pointer to incomplete type
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c:279:
> error: dereferencing pointer to incomplete type
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c:280:
> error: dereferencing pointer to incomplete type
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c:280:
> error: dereferencing pointer to incomplete type
> /usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.c:280:
> error: dereferencing pointer to incomplete type
> make[3]: ***
> [/usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp/ipsec_tunnel.s] Error 1
> make[2]: *** [_module_/usr/src/redhat/BUILD/openswan-2.4.2/BUILD.i386-smp]
> Error 2
> make[2]: Leaving directory `/usr/src/kernels/2.6.14-1.1637_FC4-i686'
> make[1]: *** [module26] Error 2
> make[1]: Leaving directory `/usr/src/redhat/BUILD/openswan-2.4.2'
> make: *** [module] Error 2
> make: Leaving directory `/usr/src/redhat/BUILD/openswan-2.4.2'
> erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.20813 (%build)
More information about the Users
mailing list