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

Abhishek Gupta abhigup1986 at gmail.com
Fri Jul 17 04:25:09 EEST 2015


Just wanted to give an update.

I changed the ipsec_kversion.h  file to include my kernel version in the
backported version and it has compiled now.

Abhishek

On Thu, Jul 16, 2015 at 2:30 PM, Abhishek Gupta <abhigup1986 at gmail.com>
wrote:

> Thank you for the reply.
>
> The kernel version is: 3.13.0-57-generic.
>
> I checked ipsec_kversion.h, but how to do I know which kernel version are
> supported for KLIPS?
>
> Abhishek
>
> On Thu, Jul 16, 2015 at 1:46 PM, Paul Wouters <paul at nohats.ca> wrote:
>
>> On Thu, 16 Jul 2015, Abhishek Gupta wrote:
>>
>>  Subject: [Swan] Compile error in libreswan : error: too many arguments to
>>>     function ‘__ip_select_ident’
>>>
>>
>>  I am getting the following compile error, using libreswan 3.12 and 3.13,
>>> on Ubuntu:
>>>
>>
>>  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)
>>>
>>
>> That is either a new kernel we do not yet support with KLIPS, or some
>> kernel with backport we did not expect? As always, check
>> ipsec_kversion.h for code related to our macros, eg KLIPS_IP_SELECT_IDENT
>>
>> Paul
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20150716/d04b7ef8/attachment-0001.html>


More information about the Swan mailing list