[Openswan Users] Openswan 2.6.24 - KLIPS compile error on CentOS 5.4
Maverick
maverick.pt at gmail.com
Fri Feb 5 16:48:33 EST 2010
Hi, I'm trying to compile openswan 2.6.24 klips module on CentOS 5.4
kernel-2.6.18-164.11.1.el5.centos.plus.i686, but I get this error:
CC [M] /usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.o
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function
'klips_header':
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:249: error:
'struct net_device' has no member named 'header_ops'
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function
'klips_header_parse':
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:278: error:
'struct net_device' has no member named 'header_ops'
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function
'klips_rebuild_header':
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:331: error:
'struct net_device' has no member named 'header_ops'
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function
'klips_header_cache':
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:339: warning:
passing argument 1 of 'netdev_priv' discards qualifiers from pointer target
type
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:355: error:
'struct net_device' has no member named 'header_ops'
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function
'klips_header_cache_update':
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:363: warning:
passing argument 1 of 'netdev_priv' discards qualifiers from pointer target
type
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:396: error:
'struct net_device' has no member named 'header_ops'
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: At top level:
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:401: error:
variable 'klips_header_ops' has initializer but incomplete type
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:402: error:
unknown field 'create' specified in initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:402: warning:
excess elements in struct initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:402: warning:
(near initialization for 'klips_header_ops')
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:403: error:
unknown field 'parse' specified in initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:403: warning:
excess elements in struct initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:403: warning:
(near initialization for 'klips_header_ops')
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:404: error:
unknown field 'rebuild' specified in initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:404: warning:
excess elements in struct initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:404: warning:
(near initialization for 'klips_header_ops')
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:405: error:
unknown field 'cache' specified in initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:405: warning:
excess elements in struct initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:405: warning:
(near initialization for 'klips_header_ops')
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:406: error:
unknown field 'cache_update' specified in initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:406: warning:
excess elements in struct initializer
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:406: warning:
(near initialization for 'klips_header_ops')
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c: In function
'ipsec_tunnel_cache_update':
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:1270: warning:
passing argument 1 of 'netdev_priv' discards qualifiers from pointer target
type
/usr/src/redhat/BUILD/openswan-2.6.24/modobj26/ipsec_tunnel.c:1319: warning:
passing argument 3 of 'prv->header_cache_update' discards qualifiers from
pointer target type
Anyway to fix this problem?
More information about the Users
mailing list