[Openswan Users] conflict of klips with native stack include files, was Re:[Openswan Users] Compiling

Paul Wouters paul at xelerance.com
Fri Oct 8 17:27:45 CEST 2004


On Fri, 8 Oct 2004, Bernd Weber wrote:

Michael, can you have a look at this. Should we add some #ifdef's around
these? It seems klips' pfkey includes are conflicting with the native
stack includes.

Paul

> make -C /usr/src/linux-2.6.5-7.108 
> BUILDDIR=/home/bw/openswan-2.3.0dr2/modobj26 
> SUBDIRS=/home/bw/openswan-2.3.0dr2/modobj26 
> MODULE_DEF_INCLUDE=/home/bw/openswan-2.3.0dr2/packaging/linus/config-all.h 
> ARCH=i386 modules
> make[1]: Entering directory `/usr/src/linux-2.6.5-7.108'
>
> WARNING: Symbol version dump /usr/src/linux-2.6.5-7.108/Module.symvers is 
> missing, modules will have CONFIG_MODVERSIONS disabled.
>
> ln -s -f /home/bw/openswan-2.3.0dr2/linux/net/ipsec/ipsec_init.c 
> /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c
> CC [M]  /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.s
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:39:1: warning: 
> "SADB_X_NAT_T_NEW_MAPPING" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:243:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:40:1: warning: "SADB_MAX" 
> redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:244:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:42: error: redefinition of 
> `struct sadb_msg'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:53: error: redefinition of 
> `struct sadb_ext'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:58: error: redefinition of 
> `struct sadb_sa'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:82: error: redefinition of 
> `struct sadb_lifetime'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:93: error: redefinition of 
> `struct sadb_address'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:101: error: redefinition 
> of `struct sadb_key'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:108: error: redefinition 
> of `struct sadb_ident'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:116: error: redefinition 
> of `struct sadb_sens'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:127: error: redefinition 
> of `struct sadb_prop'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:134: error: redefinition 
> of `struct sadb_comb'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:155: error: redefinition 
> of `struct sadb_supported'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:161: error: redefinition 
> of `struct sadb_alg'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:169: error: redefinition 
> of `struct sadb_spirange'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:177: error: redefinition 
> of `struct sadb_x_kmprivate'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:190: error: redefinition 
> of `struct sadb_x_policy'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:218: error: redefinition 
> of `struct sadb_x_nat_t_type'
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:224: error: redefinition 
> of `struct sadb_x_nat_t_port'
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:276:1: warning: 
> "SADB_X_EXT_NAT_T_TYPE" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:322:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:277:1: warning: 
> "SADB_X_EXT_NAT_T_SPORT" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:323:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:278:1: warning: 
> "SADB_X_EXT_NAT_T_DPORT" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:324:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:279:1: warning: 
> "SADB_X_EXT_NAT_T_OA" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:325:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:280:1: warning: 
> "SADB_EXT_MAX" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:326:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:302:1: warning: 
> "SADB_SATYPE_MAX" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:266:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:340:1: warning: 
> "SADB_EALG_MAX" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:287:1: warning: this is the location of the previous 
> definition
> In file included from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:97:
> /home/bw/openswan-2.3.0dr2/linux/include/pfkeyv2.h:365:1: warning: 
> "SADB_IDENTTYPE_MAX" redefined
> In file included from include/net/xfrm.h:10,
>                from include/linux/netfilter_ipv4.h:91,
>                from include/net/ip.h:34,
>                from /home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.c:63:
> include/linux/pfkeyv2.h:333:1: warning: this is the location of the previous 
> definition
> make[2]: *** [/home/bw/openswan-2.3.0dr2/modobj26/ipsec_init.s] Fehler 1
> make[1]: *** [_module_/home/bw/openswan-2.3.0dr2/modobj26] Fehler 2
> make[1]: Leaving directory `/usr/src/linux-2.6.5-7.108'
> make: *** [module26] Fehler 2
>
> _______________________________________
> Bernd Weber
> GWK Gesellschaft für Informationstechnologie mbH
> Rathenaustraße 57
> 63263 Neu-Isenburg
> Tel  +49 6102 786004
> Fax +49 6102 786006
> http://www.gwk-gmbh.de
> http://www.rabox.de
>
>
>
> Paul Wouters wrote:
>
>> On Thu, 7 Oct 2004, Bernd Weber wrote:
>> 
>>> So I have tried to compile OpenSwan 2.3.0dr2 on a SuSE 9.1 Machine - 
>>> mostly standard runnning Kernel 2.6.5-7.108-default and using the source 
>>> of this kernel. I have taken the kernel Konfiguration (.config) from a 
>>> running SuSE Standard Kernel and run make menugo command.
>> 
>> 
>> You should try:
>> 
>> cd openswan
>> export KERNELSRC=/usr/src/linux-2.6.5-7.108-default
>> make module26
>> 
>> You should have an unpatched kernel for this, so no klips code in there 
>> already.
>> 
>> KLIPS on 2.6 kernels is getting there, but we still are testing this. It is 
>> not
>> stable yet for production use.
>> 
>> Paul
>

-- 
 	"Non cogitamus, ergo nihil sumus"


More information about the Users mailing list