[Openswan dev] Error building klips-ipv6 (missing include?)

Ruben Laban r.laban at ism.nl
Thu Aug 12 04:45:50 EDT 2010

On Thursday 12 August 2010 at 10:12 (CET), Ruben Laban wrote:
> When I try to build the klips-ipv6 branch, I get the following error:
> make[3]: Entering directory
> `/root/openswan-ipv6/OBJ.linux.i386/programs/tncfg' cc -c -g -Werror
> -DSCANDIR_HAS_CONST  -I/root/openswan-ipv6/ports/linux/include 
> -I/root/openswan-ipv6/ports/linux/include  -I/root/openswan-
> ipv6/ports/linux/include  -I/root/openswan-ipv6/ports/linux/include 
> -I/root/openswan-ipv6 -I/root/openswan-ipv6/linux/include
> -I/root/openswan-ipv6/include  -Wall - Wpointer-arith -Wcast-qual
> -Wstrict-prototypes -Wbad-function-cast  -DKLIPS -DNAT_TRAVERSAL
> -DFINALCONFDDIR=\"/etc/ipsec.d\" -DFINALCONFFILE=\"/etc/ipsec.conf\"
> -DFINALVARDIR=\"/var\" -Werror /root/openswan- ipv6/programs/tncfg/tncfg.c
> cc1: warnings being treated as errors
> In file included from /root/openswan-ipv6/programs/tncfg/tncfg.c:51:
> /root/openswan-ipv6/linux/include/openswan/ipsec_tunnel.h:145: error:
> 'struct sk_buff' declared inside parameter list
> /root/openswan-ipv6/linux/include/openswan/ipsec_tunnel.h:145: error: its
> scope is only this definition or declaration, which is probably not what
> you want make[3]: *** [tncfg.o] Error 1
> To me it appears to be a missing include file (containing the definition of
> struct sk_buff).

Apparently it's userland that got broken by a chance (addition really) to 

However, building kernel module fails as well:

  CC [M]  /root/openswan-ipv6/modobj26/ipsec_xmit.o
/root/openswan-ipv6/modobj26/ipsec_xmit.c: In function 'ipsec_xmit_send':
/root/openswan-ipv6/modobj26/ipsec_xmit.c:2533: error: 'NF_IP_LOCAL_OUT' 
undeclared (first use in this function)
/root/openswan-ipv6/modobj26/ipsec_xmit.c:2533: error: (Each undeclared 
identifier is reported only once
/root/openswan-ipv6/modobj26/ipsec_xmit.c:2533: error: for each function it 
appears in.)
/root/openswan-ipv6/modobj26/ipsec_xmit.c:2533: error: 'struct sk_buff' has no 
member named 'dst'
/root/openswan-ipv6/modobj26/ipsec_xmit.c:2537: error: 'struct sk_buff' has no 
member named 'dst'
make[3]: *** [/root/openswan-ipv6/modobj26/ipsec_xmit.o] Error 1

This is likely a kernel incompatibility. This is on a Ubuntu-based 2.6.32 

So, in other words: what are the kernel (and possibly other) requirements in 
order to succesfully build klips-ipv6?

Ruben Laban

More information about the Dev mailing list