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

Paul Wouters paul at xelerance.com
Tue Oct 31 12:47:02 EST 2006


On Tue, 31 Oct 2006, armin schaefer wrote:

> I tried to use klips as LKM, during compilation i get trouble:

Did you both patch the kernel with klips AND building a module from
the openswan directory?

If not, then try a stock kernel instead of the suse one.

Paul

> Building module for a 2.6 kernel
> make[1]: Entering directory `/usr/src/openswan-2.4.7rc2'
> make[2]: Entering directory `/usr/src/openswan-2.4.7rc2'
> make[2]: `/usr/src/openswan-2.4.7rc2/modobj26/Makefile' is up to date.
> make[2]: Leaving directory `/usr/src/openswan-2.4.7rc2'
> make -C /usr/src/linux-2.6.13-15  BUILDDIR=/usr/src/openswan-2.4.7rc2/modobj26 SUBDIRS=/usr/src/openswan-2.4.7rc2/modobj26 MODULE_DEF_INCLUDE=/usr/src/openswan-2.4.7rc2/packaging/linus/config-all.h MODULE_DEFCONFIG=/usr/src/openswan-2.4.7rc2/linux/net/ipsec/defconfig  MODULE_EXTRA_INCLUDE= ARCH=i386 modules
> make[2]: Entering directory `/usr/src/linux-2.6.13-15'
>
>   WARNING: Symbol version dump /usr/src/linux-2.6.13-15/Module.symvers
>            is missing; modules will have no dependencies and modversions.
>
>   CC [M]  /usr/src/openswan-2.4.7rc2/modobj26/ipsec_init.o
> 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:39:1: warning: "SADB_X_NAT_T_NEW_MAPPING" redefined
> In file included from include/net/xfrm.h:11,
>
>
> **********************************************************************************************************************************
> 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
> 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:277:1: warning: "SADB_X_EXT_NAT_T_SPORT" 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:325:1: warning: this is the location of the previous definition
> 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:278:1: warning: "SADB_X_EXT_NAT_T_DPORT" 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:326:1: warning: this is the location of the previous definition
> 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:279:1: warning: "SADB_X_EXT_NAT_T_OA" 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:327:1: warning: this is the location of the previous definition
> 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:280:1: warning: "SADB_EXT_MAX" 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:328:1: warning: this is the location of the previous definition
> 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:302:1: warning: "SADB_SATYPE_MAX" 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:268:1: warning: this is the location of the previous definition
> /usr/src/openswan-2.4.7rc2/linux/include/pfkeyv2.h:305: error: syntax error before numeric constant
> 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:342:1: warning: "SADB_EALG_MAX" 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:289:1: warning: this is the location of the previous definition
> 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:367:1: warning: "SADB_IDENTTYPE_MAX" 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:335:1: warning: this is the location of the previous definition
> make[3]: *** [/usr/src/openswan-2.4.7rc2/modobj26/ipsec_init.o] Error 1
> make[2]: *** [_module_/usr/src/openswan-2.4.7rc2/modobj26] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.13-15'
> make[1]: *** [module26] Error 2
> make[1]: Leaving directory `/usr/src/openswan-2.4.7rc2'
> make: *** [module] Error 2
>
>
>
> does someone knows the reason?
>
> Thanks in advance
>
> Armin
>

-- 
Building and integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


More information about the Users mailing list