[Openswan Users] Suse 10.0 Kernel 2.6.13-15 / openswan-2.4.7.rc2 failure in compiling KLIPS as LKM

Martin Hicks mort at bork.org
Tue Oct 31 11:55:37 EST 2006


On Tue, Oct 31, 2006 at 03:36:08PM +0100, armin schaefer wrote:
> Hello
> 
> I tried to use klips as LKM, during compilation i get trouble:
> 

[..snip..]

> **********************************************************************************************************************************
> here beginns the trouble: 
> 
> 
> In file included from /usr/src/openswan-2.4.7rc2/linux/include/openswan/ipsec_sa.h:46,
>                  from /usr/src/openswan-2.4.7rc2/modobj26/ipsec_init.c:75:
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:42: error: redefinition of 'struct sadb_msg'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:53: error: redefinition of 'struct sadb_ext'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:58: error: redefinition of 'struct sadb_sa'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:82: error: redefinition of 'struct sadb_lifetime'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:93: error: redefinition of 'struct sadb_address'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:101: error: redefinition of 'struct sadb_key'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:108: error: redefinition of 'struct sadb_ident'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:116: error: redefinition of 'struct sadb_sens'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:127: error: redefinition of 'struct sadb_prop'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:134: error: redefinition of 'struct sadb_comb'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:155: error: redefinition of 'struct sadb_supported'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:161: error: redefinition of 'struct sadb_alg'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:169: error: redefinition of 'struct sadb_spirange'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:177: error: redefinition of 'struct sadb_x_kmprivate'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:190: error: redefinition of 'struct sadb_x_policy'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:218: error: redefinition of 'struct sadb_x_nat_t_type'
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:224: error: redefinition of 'struct sadb_x_nat_t_port'
> In file included from /usr/src/openswan-2.4.7rc2/linux/include/openswan/ipsec_sa.h:46,
>                  from /usr/src/openswan-2.4.7rc2/modobj26/ipsec_init.c:75:
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:276:1: warning: "SADB_X_EXT_NAT_T_TYPE" redefined
> In file included from include/net/xfrm.h:11,
>                  from include/linux/netfilter_ipv4.h:90,
>                  from include/net/ip.h:34,
>                  from /usr/src/openswan-2.4.7rc2/modobj26/ipsec_init.c:59:
> include/linux/pfkeyv2.h:324:1: warning: this is the location of the previous definition



> does someone knows the reason?
> 

It would look to me like the kernel tree already has a version of
OpenSWAN in it.  Perhaps the SuSE kernel comes with OpenSWAN?

mh


-- 
Martin Hicks || mort at bork.org || PGP/GnuPG: 0x4C7F2BEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.openswan.org/pipermail/users/attachments/20061031/e15cf85c/attachment.bin 


More information about the Users mailing list