Unbound 1.10.0 compile error on Solaris 11.4
Jaco Lesch
jacol at saix.net
Mon Mar 23 16:09:03 UTC 2020
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:
------------------------------------------------------------------------
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20200323/81163680/attachment.htm>
More information about the Unbound-users
mailing list