<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Guys<br>
<br>
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:<br>
</tt>
<hr width="100%" size="2"><tt>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<br>
"./util/log.h", line 75: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 149: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 156: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 163: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 179: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 186: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 202: warning: attribute "format" is unknown,
ignored<br>
"./util/config_file.h", line 1206: warning: attribute "format" is
unknown, ignored<br>
"./sldns/sbuffer.h", line 142: warning: attribute "unused" is
unknown, ignored<br>
"./sldns/sbuffer.h", line 730: warning: attribute "format" is
unknown, ignored<br>
"smallapp/unbound-checkconf.c", line 704: invalid token: 0i<br>
"smallapp/unbound-checkconf.c", line 704: syntax error before or
at: ,<br>
"smallapp/unbound-checkconf.c", line 707: warning: function
prototype parameters must have types<br>
"smallapp/unbound-checkconf.c", line 707: warning: old-style
declaration or incorrect type for: auth_zones_delete<br>
"smallapp/unbound-checkconf.c", line 707: identifier redeclared:
auth_zones_delete<br>
current : function() returning int<br>
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<br>
"smallapp/unbound-checkconf.c", line 708: syntax error before or
at: }<br>
cc: acomp failed for smallapp/unbound-checkconf.c<br>
gmake: *** [Makefile:291: unbound-checkconf.lo] Error 1<br>
</tt>
<hr width="100%" size="2"><tt><br>
<br>
Although when I compile wit GCC 9.2.0 the code is compiling fine.
Any assistance, or insight will be appreciated.<br>
<br>
Regards<br>
<br>
</tt>
<pre class="moz-signature" cols="72">--
---
Jaco Lesch
SAIX HLS
Email: <a class="moz-txt-link-abbreviated" href="mailto:jacol@saix.net" moz-do-not-send="true">jacol@saix.net</a>
</pre>
</body>
</html>