[Swan] Compile error in libreswan : error: too many arguments to function ‘__ip_select_ident’

Abhishek Gupta abhigup1986 at gmail.com
Thu Jul 16 21:39:13 EEST 2015


Hi guys,


I am getting the following compile error, using libreswan 3.12 and 3.13, on
Ubuntu:


Any ideas?


In file included from
/home/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c:57:0:

/home/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c: In function
‘ipsec_xmit_ipip’:

/home/lab/agupta/new/libreswan-3.13/linux/include/libreswan/ipsec_tunnel.h:33:42:
warning: passing argument 2 of ‘__ip_select_ident’ makes integer from point

 #define lsw_ip4_hdr(ixirs)      ((struct iphdr *) (ixirs)->iph)

                                          ^

/home/lab/agupta/new/libreswan-3.13/linux/include/libreswan/ipsec_param2.h:29:59:
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/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c:1242: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:41:0,

                 from
/home/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c:47:

include/net/ip.h:275:6: note: expected ‘int’ but argument is of type
‘struct dst_entry *’

 void __ip_select_ident(struct iphdr *iph, int segs);

      ^

*In file included from
/home/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c:57:0:*

/h*ome/lab/agupta/new/libreswan-3.13/linux/include/libreswan/ipsec_tunnel.h:33:42:
error: too many arguments to function ‘__ip_select_ident’*

* #define lsw_ip4_hdr(ixirs)      ((struct iphdr *) (ixirs)->iph)*

                                          ^

/home/lab/agupta/new/libreswan-3.13/linux/include/libreswan/ipsec_param2.h:29:59:
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/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c:1242: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:41:0,

                 from
/home/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.c:47:

include/net/ip.h:275:6: note: declared here

 void __ip_select_ident(struct iphdr *iph, int segs);

      ^

make[3]: *** [/home/lab/agupta/new/libreswan-3.13/modobj/ipsec_xmit.o]
Error 1

make[2]: *** [_module_/home/lab/agupta/new/libreswan-3.13/modobj] Error 2

make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-57-generic'

make[1]: *** [module26] Error 2

make[1]: Leaving directory `/home/lab/agupta/new/libreswan-3.13'

make: *** [module] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20150716/9888cdd7/attachment.html>


More information about the Swan mailing list