Errors building unbound 1.5.10 on Solaris 11

Jaco Lesch jacol at saix.net
Sat Oct 1 12:18:22 UTC 2016


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".

===============================================================
GCC 4.8.2 for libevent-2 and unbound-1.5.10:
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
/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
./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`
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
smallapp/unbound-checkconf.c: In function 'checkconf':
smallapp/unbound-checkconf.c:489:13: error: 'PATH_MAX' undeclared (first 
use in this function)
   char oldwd[PATH_MAX];
              ^
smallapp/unbound-checkconf.c:489:13: note: each undeclared identifier is 
reported only once for each function it appears in
gmake: *** [unbound-checkconf.lo] Error 1

===============================================================
SolarisStudio 12.4 for libevent-2 and unbound-1.5.10:
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
./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`
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
"./util/log.h", line 75: warning:  attribute "format" is unknown, ignored
"./util/log.h", line 135: warning:  attribute "format" is unknown, ignored
"./util/log.h", line 142: warning:  attribute "format" is unknown, ignored
"./util/log.h", line 149: warning:  attribute "format" is unknown, ignored
"./util/log.h", line 174: warning:  attribute "format" is unknown, ignored
"./util/config_file.h", line 891: warning:  attribute "format" is 
unknown, ignored
"./sldns/sbuffer.h", line 129: warning:  attribute "unused" is unknown, 
ignored
"./sldns/sbuffer.h", line 676: warning:  attribute "format" is unknown, 
ignored
"smallapp/unbound-checkconf.c", line 489: undefined symbol: PATH_MAX
cc: acomp failed for smallapp/unbound-checkconf.c
gmake: *** [unbound-checkconf.lo] Error 1


-- 
---
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/20161001/3c5c699f/attachment.htm>


More information about the Unbound-users mailing list