compile error with commit f67578aa
Dear Support Team,
What was working since weeks, even month, isn't working any more.
See below at
[ 30/123] Compiling libntp/isc_interfaceiter.c
Kind regards
Hans
gps0:mayer> ls -ld ntpsec ls: cannot access ntpsec: No such file or directory gps0:mayer> git clone https://hans-mayer@gitlab.com/NTPsec/ntpsec.git Cloning into 'ntpsec'... remote: Counting objects: 136590, done. remote: Compressing objects: 100% (19161/19161), done. remote: Total 136590 (delta 116723), reused 135326 (delta 116168) Receiving objects: 100% (136590/136590), 31.79 MiB | 842 KiB/s, done. Resolving deltas: 100% (116723/116723), done. gps0:mayer> export PYTHONPATH=/usr/local/lib/python2.7/dist-packages/ntp gps0:mayer> cd ntpsec gps0:mayer> ./waf clean --- cleaning host --- The project was not configured: run "waf configure" first! gps0:mayer> ./waf configure --enable-classic-mode --refclock=gpsd,generic,shm,pps,nmea,local Setting top to : /h/u036/mayer/src/ntpsec Setting out to : /h/u036/mayer/src/ntpsec/build --- Configuring host --- Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking compiler version : 4.6.3 Checking for program 'bison' : /usr/bin/bison Checking for program 'awk' : /usr/bin/awk Checking for program 'sh' : /bin/sh Checking for program 'asciidoc' : /usr/bin/asciidoc Checking for asciidoc version >= 8.6.0 : 8.6.7 Checking for program 'a2x' : /usr/bin/a2x Checking for program 'xsltproc' : /usr/bin/xsltproc Checking for program 'git' : /usr/bin/git DEVEL: Getting revision : f67578aa213d1b90a2f52b5eacaedc3950fa2e08 Building version : 0.9.7-f67578a --- Configuring main --- Checking for endianness : little Checking for library m : yes Checking for library rt : yes Checking for library execinfo : not found Checking for library bsd : not found Checking for library ssp : not found Checking for library ssp_nonshared : yes Checking if C compiler supports f_stack_protector_all : yes Checking if C compiler supports PIC : yes Checking if C compiler supports PIE : yes Checking if C compiler supports unused : no Checking if C compiler supports w_cast_qual : yes Checking if C compiler supports w_disabled_optimization : yes Checking if C compiler supports w_float_equal : yes Checking if C compiler supports w_format : yes Checking if C compiler supports w_format_security : yes Checking if C compiler supports w_format_signedness : no Checking if C compiler supports w_implicit_function_declaration : yes Checking if C compiler supports w_init_self : yes Checking if C compiler supports w_invalid_pch : yes Checking if C compiler supports w_missing_declarations : yes Checking if C compiler supports w_multichar : yes Checking if C compiler supports w_packed : yes Checking if C compiler supports w_pointer_arith : yes Checking if C compiler supports w_shadow : yes Checking if C compiler supports w_suggest_attribute_noreturn : yes Checking if C compiler supports w_write_strings : yes Checking if C compiler supports LTO : yes Checking if ld compiler supports z_now : yes Checking if ld compiler supports stripall : yes Checking if ld compiler supports relro : yes Checking for type struct if_laddrconf : not found Checking for type struct if_laddrreq : not found Checking for type struct timex : yes Checking for type struct ntptimeval : yes Checking for header stddef.h : yes Checking for field time_tick in struct timex : not found Checking for field modes in struct timex : yes Checking for field time.tv_nsec in struct ntptimeval : not found Checking for field tai in struct ntptimeval : yes Checking sizeof long : 4 Checking sizeof time_t (time.h) : 4 Checking for header openssl/evp.h : yes Checking for header openssl/rand.h : yes Checking for header openssl/objects.h : yes Checking for library crypto : yes Checking OpenSSL >= 0.9.7 : yes Checking for function _Unwind_Backtrace : yes Checking for function adjtimex : yes Checking for function backtrace_symbols_fd : yes Checking for function closefrom : no Checking for function clock_gettime : yes Checking for function clock_settime : yes Checking for function getrusage : yes 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 : no Checking for function strlcat : no Checking for function timer_create : no Checking for function strlcat : no Checking for function strlcpy : no Checking for header stdbool.h : yes Checking for header alloca.h : yes Checking for header arpa/nameser.h : no Compilation check failed but include exists arpa/nameser.h Checking for header dns_sd.h : not found Checking for header bsd/string.h : not found Checking for header ifaddrs.h : yes Checking for header linux/if_addr.h : yes Checking for header linux/rtnetlink.h : yes Checking for header linux/serial.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 : not found Checking for header semaphore.h : yes Checking for header stdatomic.h : not found 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 : not found Checking for header sys/sysctl.h : yes Checking for header timepps.h : no Checking for header sys/timepps.h : yes Checking for header utmpx.h : yes Checking for header sys/timex.h : yes Checking for sockaddr->sa_len : no Checking for header libscf.h : not found Enabling Refclock GPSD NG client protocol (gpsd): : Yes Enabling Refclock Generic Reference Driver (Parse) (generic): : Yes Enabling Refclock Shared Memory Driver (shm): : Yes Enabling Refclock PPS Clock Discipline (pps): : Yes Enabling Refclock Generic NMEA GPS Receiver (nmea): : Yes Enabling Refclock Undisciplined Local Clock (local): : Yes Checking for %m expansion in vsnprintf(3) : yes Checking for header sys/prctl.h : yes Checking for header sys/capability.h : yes Checking for library cap : yes Checking for header pthread.h : yes Checking for library pthread : yes Checking for library thr : not found Checking for library dns_sd : not found Checking for header dns_sd.h : not found Checking if pthread works : yes Checking if mDNSResponder works : no WARNING: This system has a 32-bit time_t. WARNING: Your ntpd will fail on 2038-01-19T03:14:07Z. Writing configuration header: : config.h Build Options CC : /usr/bin/gcc CFLAGS : -fstack-protector-all -Wshadow -Wpacked -Wcast-qual -Wmissing-declarations -Wdisabled-optimization -Wimplicit-function-declaration -Winvalid-pch -Wpointer-arith -Wwrite-strings -Winit-self -Wfloat-equal -Wformat -Wformat-security -Wsuggest-attribute=noreturn -fPIC -O1 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wunused -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 LDFLAGS : -lssp_nonshared -Wl,-z,now -Wl,--strip-all -Wl,-z,relro LINKFLAGS_NTPD : -pie PREFIX : /usr/local Droproot Support : Linux Debug Support : No Refclocks : gpsd, generic, shm, pps, nmea, local Build Manpages : Yes Checking for program 'python' : /usr/bin/python Checking for python version >= 2.6.0 : 2.7.3 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 (50.720s) gps0:mayer> ./waf build --- building host --- Waf: Entering directory `/h/u036/mayer/src/ntpsec/build/host' [1/3] Processing ntpd/ntp_parser.y [2/3] Processing /h/u036/mayer/src/ntpsec/ntpd/version.h,/h/u036/mayer/src/ntpsec/wafhelpers/.autorevision-cache: VERSION wafhelpers/autorevision.sh -> ntpd/version.h wafhelpers/.autorevision-cache [3/3] Compiling build/host/ntpd/ntp_parser.tab.c warning: Action stamps require git version 2.7+. [4/5] Compiling ntpd/keyword-gen.c [5/5] Linking build/host/ntpd/keyword-gen [6/6] Compiling build/host/ntpd/ntp_parser.tab.h 158 keywords consumed 697 states of 2047 max. Waf: Leaving directory `/h/u036/mayer/src/ntpsec/build/host' --- building main --- Waf: Entering directory `/h/u036/mayer/src/ntpsec/build/main' [ 1/123] Compiling libparse/binio.c [ 2/123] Compiling libparse/clk_computime.c [ 3/123] Compiling libparse/clk_dcf7000.c [ 4/123] Compiling libparse/clk_hopf6021.c [ 5/123] Compiling libparse/clk_meinberg.c [ 6/123] Compiling libparse/clk_rawdcf.c [ 7/123] Compiling libparse/clk_rcc8000.c [ 8/123] Compiling libparse/clk_schmid.c [ 9/123] Compiling libparse/clk_sel240x.c [ 10/123] Compiling libparse/clk_trimtaip.c [ 11/123] Compiling libparse/clk_trimtsip.c [ 12/123] Compiling libparse/clk_varitext.c [ 13/123] Compiling libparse/clk_wharton.c [ 14/123] Compiling libparse/data_mbg.c [ 15/123] Compiling libparse/gpstolfp.c [ 16/123] Compiling libparse/ieee754io.c [ 17/123] Compiling libparse/info_trimble.c [ 18/123] Compiling libparse/parse.c [ 19/123] Compiling libparse/parse_conf.c [ 20/123] Compiling libparse/trim_info.c [ 21/123] Compiling libntp/assert.c [ 22/123] Compiling libntp/authkeys.c [ 23/123] Compiling libntp/authreadkeys.c [ 24/123] Compiling libntp/clocktime.c [ 25/123] Compiling libntp/decodenetnum.c [ 26/123] Compiling libntp/dolfptoa.c [ 27/123] Compiling libntp/getopt.c [ 28/123] Compiling libntp/initnetwork.c [ 29/123] Compiling libntp/isc_error.c [ 30/123] Compiling libntp/isc_interfaceiter.c ../../libntp/isc_interfaceiter.c: In function ‘internal_current’: ../../libntp/isc_interfaceiter.c:381:31: error: ‘IFF_UP’ undeclared (first use in this function) ../../libntp/isc_interfaceiter.c:381:31: note: each undeclared identifier is reported only once for each function it appears in ../../libntp/isc_interfaceiter.c:384:31: error: ‘IFF_POINTOPOINT’ undeclared (first use in this function) ../../libntp/isc_interfaceiter.c:387:31: error: ‘IFF_LOOPBACK’ undeclared (first use in this function) ../../libntp/isc_interfaceiter.c:390:31: error: ‘IFF_BROADCAST’ undeclared (first use in this function) Waf: Leaving directory `/h/u036/mayer/src/ntpsec/build/main' Build failed -> task in 'ntp' failed with exit status 1 (run with -v to display more information) gps0:mayer> gps0:mayer> git log -1 commit f67578aa213d1b90a2f52b5eacaedc3950fa2e08 Author: Eric S. Raymond Date: Sat Aug 26 14:52:00 2017 -0400 Comment polishing. gps0:mayer> gps0:mayer> gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.6.3 (Debian 4.6.3-14)