<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Get the following compile errors when building Unbound 1.5.10 on
Solaris 11 SPARC with both GCC 4.8.2 and SolarisStudio 12.4. Any
help will be appreciated, error info below from "gmake".<br>
<br>
</tt><tt><tt>===============================================================<br>
</tt>GCC 4.8.2 for libevent-2 and unbound-1.5.10:<br>
libtool: link: /usr/bin/gcc -I. -I/opt/local/include -m64 -mcpu=v9
-std=c99 -flto -D_REENTRANT -o unbound .libs/acl_list.o
.libs/cachedump.o .libs/daemon.o .libs/remote.o .libs/stats.o
.libs/unbound.o .libs/worker.o .libs/dns.o .libs/infra.o
.libs/rrset.o .libs/dname.o .libs/msgencode.o .libs/as112.o
.libs/msgparse.o .libs/msgreply.o .libs/packed_rrset.o
.libs/iterator.o .libs/iter_delegpt.o .libs/iter_donotq.o
.libs/iter_fwd.o .libs/iter_hints.o .libs/iter_priv.o
.libs/iter_resptype.o .libs/iter_scrub.o .libs/iter_utils.o
.libs/localzone.o .libs/mesh.o .libs/modstack.o
.libs/outbound_list.o .libs/alloc.o .libs/config_file.o
.libs/configlexer.o .libs/configparser.o .libs/fptr_wlist.o
.libs/locks.o .libs/log.o .libs/mini_event.o .libs/module.o
.libs/net_help.o .libs/random.o .libs/rbtree.o .libs/regional.o
.libs/rtt.o .libs/dnstree.o .libs/lookup3.o .libs/lruhash.o
.libs/slabhash.o .libs/timehist.o .libsgmake<br>
/tube.o .libs/winsock_event.o .libs/autotrust.o .libs/val_anchor.o
.libs/validator.o .libs/val_kcache.o .libs/val_kentry.o
.libs/val_neg.o .libs/val_nsec3.o .libs/val_nsec.o
.libs/val_secalgo.o .libs/val_sigcrypt.o .libs/val_utils.o
.libs/dns64.o .libs/cachedb.o .libs/netevent.o
.libs/listen_dnsport.o .libs/outside_network.o .libs/ub_event.o
.libs/keyraw.o .libs/sbuffer.o .libs/wire2str.o .libs/parse.o
.libs/parseutil.o .libs/rrdef.o .libs/str2wire.o .libs/snprintf.o
.libs/reallocarray.o .libs/arc4random.o .libs/arc4random_uniform.o
.libs/explicit_bzero.o .libs/arc4_lock.o -L/opt/local/lib/64
-L/opt/local/lib -lssl /opt/local/lib/sparcv9/libevent.so
-lsendfile -lsocket -lnsl -lcrypto -pthreads
-R/opt/local/lib/sparcv9 -R/opt/local/lib/sparcv9 -R/opt/local/lib<br>
./libtool --tag=CC --mode=compile /usr/bin/gcc -I.
-I/opt/local/include -m64 -mcpu=v9 -std=c99 -flto -D_REENTRANT -o
unbound-checkconf.lo -c `cat .source`<br>
libtool: compile: /usr/bin/gcc -I. -I/opt/local/include -m64
-mcpu=v9 -std=c99 -flto -D_REENTRANT -c
smallapp/unbound-checkconf.c -fPIC -DPIC -o
.libs/unbound-checkconf.o<br>
smallapp/unbound-checkconf.c: In function 'checkconf':<br>
smallapp/unbound-checkconf.c:489:13: error: 'PATH_MAX' undeclared
(first use in this function)<br>
char oldwd[PATH_MAX];<br>
^<br>
smallapp/unbound-checkconf.c:489:13: note: each undeclared
identifier is reported only once for each function it appears in<br>
gmake: *** [unbound-checkconf.lo] Error 1<br>
<br>
===============================================================<br>
SolarisStudio 12.4 for libevent-2 and unbound-1.5.10:<br>
libtool: link:
/opt/SunStudio/SolarisStudio12.4-solaris-sparc-bin/solarisstudio12.4/bin/cc
-I. -I/opt/local/include -m64 -mt -xmemalign=8s -xc99 -mt -o
unbound .libs/acl_list.o .libs/cachedump.o .libs/daemon.o
.libs/remote.o .libs/stats.o .libs/unbound.o .libs/worker.o
.libs/dns.o .libs/infra.o .libs/rrset.o .libs/dname.o
.libs/msgencode.o .libs/as112.o .libs/msgparse.o .libs/msgreply.o
.libs/packed_rrset.o .libs/iterator.o .libs/iter_delegpt.o
.libs/iter_donotq.o .libs/iter_fwd.o .libs/iter_hints.o
.libs/iter_priv.o .libs/iter_resptype.o .libs/iter_scrub.o
.libs/iter_utils.o .libs/localzone.o .libs/mesh.o .libs/modstack.o
.libs/outbound_list.o .libs/alloc.o .libs/config_file.o
.libs/configlexer.o .libs/configparser.o .libs/fptr_wlist.o
.libs/locks.o .libs/log.o .libs/mini_event.o .libs/module.o
.libs/net_help.o .libs/random.o .libs/rbtree.o .libs/regional.o
.libs/rtt.o .libs/dnstree.o .libs/lookup3.o .libs/lruhash.o
.libs/slabhash.o .libs/timehist.o .libs/tube.o
.libs/winsock_event.o .libs/autotrust.o .libs/val_anchor.o
.libs/validator.o .libs/val_kcache.o .libs/val_kentry.o
.libs/val_neg.o .libs/val_nsec3.o .libs/val_nsec.o
.libs/val_secalgo.o .libs/val_sigcrypt.o .libs/val_utils.o
.libs/dns64.o .libs/cachedb.o .libs/netevent.o
.libs/listen_dnsport.o .libs/outside_network.o .libs/ub_event.o
.libs/keyraw.o .libs/sbuffer.o .libs/wire2str.o .libs/parse.o
.libs/parseutil.o .libs/rrdef.o .libs/str2wire.o .libs/snprintf.o
.libs/reallocarray.o .libs/arc4random.o .libs/arc4random_uniform.o
.libs/explicit_bzero.o .libs/arc4_lock.o -L/opt/local/lib/64
-L/opt/local/lib -lssl /opt/local/lib/sparcv9/libevent.so
-lsendfile -lsocket -lnsl -lcrypto -mt -R/opt/local/lib/sparcv9
-R/opt/local/lib/sparcv9 -R/opt/local/lib<br>
./libtool --tag=CC --mode=compile
/opt/SunStudio/SolarisStudio12.4-solaris-sparc-bin/solarisstudio12.4/bin/cc
-I. -I/opt/local/include -m64 -mt -xmemalign=8s -xc99 -mt -o
unbound-checkconf.lo -c `cat .source`<br>
libtool: compile:
/opt/SunStudio/SolarisStudio12.4-solaris-sparc-bin/solarisstudio12.4/bin/cc
-I. -I/opt/local/include -m64 -mt -xmemalign=8s -xc99 -mt -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 135: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 142: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 149: warning: attribute "format" is unknown,
ignored<br>
"./util/log.h", line 174: warning: attribute "format" is unknown,
ignored<br>
"./util/config_file.h", line 891: warning: attribute "format" is
unknown, ignored<br>
"./sldns/sbuffer.h", line 129: warning: attribute "unused" is
unknown, ignored<br>
"./sldns/sbuffer.h", line 676: warning: attribute "format" is
unknown, ignored<br>
"smallapp/unbound-checkconf.c", line 489: undefined symbol:
PATH_MAX<br>
cc: acomp failed for smallapp/unbound-checkconf.c<br>
gmake: *** [unbound-checkconf.lo] Error 1<br>
<br>
</tt><br>
<pre class="moz-signature" cols="72">--
---
Jaco Lesch
SAIX HLS
Email: <a class="moz-txt-link-abbreviated" href="mailto:jacol@saix.net">jacol@saix.net</a>
</pre>
</body>
</html>