[Swan] 3.14rc2 and 3.14rc3 do not compile under Ubuntu Precise

Tony Whyman tony.whyman at mccallumwhyman.com
Sat Jul 4 17:28:24 EEST 2015


Investigating further, it looks like the prototype for ub_ctx_add_ta has 
changed from

int ub_ctx_add_ta(struct ub_ctx* ctx, char* ta);

in unbound 1.4.16, to

int ub_ctx_add_ta(struct ub_ctx* ctx, const char* ta);

in ubound 1.4.22 (or earlier)

The definition of rootanchor, now

static const char rootanchor[]  /*line 35 of lib/libswan/unbound.c */

probably needs to be conditional on the version number of unbound.h

Tony Whyman
MWA




On 04/07/15 13:43, Tony Whyman wrote:
> I have tried the new 3.14rc3 and 3.14rc2, trying to build each under 
> Ubuntu Precise (12.04 LTS) and Trusty (14.04 LTS).
>
> Both compile under 14.04 but fail to compile under 12.04 with the 
> following error messages:
>
> In function 'unbound_init':
> <snip>/unbound.c:90:2: error: passing argument 2 of 'ub_ctx_add_ta' 
> discards 'const' qualifier from pointer target type [-Werror]
> /usr/include/unbound.h:331:5: note: expected 'char *' but argument is 
> of type 'const char *'
> <snip>/lib/libswan/unbound.c:101:2: error: passing argument 3 of 
> 'ub_ctx_set_option' discards 'const' qualifier from pointer target 
> type [-Werror]
> /usr/include/unbound.h:242:5: note: expected 'char *' but argument is 
> of type 'const char *'
>
> rc3.14rc3 also fails to build the debian packages due to a corrupt 
> version string in debian/changelog. It will compile when changed to
>
> libreswan (1:3.14~rc3-1) precise; urgency=low
>
>
> Note: rather odd that the changelog specifies "precise" when it can't 
> compile under precise....
>
>
> Tony Whyman
> MWA
>
> _______________________________________________
> Swan mailing list
> Swan at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan



More information about the Swan mailing list