[Openswan Users] Compiling

Bernd Weber bwinfo at gwk-gmbh.de
Thu Oct 7 21:54:07 CEST 2004


I would appreciate if somebody could help me with this:
We are portimg our network from kernel 2.4 to 2.6. Since we are using Freeswan VPNs together with 
of natting and similar technics we would like to keep Klips until the problems with the native stack 
have found a stable solution (or we understand them better).

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.

Doing this I get the following Errors in kout.log:

Anyone able and willing to help?


Regards

Bernd Weber
---
kout.log: 

In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:243:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:244:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
include/pfkeyv2.h:42: error: redefinition of `struct sadb_msg'
include/pfkeyv2.h:53: error: redefinition of `struct sadb_ext'
include/pfkeyv2.h:58: error: redefinition of `struct sadb_sa'
include/pfkeyv2.h:82: error: redefinition of `struct sadb_lifetime'
include/pfkeyv2.h:93: error: redefinition of `struct sadb_address'
include/pfkeyv2.h:101: error: redefinition of `struct sadb_key'
include/pfkeyv2.h:108: error: redefinition of `struct sadb_ident'
include/pfkeyv2.h:116: error: redefinition of `struct sadb_sens'
include/pfkeyv2.h:127: error: redefinition of `struct sadb_prop'
include/pfkeyv2.h:134: error: redefinition of `struct sadb_comb'
include/pfkeyv2.h:155: error: redefinition of `struct sadb_supported'
include/pfkeyv2.h:161: error: redefinition of `struct sadb_alg'
include/pfkeyv2.h:169: error: redefinition of `struct sadb_spirange'
include/pfkeyv2.h:177: error: redefinition of `struct sadb_x_kmprivate'
include/pfkeyv2.h:190: error: redefinition of `struct sadb_x_policy'
include/pfkeyv2.h:218: error: redefinition of `struct sadb_x_nat_t_type'
include/pfkeyv2.h:224: error: redefinition of `struct sadb_x_nat_t_port'
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:322:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:323:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:324:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:325:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:326:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:266:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:287:1: warning: this is the location of the previous definition
In file included from net/ipsec/ipsec_init.c:97:
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 net/ipsec/ipsec_init.c:63:
include/linux/pfkeyv2.h:333:1: warning: this is the location of the previous definition
make[3]: *** [net/ipsec/ipsec_init.o] Fehler 1
make[2]: *** [net/ipsec] Fehler 2
make[1]: *** [net] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.5-7.108'
make[1]: Entering directory `/usr/src/linux-2.6.5-7.108'
  CHK     include/linux/version.h




More information about the Users mailing list