Unbound 1.10.0 compile error on Solaris 11.4
Jaco Lesch
jacol at saix.net
Mon Mar 23 17:10:45 UTC 2020
On 3/23/20 18:28, Wouter Wijngaards via Unbound-users wrote:
> Hi Jaco,
>
> On 23/03/2020 17:09, Jaco Lesch via Unbound-users wrote:
>> Guys
>>
>> Getting the following error when compiling Unbound 1.10.0 on Solaris
>> 11.4 with Studio 12.6, looks like the issue is in the
>> "unbound-checkconf.c" code. The compiler spits out the following:
> This commit may help s/0i/0/ :
> https://github.com/NLnetLabs/unbound/commit/cca5cfc88ff84fa8d6e5c619f3f31aa21bb33b5f
>
> Hopefully that syntax error removed clears the other failures that it
> prints.
>
> Best regards, Wouter
>
>> ------------------------------------------------------------------------
>> libtool: compile:
>> /opt/SunStudio/OracleDeveloperStudio12.6-solaris-sparc-bin/developerstudio12.6/bin/cc
>> -I. -I/opt/local/include -I/opt/local/include -DSRCDIR=. -m64 -fast
>> -Qoption cg -xregs=no%appl -W2,-xwrap_int -xlinkopt -mt -D_REENTRANT -c
>> smallapp/unbound-checkconf.c -KPIC -DPIC -o .libs/unbound-checkconf.o
>> "./util/log.h", line 75: warning: attribute "format" is unknown, ignored
>> "./util/log.h", line 149: warning: attribute "format" is unknown, ignored
>> "./util/log.h", line 156: warning: attribute "format" is unknown, ignored
>> "./util/log.h", line 163: warning: attribute "format" is unknown, ignored
>> "./util/log.h", line 179: warning: attribute "format" is unknown, ignored
>> "./util/log.h", line 186: warning: attribute "format" is unknown, ignored
>> "./util/log.h", line 202: warning: attribute "format" is unknown, ignored
>> "./util/config_file.h", line 1206: warning: attribute "format" is
>> unknown, ignored
>> "./sldns/sbuffer.h", line 142: warning: attribute "unused" is unknown,
>> ignored
>> "./sldns/sbuffer.h", line 730: warning: attribute "format" is unknown,
>> ignored
>> "smallapp/unbound-checkconf.c", line 704: invalid token: 0i
>> "smallapp/unbound-checkconf.c", line 704: syntax error before or at: ,
>> "smallapp/unbound-checkconf.c", line 707: warning: function prototype
>> parameters must have types
>> "smallapp/unbound-checkconf.c", line 707: warning: old-style declaration
>> or incorrect type for: auth_zones_delete
>> "smallapp/unbound-checkconf.c", line 707: identifier redeclared:
>> auth_zones_delete
>> current : function() returning int
>> previous: function(pointer to struct auth_zones {struct
>> _pthread_rwlock {..} lock, struct rbtree_type {..} ztree, struct
>> rbtree_type {..} xtree, int have_downstream, unsigned long num_query_up,
>> unsigned long num_query_down, pointer to struct rpz {..} rpz_first,
>> struct _pthread_rwlock {..} rpz_lock}) returning void :
>> "./services/authzone.h", line 494
>> "smallapp/unbound-checkconf.c", line 708: syntax error before or at: }
>> cc: acomp failed for smallapp/unbound-checkconf.c
>> gmake: *** [Makefile:291: unbound-checkconf.lo] Error 1
>> ------------------------------------------------------------------------
>>
>>
>> Although when I compile wit GCC 9.2.0 the code is compiling fine. Any
>> assistance, or insight will be appreciated.
>>
>> Regards
>>
>> --
>> ---
>> Jaco Lesch
>> SAIX HLS
>> Email: jacol at saix.net
>>
Wouter
Thanks, that has done the trick. Compiling clean now.
Regards
--
---
Jaco Lesch
SAIX HLS
Email: jacol at saix.net
More information about the Unbound-users
mailing list