[Openswan dev] openswan-2.6.24 KLIPS compilation fails for kernel-2.6.18-8

David McCullough david_mccullough at mcafee.com
Wed Feb 3 17:02:41 EST 2010


Jivin hiren joshi lays it down ...
> Hello,
> 
> I was able to compile openswan-2.6.23 for linux-2.6.18-8 (with a minor
> modification related to scatterlist interface).
> However openswan-2.6.24 KLIPS compilation fails.
> Does some code needs to be wrapped under KERNEL_VERSION(2,6,24) or
> some other conditional compilation macro?

Yes,  this has been fixed in git and will be in 2.6.25,  if you have access
to git you could look there for a diff or just use the git version.

Cheers,
Davidm


> [hiren at fedora linux-2.6.18.8-crl]$ make
>   CHK     include/linux/version.h
>   CHK     include/linux/utsrelease.h
>   CHK     include/linux/compile.h
>   CC [M]  net/ipsec/ipsec_tunnel.o
> net/ipsec/ipsec_tunnel.c: In function 'klips_header':
> net/ipsec/ipsec_tunnel.c:249: error: 'struct net_device' has no member
> named 'header_ops'
> net/ipsec/ipsec_tunnel.c: In function 'klips_header_parse':
> net/ipsec/ipsec_tunnel.c:278: error: 'struct net_device' has no member
> named 'header_ops'
> net/ipsec/ipsec_tunnel.c: In function 'klips_rebuild_header':
> net/ipsec/ipsec_tunnel.c:331: error: 'struct net_device' has no member
> named 'header_ops'
> net/ipsec/ipsec_tunnel.c: In function 'klips_header_cache':
> net/ipsec/ipsec_tunnel.c:339: warning: passing argument 1 of
> 'netdev_priv' discards qualifiers from pointer target type
> net/ipsec/ipsec_tunnel.c:355: error: 'struct net_device' has no member
> named 'header_ops'
> net/ipsec/ipsec_tunnel.c: In function 'klips_header_cache_update':
> net/ipsec/ipsec_tunnel.c:363: warning: passing argument 1 of
> 'netdev_priv' discards qualifiers from pointer target type
> net/ipsec/ipsec_tunnel.c:396: error: 'struct net_device' has no member
> named 'header_ops'
> net/ipsec/ipsec_tunnel.c: At top level:
> net/ipsec/ipsec_tunnel.c:401: error: variable 'klips_header_ops' has
> initializer but incomplete type
> net/ipsec/ipsec_tunnel.c:402: error: unknown field 'create' specified
> in initializer
> net/ipsec/ipsec_tunnel.c:402: warning: excess elements in struct initializer
> net/ipsec/ipsec_tunnel.c:402: warning: (near initialization for
> 'klips_header_ops')
> net/ipsec/ipsec_tunnel.c:403: error: unknown field 'parse' specified
> in initializer
> net/ipsec/ipsec_tunnel.c:403: warning: excess elements in struct initializer
> net/ipsec/ipsec_tunnel.c:403: warning: (near initialization for
> 'klips_header_ops')
> net/ipsec/ipsec_tunnel.c:404: error: unknown field 'rebuild' specified
> in initializer
> net/ipsec/ipsec_tunnel.c:404: warning: excess elements in struct initializer
> net/ipsec/ipsec_tunnel.c:404: warning: (near initialization for
> 'klips_header_ops')
> net/ipsec/ipsec_tunnel.c:405: error: unknown field 'cache' specified
> in initializer
> net/ipsec/ipsec_tunnel.c:405: warning: excess elements in struct initializer
> net/ipsec/ipsec_tunnel.c:405: warning: (near initialization for
> 'klips_header_ops')
> net/ipsec/ipsec_tunnel.c:406: error: unknown field 'cache_update'
> specified in initializer
> net/ipsec/ipsec_tunnel.c:406: warning: excess elements in struct initializer
> net/ipsec/ipsec_tunnel.c:406: warning: (near initialization for
> 'klips_header_ops')
> net/ipsec/ipsec_tunnel.c: In function 'ipsec_tunnel_cache_update':
> net/ipsec/ipsec_tunnel.c:1270: warning: passing argument 1 of
> 'netdev_priv' discards qualifiers from pointer target type
> net/ipsec/ipsec_tunnel.c:1319: warning: passing argument 3 of
> 'prv->header_cache_update' discards qualifiers from pointer target
> type
> make[2]: *** [net/ipsec/ipsec_tunnel.o] Error 1
> make[1]: *** [net/ipsec] Error 2
> make: *** [net] Error 2
> 
> Regards,
> Hiren
> _______________________________________________
> Dev mailing list
> Dev at openswan.org
> http://lists.openswan.org/mailman/listinfo/dev
> 
> 

-- 
David McCullough,      david_mccullough at mcafee.com,  Ph:+61 734352815
McAfee - SnapGear      http://www.mcafee.com         http://www.uCdot.org


More information about the Dev mailing list