[Swan] Errors at compilation module.

pit11 at ukr.net pit11 at ukr.net
Fri Sep 1 12:09:41 UTC 2017


Hi,


Centos 7.3.1611
kernel 3.10.0-514.26.2.el7.local.x86_64


1. That kernel I built with 0001-SAREF-add-support-for-SA-selection-through-sendmsg.patch and 0002-SAREF-implement-IP_IPSEC_BINDREF.patch from 3.11.0-15.25. The assembly was successful.
2. Libreswan 3.21 make module.


First problem:
==========
In file included from /home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c:57:0:
/home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c: In function 'ipsec_xmit_ipip':
/home/pit/rpmbuild/BUILD/libreswan-3.21/linux/include/libreswan/ipsec_tunnel.h:32:42: warning: passing argument 1 of '__ip_select_ident' from incompatible pointer type [enabled by default]
 #define lsw_ip4_hdr(ixirs)      ((struct iphdr *) (ixirs)->iph)                                                                                                                            
                                          ^
/home/pit/rpmbuild/BUILD/libreswan-3.21/linux/include/libreswan/ipsec_param2.h:33:60: note: in definition of macro 'KLIPS_IP_SELECT_IDENT'
 # define KLIPS_IP_SELECT_IDENT(iph, skb) __ip_select_ident(iph, skb_dst(skb), 0)                                                         
                                                            ^
/home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c:1282:25: note: in expansion of macro 'lsw_ip4_hdr'
   KLIPS_IP_SELECT_IDENT(lsw_ip4_hdr(ixs), ixs->skb);                                                         
                         ^
In file included from include/net/tcp.h:42:0,
                 from /home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c:47:
include/net/ip.h:325:6: note: expected 'struct net *' but argument is of type 'struct iphdr *'
 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);




Second problem:
=============
/home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c: In function 'ipsec_xmit_send':
/home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c:2918:11: warning: passing argument 3 of 'NF_HOOK' from incompatible pointer type [enabled by default]
           ipsec_xmit_send2);                                                                                                                                    
           ^
In file included from include/net/netns/netfilter.h:5:0,
                 from include/net/net_namespace.h:22,
                 from include/linux/netdevice.h:44,
                 from include/net/addrconf.h:49,
                 from /home/pit/rpmbuild/BUILD/libreswan-3.21/linux/include/libreswan/ipsec_kversion.h:394,
                 from /home/pit/rpmbuild/BUILD/libreswan-3.21/linux/include/libreswan/ipsec_param.h:34,
                 from /home/pit/rpmbuild/BUILD/libreswan-3.21/modobj/ipsec_xmit.c:33:
include/linux/netfilter.h:245:1: note: expected 'struct sock *' but argument is of type 'struct sk_buff *'
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb, 


Can you help ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20170901/cbb03d83/attachment.html>


More information about the Swan mailing list