W.C.A. Wijngaards wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Simon-Bernard, > > The problem is the way in which you called configure, > I can reproduce the bug if I do like you do: > $ CC='cc -xc99' CFLAGS=-O LDFLAGS='-lsocket -lnsl' ./configure > (just unbound-checkconf my.conf will do to trigger it). > > However, both unbound and ldns have a good configure to enable -xc99 and > link -lsocket -lnsl and so on. So I can do this and then it works fine: > $ CC=cc ./configure > > You may have to make clean for the next compile (you did not have > - --enable-debug, no dependency tracking). This is both ldns and unbound > compilation. > > Best regards, > Wouter > > Hi Wouter, I just did it and it doesn`t work... So I used a new user, no user env at all, except default... I set the PATH to /usr/bin:/usr/ccs/bin:/usr/sfw/bin. Did what you said, so gzcat unbound-1.2.1.tar.gz | tar xf - cd unbound-1.2.1 CC=cc ./configure --enable-debug Still fails... I'm able to say, it's related to ldns... either the one included with unbound, or the standalone one... In either case, the CC=cc ./configure doesn't work... So, first, just for ldns by itself... -bash-3.00$ gzcat ldns-1.5.1.tar.gz | tar xf - -bash-3.00$ cd ldns-1.5.1 -bash-3.00$ CC=cc ./configure checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep checking for egrep... /usr/sfw/bin/ggrep -E checking for AIX... no checking for gcc... (cached) cc checking whether we are using the GNU C compiler... (cached) no checking whether cc accepts -g... (cached) yes checking for cc option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... yes checking whether cc supports -std=c99... no checking whether cc supports -xc99... yes checking for an ANSI C-conforming const... yes checking whether cc supports -g... yes checking whether cc supports -O2... yes checking whether cc supports -Wall... no checking whether cc supports -W... no checking whether cc supports -Wwrite-strings... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for getopt.h... yes checking for time.h... yes checking for winsock2.h... no checking for ws2tcpip.h... no checking whether we need -xc99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for cc... failed checking whether we need -xc99 as a flag for cc... failed checking whether we need -D_BSD_SOURCE as a flag for cc... failed checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for cc... failed checking whether we need -D__EXTENSIONS__ as a flag for cc... failed checking for inline... inline checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for doxygen... no checking for SSL... found in /usr/sfw checking for HMAC_CTX_init in -lcrypto... yes checking for openssl/ssl.h... yes checking for openssl/err.h... yes checking for openssl/rand.h... yes checking for glibtool... no checking for libtool15... no checking for libtool... no checking for ar... /usr/ccs/bin/ar checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/sfw/bin/ggrep -F checking for non-GNU ld... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786240 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking for /usr/ccs/bin/ld option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for ar... /usr/ccs/bin/ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/ccs/bin/nm -p output from cc object... ok checking for dlfcn.h... yes checking for objdir... .libs checking for cc option to produce PIC... -KPIC -DPIC checking if cc PIC flag -KPIC -DPIC works... yes checking if cc static flag -Bstatic works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/ccs/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ANSI C header files... (cached) yes checking for getopt.h... (cached) yes checking for stdarg.h... yes checking for stdbool.h... no checking for openssl/ssl.h... (cached) yes checking for netinet/in.h... yes checking for time.h... (cached) yes checking for arpa/inet.h... yes checking for netdb.h... yes checking for sys/param.h... yes checking for sys/mount.h... yes checking for sys/socket.h... yes checking for inttypes.h... (cached) yes checking for socklen_t... yes checking for ssize_t... yes checking for in_addr_t... yes checking for in_port_t... yes checking for socket in -lsocket... yes checking for inet_pton in -lnsl... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... no checking for b64_pton... no checking for b64_ntop... no checking for b32_pton... no checking for b32_ntop... no checking for timegm... no checking for gmtime_r... yes checking for ctime_r... yes checking for isblank... yes checking for inet_aton... yes checking for inet_pton... yes checking for inet_ntop... yes checking for snprintf... yes checking for strlcpy... yes checking for memmove... yes checking for endprotoent... yes checking for endservent... yes checking for sleep... yes checking for random... yes checking for getaddrinfo... yes checking whether the C compiler (cc) accepts the "format" attribute... yes checking whether the C compiler (cc) accepts the "unused" attribute... yes configure: creating ./config.status config.status: creating Makefile config.status: creating ldns/net.h config.status: creating ldns/util.h config.status: creating ldns/config.h config.status: executing libtool commands copying header files -bash-3.00$ gmake ./install-sh -m 644 ldns/error.h ./include/ldns/ ./libtool --tag=CC --mode=compile cc -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c libtool: compile: cc -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c -KPIC -DPIC -o .libs/rdata.o "/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in a c99 compilation environment." cc: acomp failed for rdata.c gmake: *** [rdata.o] Error 1 -bash-3.00$ Now, -bash-3.00$ CC='cc -xc99' ./configure checking for gcc... cc -xc99 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc -xc99 accepts -g... yes checking for cc -xc99 option to accept ISO C89... none needed checking how to run the C preprocessor... cc -xc99 -E checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep checking for egrep... /usr/sfw/bin/ggrep -E checking for AIX... no checking for gcc... (cached) cc -xc99 checking whether we are using the GNU C compiler... (cached) no checking whether cc -xc99 accepts -g... (cached) yes checking for cc -xc99 option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... yes checking whether cc -xc99 supports -std=c99... no checking whether cc -xc99 supports -xc99... yes checking for an ANSI C-conforming const... yes checking whether cc -xc99 supports -g... yes checking whether cc -xc99 supports -O2... yes checking whether cc -xc99 supports -Wall... no checking whether cc -xc99 supports -W... no checking whether cc -xc99 supports -Wwrite-strings... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for getopt.h... yes checking for time.h... yes checking for winsock2.h... no checking for ws2tcpip.h... no checking whether we need -xc99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for cc -xc99... failed checking whether we need -xc99 as a flag for cc -xc99... failed checking whether we need -D_BSD_SOURCE as a flag for cc -xc99... failed checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for cc -xc99... failed checking whether we need -D__EXTENSIONS__ as a flag for cc -xc99... failed checking for inline... inline checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for doxygen... no checking for SSL... found in /usr/sfw checking for HMAC_CTX_init in -lcrypto... yes checking for openssl/ssl.h... yes checking for openssl/err.h... yes checking for openssl/rand.h... yes checking for glibtool... no checking for libtool15... no checking for libtool... no checking for ar... /usr/ccs/bin/ar checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/sfw/bin/ggrep -F checking for non-GNU ld... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 786240 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking for /usr/ccs/bin/ld option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for ar... /usr/ccs/bin/ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/ccs/bin/nm -p output from cc -xc99 object... ok checking for dlfcn.h... yes checking for objdir... .libs checking for cc -xc99 option to produce PIC... -KPIC -DPIC checking if cc -xc99 PIC flag -KPIC -DPIC works... yes checking if cc -xc99 static flag -Bstatic works... no checking if cc -xc99 supports -c -o file.o... yes checking if cc -xc99 supports -c -o file.o... (cached) yes checking whether the cc -xc99 linker (/usr/ccs/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ANSI C header files... (cached) yes checking for getopt.h... (cached) yes checking for stdarg.h... yes checking for stdbool.h... yes checking for openssl/ssl.h... (cached) yes checking for netinet/in.h... yes checking for time.h... (cached) yes checking for arpa/inet.h... yes checking for netdb.h... yes checking for sys/param.h... yes checking for sys/mount.h... yes checking for sys/socket.h... yes checking for inttypes.h... (cached) yes checking for socklen_t... yes checking for ssize_t... yes checking for in_addr_t... yes checking for in_port_t... yes checking for socket in -lsocket... yes checking for inet_pton in -lnsl... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... no checking for b64_pton... no checking for b64_ntop... no_C checking for b32_pton... no checking for b32_ntop... no checking for timegm... no checking for gmtime_r... yes checking for ctime_r... yes checking for isblank... yes checking for inet_aton... yes checking for inet_pton... yes checking for inet_ntop... yes checking for snprintf... yes checking for strlcpy... yes checking for memmove... yes checking for endprotoent... yes checking for endservent... yes checking for sleep... yes checking for random... yes checking for getaddrinfo... yes checking whether the C compiler (cc -xc99) accepts the "format" attribute... yes checking whether the C compiler (cc -xc99) accepts the "unused" attribute... yes configure: creating ./config.status config.status: creating Makefile config.status: creating ldns/net.h config.status: creating ldns/util.h config.status: creating ldns/config.h config.status: executing libtool commands copying header files -bash-3.00$ -bash-3.00$ gmake ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c -KPIC -DPIC -o .libs/rdata.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c -o rdata.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c util.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c util.c -KPIC -DPIC -o .libs/util.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c util.c -o util.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rr.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rr.c -KPIC -DPIC -o .libs/rr.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rr.c -o rr.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c packet.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c packet.c -KPIC -DPIC -o .libs/packet.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c packet.c -o packet.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c wire2host.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c wire2host.c -KPIC -DPIC -o .libs/wire2host.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c wire2host.c -o wire2host.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c host2str.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c host2str.c -KPIC -DPIC -o .libs/host2str.o "host2str.c", line 160: warning: enum type mismatch: arg #2 "host2str.c", line 212: warning: enum type mismatch: arg #2 libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c host2str.c -o host2str.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c buffer.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c buffer.c -KPIC -DPIC -o .libs/buffer.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c buffer.c -o buffer.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c str2host.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c str2host.c -KPIC -DPIC -o .libs/str2host.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c str2host.c -o str2host.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c tsig.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c tsig.c -KPIC -DPIC -o .libs/tsig.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c tsig.c -o tsig.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c resolver.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c resolver.c -KPIC -DPIC -o .libs/resolver.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c resolver.c -o resolver.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c net.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c net.c -KPIC -DPIC -o .libs/net.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c net.c -o net.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c host2wire.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c host2wire.c -KPIC -DPIC -o .libs/host2wire.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c host2wire.c -o host2wire.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dname.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dname.c -KPIC -DPIC -o .libs/dname.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dname.c -o dname.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec.c -KPIC -DPIC -o .libs/dnssec.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec.c -o dnssec.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_verify.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_verify.c -KPIC -DPIC -o .libs/dnssec_verify.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_verify.c -o dnssec_verify.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c keys.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c keys.c -KPIC -DPIC -o .libs/keys.o "keys.c", line 77: warning: statement not reached "keys.c", line 94: warning: enum type mismatch: arg #2 "keys.c", line 153: warning: enum type mismatch: op "=" "keys.c", line 159: warning: enum type mismatch: op "=" "keys.c", line 165: warning: enum type mismatch: op "=" "keys.c", line 168: warning: enum type mismatch: op "=" libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c keys.c -o keys.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c higher.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c higher.c -KPIC -DPIC -o .libs/higher.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c higher.c -o higher.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rr_functions.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rr_functions.c -KPIC -DPIC -o .libs/rr_functions.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rr_functions.c -o rr_functions.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c parse.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c parse.c -KPIC -DPIC -o .libs/parse.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c parse.c -o parse.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c update.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c update.c -KPIC -DPIC -o .libs/update.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c update.c -o update.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c error.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c error.c -KPIC -DPIC -o .libs/error.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c error.c -o error.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c zone.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c zone.c -KPIC -DPIC -o .libs/zone.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c zone.c -o zone.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_zone.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_zone.c -KPIC -DPIC -o .libs/dnssec_zone.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_zone.c -o dnssec_zone.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_sign.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_sign.c -KPIC -DPIC -o .libs/dnssec_sign.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c dnssec_sign.c -o dnssec_sign.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rbtree.c libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rbtree.c -KPIC -DPIC -o .libs/rbtree.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rbtree.c -o rbtree.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/malloc.c -o malloc.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/malloc.c -KPIC -DPIC -o .libs/malloc.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/malloc.c -o malloc.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/realloc.c -o realloc.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/realloc.c -KPIC -DPIC -o .libs/realloc.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/realloc.c -o realloc.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b64_pton.c -o b64_pton.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b64_pton.c -KPIC -DPIC -o .libs/b64_pton.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b64_pton.c -o b64_pton.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b64_ntop.c -o b64_ntop.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b64_ntop.c -KPIC -DPIC -o .libs/b64_ntop.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b64_ntop.c -o b64_ntop.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b32_pton.c -o b32_pton.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b32_pton.c -KPIC -DPIC -o .libs/b32_pton.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b32_pton.c -o b32_pton.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b32_ntop.c -o b32_ntop.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b32_ntop.c -KPIC -DPIC -o .libs/b32_ntop.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/b32_ntop.c -o b32_ntop.o >/dev/null 2>&1 ./libtool --tag=CC --mode=compile cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/timegm.c -o timegm.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/timegm.c -KPIC -DPIC -o .libs/timegm.o libtool: compile: cc -xc99 -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c ./compat/timegm.c -o timegm.o >/dev/null 2>&1 ./libtool --tag=CC --mode=link cc -xc99 -O2 -g -I. -I. -L/usr/sfw/lib -lcrypto -version-number 1:5:1 -no-undefined --export-symbols ./ldns_symbols.def -o libldns.la rdata.lo util.lo rr.lo packet.lo wire2host.lo host2str.lo buffer.lo str2host.lo tsig.lo resolver.lo net.lo host2wire.lo dname.lo dnssec.lo dnssec_verify.lo keys.lo higher.lo rr_functions.lo parse.lo update.lo error.lo zone.lo dnssec_zone.lo dnssec_sign.lo rbtree.lo malloc.lo realloc.lo b64_pton.lo b64_ntop.lo b32_pton.lo b32_ntop.lo timegm.lo -rpath /usr/local/lib -R/usr/sfw/lib libtool: link: cc -xc99 -G -z defs -h libldns.so.1 -o .libs/libldns.so.1.5.1 .libs/rdata.o .libs/util.o .libs/rr.o .libs/packet.o .libs/wire2host.o .libs/host2str.o .libs/buffer.o .libs/str2host.o .libs/tsig.o .libs/resolver.o .libs/net.o .libs/host2wire.o .libs/dname.o .libs/dnssec.o .libs/dnssec_verify.o .libs/keys.o .libs/higher.o .libs/rr_functions.o .libs/parse.o .libs/update.o .libs/error.o .libs/zone.o .libs/dnssec_zone.o .libs/dnssec_sign.o .libs/rbtree.o .libs/malloc.o .libs/realloc.o .libs/b64_pton.o .libs/b64_ntop.o .libs/b32_pton.o .libs/b32_ntop.o .libs/timegm.o -R/usr/sfw/lib -L/usr/sfw/lib -lcrypto -lc Undefined first referenced symbol in file recv .libs/net.o (symbol belongs to implicit dependency /lib/libsocket.so.1) getservbyname .libs/str2host.o (symbol belongs to implicit dependency /lib/libsocket.so.1) getservbyport .libs/host2str.o (symbol belongs to implicit dependency /lib/libsocket.so.1) sendto .libs/net.o (symbol belongs to implicit dependency /lib/libsocket.so.1) socket .libs/net.o (symbol belongs to implicit dependency /lib/libsocket.so.1) endprotoent .libs/host2str.o (symbol belongs to implicit dependency /lib/libsocket.so.1) getprotobyname .libs/str2host.o (symbol belongs to implicit dependency /lib/libsocket.so.1) getprotobynumber .libs/host2str.o (symbol belongs to implicit dependency /lib/libsocket.so.1) endservent .libs/host2str.o (symbol belongs to implicit dependency /lib/libsocket.so.1) setsockopt .libs/net.o (symbol belongs to implicit dependency /lib/libsocket.so.1) connect .libs/net.o (symbol belongs to implicit dependency /lib/libsocket.so.1) recvfrom .libs/net.o (symbol belongs to implicit dependency /lib/libsocket.so.1) inet_pton .libs/str2host.o (symbol belongs to implicit dependency /lib/libnsl.so.1) inet_ntop .libs/host2str.o (symbol belongs to implicit dependency /lib/libnsl.so.1) ld: fatal: Symbol referencing errors. No output written to .libs/libldns.so.1.5.1 gmake: *** [libldns.la] Error 1 -bash-3.00$ Ok then, I'm missing some libs... vi Makefile line 26: 26 LDFLAGS = -L/usr/sfw/lib -lcrypto Should read (I think): 26 LDFLAGS = -L/usr/sfw/lib -lcrypto -lnsl -lsocket -bash-3.00$ gmake ./libtool --tag=CC --mode=link cc -xc99 -O2 -g -I. -I. -L/usr/sfw/lib -lcrypto -lnsl -lsocket -version-number 1:5:1 -no-undefined --export-symbols ./ldns_symbols.def -o libldns.la rdata.lo util.lo rr.lo packet.lo wire2host.lo host2str.lo buffer.lo str2host.lo tsig.lo resolver.lo net.lo host2wire.lo dname.lo dnssec.lo dnssec_verify.lo keys.lo higher.lo rr_functions.lo parse.lo update.lo error.lo zone.lo dnssec_zone.lo dnssec_sign.lo rbtree.lo malloc.lo realloc.lo b64_pton.lo b64_ntop.lo b32_pton.lo b32_ntop.lo timegm.lo -rpath /usr/local/lib -R/usr/sfw/lib libtool: link: cc -xc99 -G -z defs -h libldns.so.1 -o .libs/libldns.so.1.5.1 .libs/rdata.o .libs/util.o .libs/rr.o .libs/packet.o .libs/wire2host.o .libs/host2str.o .libs/buffer.o .libs/str2host.o .libs/tsig.o .libs/resolver.o .libs/net.o .libs/host2wire.o .libs/dname.o .libs/dnssec.o .libs/dnssec_verify.o .libs/keys.o .libs/higher.o .libs/rr_functions.o .libs/parse.o .libs/update.o .libs/error.o .libs/zone.o .libs/dnssec_zone.o .libs/dnssec_sign.o .libs/rbtree.o .libs/malloc.o .libs/realloc.o .libs/b64_pton.o .libs/b64_ntop.o .libs/b32_pton.o .libs/b32_ntop.o .libs/timegm.o -R/usr/sfw/lib -L/usr/sfw/lib -lcrypto -lnsl -lsocket -lc libtool: link: (cd ".libs" && rm -f "libldns.so.1" && ln -s "libldns.so.1.5.1" "libldns.so.1") libtool: link: (cd ".libs" && rm -f "libldns.so" && ln -s "libldns.so.1.5.1" "libldns.so") libtool: link: /usr/ccs/bin/ar cru .libs/libldns.a rdata.o util.o rr.o packet.o wire2host.o host2str.o buffer.o str2host.o tsig.o resolver.o net.o host2wire.o dname.o dnssec.o dnssec_verify.o keys.o higher.o rr_functions.o parse.o update.o error.o zone.o dnssec_zone.o dnssec_sign.o rbtree.o malloc.o realloc.o b64_pton.o b64_ntop.o b32_pton.o b32_ntop.o timegm.o libtool: link: ranlib .libs/libldns.a libtool: link: ( cd ".libs" && rm -f "libldns.la" && ln -s "../libldns.la" "libldns.la" ) if [ ! -d lib ] ; then ln -s .libs lib ; fi ; ./libtool --tag=CC --mode=link cc -xc99 ./linktest.c -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -lldns -o linktest libtool: link: cc -xc99 ./linktest.c -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -o .libs/linktest /export/home/ccon/ldns-1.5.1/.libs/libldns.so -L/usr/sfw/lib -lcrypto -lnsl -lsocket -R/usr/local/lib -bash-3.00$ Now, It's compiled... But is it ok ??? Or if I go only with unbound by itself, and the included ldns... -bash-3.00$ CC=cc ./configure --enable-debug checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep checking for egrep... /usr/sfw/bin/ggrep -E checking for AIX... no checking for an ANSI C-conforming const... yes checking whether cc supports -g... yes checking whether cc supports -O2... yes checking cc dependency flag... -xM1 checking whether cc supports -std=c99... no checking whether cc supports -xc99... yes checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for getopt.h... yes checking for time.h... yes checking for winsock2.h... no checking for ws2tcpip.h... no checking whether cc supports -Werror... no checking whether cc supports -Wall... no checking whether we need -xc99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for cc... failed checking whether we need -xc99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for cc... yes checking whether we need -xc99 as a flag for cc... no checking whether we need -D_BSD_SOURCE as a flag for cc... no checking whether we need -D_GNU_SOURCE as a flag for cc... no checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for cc... failed checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for cc... no checking whether we need -D__EXTENSIONS__ as a flag for cc... no checking whether cc supports -xO4... yes checking whether cc supports -xtarget=generic... yes checking whether cc supports -W... no checking whether cc supports -Wall... (cached) no checking whether cc supports -Wextra... no checking whether cc supports -Wdeclaration-after-statement... no checking for inline... inline checking whether the C compiler (cc) accepts the "format" attribute... yes checking whether the C compiler (cc) accepts the "unused" attribute... yes checking for ar... /usr/ccs/bin/ar checking for doxygen... no checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for flex... flex checking lex output file root... lex.yy checking lex library... -ll checking whether yytext is a pointer... yes checking for bison... bison -y checking for a sed that does not truncate output... /usr/bin/sed checking for non-GNU ld... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 786240 checking command to parse /usr/ccs/bin/nm -p output from cc object... ok checking for objdir... .libs checking for ar... /usr/ccs/bin/ar checking for ranlib... ranlib checking for strip... strip checking for cc option to produce PIC... -KPIC checking if cc PIC flag -KPIC works... yes checking if cc static flag -Bstatic works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/ccs/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool checking for ANSI C header files... (cached) yes checking for stdarg.h... yes checking for stdbool.h... yes checking for netinet/in.h... yes checking for sys/param.h... yes checking for sys/socket.h... yes checking for sys/uio.h... yes checking for sys/resource.h... yes checking for arpa/inet.h... yes checking for syslog.h... yes checking for netdb.h... yes checking for sys/wait.h... yes checking for pwd.h... yes checking for glob.h... yes checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for size_t... yes checking for ssize_t... yes checking for uid_t in sys/types.h... yes checking for pid_t... yes checking for off_t... yes checking for u_char... yes checking for rlim_t... yes checking for socklen_t... yes checking for in_addr_t... yes checking for in_port_t... yes checking for SSL... found in /usr/sfw checking for HMAC_CTX_init in -lcrypto... yes checking for openssl/ssl.h... yes checking for openssl/err.h... yes checking for openssl/rand.h... yes checking for EVP_sha1... yes checking for EVP_sha256... no checking for EVP_sha512... no checking if libssl needs libdl... no checking whether pthreads work with -pthreads... no checking for the pthreads library -lpthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... -D_REENTRANT checking for xlc_r... no checking for cc_r... no checking for pthread_spinlock_t... yes checking for pthread_rwlock_t... yes checking for library containing inet_pton... -lnsl checking for library containing socket... -lsocket checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... no checking for unistd.h... (cached) yes checking for working chown... no checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... no checking for working vfork... (cached) yes checking return type of signal handlers... void checking for _LARGEFILE_SOURCE value needed for large files... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for cc... no checking for getaddrinfo... yes checking for tzset... yes checking for sigprocmask... yes checking for fcntl... yes checking for getpwnam... yes checking for getrlimit... yes checking for setsid... yes checking for sbrk... yes checking for chroot... yes checking for kill... yes checking for sleep... yes checking for usleep... yes checking for random... yes checking for srandom... yes checking for recvmsg... yes checking for sendmsg... yes checking for writev... yes checking for setresuid... no checking for setreuid... yes checking for setresgid... no checking for setregid... yes checking for glob... yes checking if nonblocking sockets work... no checking whether mkdir has one arg... no checking for ioctlsocket... no checking for inet_aton... yes checking for inet_pton... yes checking for inet_ntop... yes checking for snprintf... yes checking for strlcpy... yes checking for memmove... yes checking for gmtime_r... yes checking for ldns_buffer_copy in -lldns... no **************************************************************** *** *** *** ldns library not found (--with-ldns= to specify by hand) *** *** Building ldns library from package included in this one. *** *** *** **************************************************************** configure: Configure ldns-src scheduled after config.status configure: creating ./config.status config.status: creating Makefile config.status: creating doc/example.conf config.status: creating doc/libunbound.3 config.status: creating doc/unbound.8 config.status: creating doc/unbound-checkconf.8 config.status: creating doc/unbound.conf.5 config.status: creating doc/unbound-control.8 config.status: creating config.h === configuring in ldns-src (/export/home/ccon/unbound-1.2.1/ldns-src) configure: running /bin/bash ./configure '--prefix=/usr/local' '--enable-debug' 'CC=cc' --cache-file=/dev/null --srcdir=. checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep checking for egrep... /usr/sfw/bin/ggrep -E checking for AIX... no checking for gcc... (cached) cc checking whether we are using the GNU C compiler... (cached) no checking whether cc accepts -g... (cached) yes checking for cc option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... yes checking whether cc supports -std=c99... no checking whether cc supports -xc99... yes checking for an ANSI C-conforming const... yes checking whether cc supports -g... yes checking whether cc supports -O2... yes checking whether cc supports -Wall... no checking whether cc supports -W... no checking whether cc supports -Wwrite-strings... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for getopt.h... yes checking for time.h... yes checking for winsock2.h... no checking for ws2tcpip.h... no checking whether we need -xc99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for cc... failed checking whether we need -xc99 as a flag for cc... failed checking whether we need -D_BSD_SOURCE as a flag for cc... failed checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for cc... failed checking whether we need -D__EXTENSIONS__ as a flag for cc... failed checking for inline... inline checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for doxygen... no checking for SSL... found in /usr/sfw checking for HMAC_CTX_init in -lcrypto... yes checking for openssl/ssl.h... yes checking for openssl/err.h... yes checking for openssl/rand.h... yes checking for glibtool... no checking for libtool15... no checking for libtool... no checking for ar... /usr/ccs/bin/ar checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for a sed that does not truncate output... /usr/bin/sed checking for non-GNU ld... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 786240 checking command to parse /usr/ccs/bin/nm -p output from cc object... ok checking for objdir... .libs checking for ar... /usr/ccs/bin/ar checking for ranlib... ranlib checking for strip... strip checking for cc option to produce PIC... -KPIC checking if cc PIC flag -KPIC works... yes checking if cc static flag -Bstatic works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/ccs/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... solaris2.10 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool checking for ANSI C header files... (cached) yes checking for getopt.h... (cached) yes checking for stdarg.h... yes checking for stdbool.h... no checking for openssl/ssl.h... (cached) yes checking for netinet/in.h... yes checking for time.h... (cached) yes checking for arpa/inet.h... yes checking for netdb.h... yes checking for sys/param.h... yes checking for sys/mount.h... yes checking for sys/socket.h... yes checking for inttypes.h... (cached) yes checking for socklen_t... yes checking for ssize_t... yes checking for in_addr_t... yes checking for in_port_t... yes checking for socket in -lsocket... yes checking for inet_pton in -lnsl... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... no checking for b64_pton... no checking for b64_ntop... no checking for b32_pton... no checking for b32_ntop... no checking for timegm... no checking for gmtime_r... yes checking for ctime_r... yes checking for isblank... yes checking for inet_aton... yes checking for inet_pton... yes checking for inet_ntop... yes checking for snprintf... yes checking for strlcpy... yes checking for memmove... yes checking for endprotoent... yes checking for endservent... yes checking for sleep... yes checking for random... yes checking for getaddrinfo... yes checking whether the C compiler (cc) accepts the "format" attribute... yes checking whether the C compiler (cc) accepts the "unused" attribute... yes configure: creating ./config.status config.status: creating Makefile config.status: creating ldns/net.h config.status: creating ldns/util.h config.status: creating ldns/config.h copying header files -bash-3.00$ gmake Depend validator/validator.c gmake[1]: Entering directory `/export/home/ccon/unbound-1.2.1/ldns-src' ./install-sh -m 644 ldns/error.h ./include/ldns/ gmake[1]: Leaving directory `/export/home/ccon/unbound-1.2.1/ldns-src' Depend validator/val_utils.c Depend validator/val_sigcrypt.c Depend validator/val_nsec3.c Depend validator/val_nsec.c Depend validator/val_neg.c Depend validator/val_kentry.c Depend validator/val_kcache.c Depend validator/val_anchor.c Depend util/winsock_event.c Depend util/tube.c Depend util/timehist.c Depend util/storage/slabhash.c Depend util/storage/lruhash.c Depend util/storage/lookup3.c Depend util/storage/dnstree.c Depend util/rtt.c Depend util/regional.c Depend util/rbtree.c Depend util/random.c Depend util/netevent.c Depend util/net_help.c Depend util/module.c Depend util/mini_event.c Depend util/log.c Depend util/locks.c Depend util/fptr_wlist.c Depend util/data/packed_rrset.c Depend util/data/msgreply.c Depend util/data/msgparse.c Depend util/data/msgencode.c Depend util/data/dname.c Depend util/configparser.c Depend util/configlexer.c Depend util/config_file.c Depend util/alloc.c Depend testcode/unitverify.c Depend testcode/unitslabhash.c Depend testcode/unitneg.c Depend testcode/unitmsgparse.c Depend testcode/unitmain.c Depend testcode/unitlruhash.c Depend testcode/unitdname.c Depend testcode/unitanchor.c Depend testcode/testbound.c Depend testcode/streamtcp.c Depend testcode/signit.c Depend testcode/replay.c Depend testcode/readhex.c Depend testcode/pktview.c Depend testcode/perf.c Depend testcode/memstats.c Depend testcode/lock_verify.c Depend testcode/ldns-testpkts.c Depend testcode/harvest.c Depend testcode/fake_event.c Depend testcode/delayer.c Depend testcode/asynclook.c Depend smallapp/worker_cb.c Depend smallapp/unbound-host.c Depend smallapp/unbound-control.c Depend smallapp/unbound-checkconf.c Depend services/outside_network.c Depend services/outbound_list.c Depend services/modstack.c Depend services/mesh.c Depend services/localzone.c Depend services/listen_dnsport.c Depend services/cache/rrset.c Depend services/cache/infra.c Depend services/cache/dns.c Depend libunbound/libworker.c Depend libunbound/libunbound.c Depend libunbound/context.c Depend iterator/iterator.c Depend iterator/iter_utils.c Depend iterator/iter_scrub.c Depend iterator/iter_resptype.c Depend iterator/iter_priv.c Depend iterator/iter_hints.c Depend iterator/iter_fwd.c Depend iterator/iter_donotq.c Depend iterator/iter_delegpt.c Depend daemon/worker.c Depend daemon/unbound.c Depend daemon/stats.c Depend daemon/remote.c Depend daemon/daemon.c Depend daemon/cachedump.c Depend daemon/acl_list.c Build services/listen_dnsport.c Build services/localzone.c Build services/mesh.c Build services/modstack.c Build services/outbound_list.c Build services/outside_network.c Build services/cache/dns.c Build services/cache/infra.c Build services/cache/rrset.c Build util/alloc.c Build util/config_file.c Build util/configlexer.c Build util/configparser.c Build util/fptr_wlist.c Build util/locks.c Build util/log.c Build util/mini_event.c Build util/module.c Build util/net_help.c Build util/netevent.c Build util/random.c Build util/rbtree.c Build util/regional.c Build util/rtt.c Build util/timehist.c Build util/tube.c Build util/winsock_event.c Build util/data/dname.c Build util/data/msgencode.c Build util/data/msgparse.c Build util/data/msgreply.c "util/data/msgreply.c", line 324: warning: statement not reached Build util/data/packed_rrset.c Build util/storage/dnstree.c Build util/storage/lookup3.c Build util/storage/lruhash.c Build util/storage/slabhash.c Build iterator/iter_delegpt.c Build iterator/iter_donotq.c Build iterator/iter_fwd.c Build iterator/iter_hints.c Build iterator/iter_priv.c Build iterator/iter_resptype.c Build iterator/iter_scrub.c Build iterator/iter_utils.c Build iterator/iterator.c Build validator/val_anchor.c Build validator/val_kcache.c Build validator/val_kentry.c Build validator/val_neg.c Build validator/val_nsec.c Build validator/val_nsec3.c Build validator/val_sigcrypt.c Build validator/val_utils.c Build validator/validator.c Build daemon/acl_list.c Build daemon/cachedump.c Build daemon/daemon.c Build daemon/remote.c Build daemon/stats.c Build daemon/unbound.c Build daemon/worker.c Build compat/malloc.c gmake[1]: Entering directory `/export/home/ccon/unbound-1.2.1/ldns-src' ./libtool --tag=CC --mode=compile cc -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c mkdir .libs cc -I/usr/sfw/include -DHAVE_CONFIG_H -I. -I. -O2 -g -I. -I. -c rdata.c -KPIC -DPIC -o .libs/rdata.o "/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in a c99 compilation environment." cc: acomp failed for rdata.c gmake[1]: *** [rdata.o] Error 1 gmake[1]: Leaving directory `/export/home/ccon/unbound-1.2.1/ldns-src' gmake: *** [ldns-src/lib/libldns.a] Error 2 -bash-3.00$ So ??? How to get this done/fixed ? Thank's again for the help... I prefer to use Sun Studio C because I think performance wise on Sun box, it's better and gives me faster executable... Simon. -- Simon-Bernard Drolet, SPecialiste X Inc., 514.247.6741. SBDrolet<at>gmail(dot)com, Sun Solaris Contractor Certified Sun Technical Instructor, Sun Certified System Admin (2.5,7,8,9,10) Sun Certified Network Admin (2.5,7,8,9,10) and Security Admin for Solaris 9,10.