Warnings/Errors building with Oracle Developer Studio on Solaris 11
I'm filing a separate issue from #207 (closed) since this deals with Oracle Developer Studio and that other issue focuses on gcc.
$ ./waf configure --enable-crypto --refclock=all build
Setting top to : /home/selsky/ntpsec
Setting out to : /home/selsky/ntpsec/build
--- Configuring host ---
Checking for 'suncc' (C compiler) : /opt/developerstudio12.5/bin/cc
Checking for program 'bison' : /usr/bin/bison
Checking compiler : yes
Compiler found : SUNCC
Checking for program 'awk' : /usr/bin/awk
Checking for program 'sh' : /usr/bin/sh
Checking for program 'asciidoc' : not found
Checking for program 'a2x' : not found
Checking for program 'xsltproc' : /usr/bin/xsltproc
Checking for program 'git' : /usr/bin/git
DEVEL: Getting revision : 393eff055649ad233f3611d18abda9d5fee18b4f
Building version : 0.9.6-393eff0
--- Configuring main ---
Checking build target : unix
Checking for type uint64_t : yes
Checking for type struct if_laddrconf : no
Checking for type struct if_laddrreq : no
Checking for type struct timex : yes
Checking for type struct ntptimeval : yes
Checking for time_tick in struct timex : no
Checking for modes in struct timex : yes
Checking for time.tv_nsec in struct ntptimeval : no
Checking for tai in struct ntptimeval : no
Checking sizeof int : 4
Checking sizeof long : 4
Checking sizeof long long : 8
Checking sizeof time_t (time.h) : 4
Checking for library m : yes
Checking for library rt : yes
Checking for header openssl/asn1_mac.h : yes
Checking for header openssl/bn.h : yes
Checking for header openssl/err.h : yes
Checking for header openssl/evp.h : yes
Checking for header openssl/pem.h : yes
Checking for header openssl/rand.h : yes
Checking for header openssl/objects.h : yes
Checking for header openssl/x509v3.h : yes
Checking for header openssl/ssl.h : yes
Checking for library ssl : yes
Checking for library crypto : yes
Checking if OpenSSL works : yes
Checking for function adjtimex : no
Checking for function closefrom : yes
Checking for function clock_gettime : yes
Checking for function clock_settime : yes
Checking for function EVP_MD_do_all_sorted : yes
Checking for function getdtablesize : yes
Checking for function getrusage : yes
Checking for function MD5Init : no
Checking for function ntp_adjtime : yes
Checking for function ntp_gettime : yes
Checking for function res_init : no
Checking for function sched_setscheduler : yes
Checking for function strlcpy : yes
Checking for function strlcat : yes
Checking for function timer_create : yes
Checking for header stdbool.h : yes
Checking for header alloca.h : yes
Checking for header arpa/nameser.h : yes
Checking for header dns_sd.h : yes
Checking for header ifaddrs.h : yes
Checking for header libscf.h : yes
Checking for header linux/if_addr.h : no
Checking for header linux/rtnetlink.h : no
Checking for header linux/serial.h : not found
Checking for header md5.h : yes
Checking for header net/if6.h : not found
Checking for header net/route.h : yes
Checking for header netinfo/ni.h : not found
Checking for header priv.h : yes
Checking for header resolv.h : yes
Checking for header semaphore.h : yes
Checking for header stdatomic.h : yes
Checking for header sys/clockctl.h : not found
Checking for header sys/ioctl.h : yes
Checking for header sys/modem.h : not found
Checking for header sys/sockio.h : yes
Checking for header sys/sysctl.h : no
Checking for header timepps.h : no
Checking for header sys/timepps.h : no
Checking for header utmpx.h : yes
Checking for header sys/timex.h : yes
Checking for type sockaddr_storage : yes
Checking for sockaddr->sa_len : no
Enabling Refclock Motorola UT Oncore GPS (oncore): : No
Refclock "Motorola UT Oncore GPS" disabled, PPS API has not been detected as working.
Enabling Refclock Trimble Navigation GPSes (trimble): : Yes
Enabling Refclock TrueTime GPS/GOES/OMEGA Receivers (truetime): : Yes
Enabling Refclock GPSD NG client protocol (gpsd): : Yes
Enabling Refclock JJY Receivers (jjy): : Yes
Enabling Refclock Generic Reference Driver (Parse) (generic): : Yes
Enabling Refclock Spectracom GPS Receivers (spectracom): : Yes
Enabling Refclock Dumb Clock (dumbclock): : Yes
Enabling Refclock Shared Memory Driver (shm): : Yes
Enabling Refclock PPS Clock Discipline (pps): : No
Refclock "PPS Clock Discipline" disabled, PPS API has not been detected as working.
Enabling Refclock Hewlett Packard 58503A GPS Receiver (hpgps): : Yes
Enabling Refclock Zyfer GPStarplus Receiver (zyfer): : Yes
Enabling Refclock Arbiter 1088A/B GPS Receiver (arbiter): : Yes
Enabling Refclock Generic NMEA GPS Receiver (nmea): : Yes
Enabling Refclock NeoClock4X - DCF77 / TDF serial line (neoclock): : Yes
Enabling Refclock Rockwell Jupiter GPS (jupiter): : No
Refclock "Rockwell Jupiter GPS" disabled, PPS API has not been detected as working.
Enabling Refclock NIST/USNO/PTB Modem Time Services (modem): : Yes
Enabling Refclock Undisciplined Local Clock (local): : Yes
Enabling Refclock Magnavox MX4200 and related GPS receivers (magnavox): : No
Refclock "Magnavox MX4200 and related GPS receivers" disabled, PPS API has not been detected as working.
Checking for %m expansion in vsnprintf(3) : no
Checking for header pthread.h : yes
Checking for library pthread : yes
Checking for library thr : not found
Checking for library dns_sd : yes
Checking for header dns_sd.h : yes
Checking if pthread works : yes
Checking if mDNSResponder works : yes
Writing configuration header: : config.h
Build Options
CC : /opt/developerstudio12.5/bin/cc
CFLAGS : -Wall -Wextra -Wstrict-prototypes -std=c99
LDFLAGS :
PREFIX : /usr/local
Debug Support : Yes
Refclocks : trimble, truetime, gpsd, jjy, generic, spectracom, dumbclock, shm, hpgps, zyfer, arbiter, nmea, neoclock, modem, local
Build Manpages : No
Checking for program 'python' : /usr/bin/python
Checking for python version >= 2.6.0 : 2.7.9
python-config : /usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
Testing pyext configuration : yes
'configure' finished successfully (19.079s)
--- building host ---
Waf: Entering directory `/home/selsky/ntpsec/build/host'
[1/2] Processing ntpd/ntp_parser.y
[2/2] Compiling build/host/ntpd/ntp_parser.tab.c
[3/4] Compiling ntpd/keyword-gen.c
[4/4] Linking build/host/ntpd/keyword-gen
[5/5] Compiling build/host/ntpd/ntp_parser.tab.h
166 keywords consumed 725 states of 2047 max.
Waf: Leaving directory `/home/selsky/ntpsec/build/host'
--- building main ---
Waf: Entering directory `/home/selsky/ntpsec/build/main'
--- PYTHONPATH is not set, loading the Python ntp library may be troublesome ---
[ 1/140] Compiling libisc/assertions.c
[ 2/140] Compiling libisc/backtrace-emptytbl.c
[ 3/140] Compiling libisc/backtrace.c
[ 4/140] Compiling libisc/error.c
[ 5/140] Compiling libisc/netaddr.c
[ 6/140] Compiling libisc/sha1.c
[ 7/140] Compiling libisc/errno2result.c
[ 8/140] Compiling libisc/interfaceiter.c
"../../libisc/interfaceiter.c", line 138: warning: syntax error: empty declaration
"../../libisc/interfaceiter.c", line 143: warning: syntax error: empty declaration
"../../libisc/interfaceiter.c", line 148: warning: syntax error: empty declaration
"../../libisc/interfaceiter.c", line 154: warning: syntax error: empty declaration
[ 9/140] Compiling libisc/net.c
[ 10/140] Linking build/main/libisc/libisc.a
[ 11/140] Compiling libparse/binio.c
[ 12/140] Compiling libparse/clk_computime.c
[ 13/140] Compiling libparse/clk_dcf7000.c
[ 14/140] Compiling libparse/clk_hopf6021.c
[ 15/140] Compiling libparse/clk_meinberg.c
[ 16/140] Compiling libparse/clk_rawdcf.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 17/140] Compiling libparse/clk_rcc8000.c
[ 18/140] Compiling libparse/clk_schmid.c
[ 19/140] Compiling libparse/clk_sel240x.c
[ 20/140] Compiling libparse/clk_trimtaip.c
[ 21/140] Compiling libparse/clk_trimtsip.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 22/140] Compiling libparse/clk_varitext.c
[ 23/140] Compiling libparse/clk_wharton.c
[ 24/140] Compiling libparse/data_mbg.c
[ 25/140] Compiling libparse/gpstolfp.c
[ 26/140] Compiling libparse/ieee754io.c
[ 27/140] Compiling libparse/info_trimble.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 28/140] Compiling libparse/mfp_mul.c
[ 29/140] Compiling libparse/parse.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 30/140] Compiling libparse/parse_conf.c
[ 31/140] Compiling libparse/trim_info.c
[ 32/140] Linking build/main/libparse/libparse.a
[ 33/140] Compiling libntp/a_md5encrypt.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 34/140] Compiling libntp/atolfp.c
[ 35/140] Compiling libntp/authkeys.c
[ 36/140] Compiling libntp/authreadkeys.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 37/140] Compiling libntp/clocktime.c
[ 38/140] Compiling libntp/decodenetnum.c
[ 39/140] Compiling libntp/dofptoa.c
[ 40/140] Compiling libntp/dolfptoa.c
[ 41/140] Compiling libntp/getopt.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 42/140] Compiling libntp/initnetwork.c
[ 43/140] Compiling libntp/md5.c
[ 44/140] Compiling libntp/mstolfp.c
[ 45/140] Compiling libntp/netof.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 46/140] Compiling libntp/ntp_endian.c
[ 47/140] Compiling libntp/ntp_intres.c
"../../include/ntp.h", line 20: warning: typedef redeclared: u_long
"../../include/ntp.h", line 21: warning: typedef redeclared: u_short
"../../include/ntp.h", line 22: warning: typedef redeclared: u_int
[ 48/140] Compiling libntp/ntp_random.c
"../../libsodium/include/sodium/core.h", line 11: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 28: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 31: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 34: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 37: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 40: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 43: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 46: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes.h", line 51: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 20: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 23: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 26: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 29: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 32: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 35: syntax error before or at: __global
"../../libsodium/include/sodium/randombytes_sysrandom.h", line 38: syntax error before or at: __global
cc: acomp failed for ../../libntp/ntp_random.c
Waf: Leaving directory `/home/selsky/ntpsec/build/main'
Build failed
-> task in 'ntp' failed with exit status 2 (run with -v to display more information)