ntp_io.c:process_routing_msgs on CentOS 6.8 -- errors with rtm
Jason Azze
jason at azze.org
Sun May 29 17:24:28 UTC 2016
Both i686 and x86_64 compiles fail on CentOS 6.8 with the same errors.
[131/232] Compiling ntpd/ntp_io.c
../../ntpd/ntp_io.c: In function ‘process_routing_msgs’:
../../ntpd/ntp_io.c:4620: error: storage size of ‘rtm’ isn’t known
../../ntpd/ntp_io.c:4659: error: invalid application of ‘sizeof’ to
incomplete type ‘struct rt_msghdr’
../../ntpd/ntp_io.c:4662: error: ‘RTM_VERSION’ undeclared (first use
in this function)
../../ntpd/ntp_io.c:4662: error: (Each undeclared identifier is
reported only once
../../ntpd/ntp_io.c:4662: error: for each function it appears in.)
../../ntpd/ntp_io.c:4620: warning: unused variable ‘rtm’
Stock CentOS 6.8 uses the following...
Kernel: 2.6.32-642.el6.i686
GCC: 4.4.7
glibc: 2.12
Yes, Gary. I know these are ancient, but CentOS 6.8 was just released
last week. :-)
I haven't been testing NTPsec on CentOS 6 for very long, so I don't
know if it ever built successfully.
NTPsec builds fine on CentOS 7 (gcc 4.8.5) and Fedora 23 (gcc 5.3.1).
Here is the full build log output from the x86_64 run.
Started by upstream project "NTPsec_multiplatform" build number 5
originally caused by:
Started by user anonymous
Building remotely on puppet (scons waf lin64) in workspace
/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Done
Cloning the remote Git repository
Cloning repository https://gitlab.com/NTPsec/ntpsec.git
> git init /home/jenkins/workspace/NTPsec_multiplatform/slave/puppet
# timeout=10
Fetching upstream changes from https://gitlab.com/NTPsec/ntpsec.git
> git --version # timeout=10
> git fetch --tags --progress https://gitlab.com/NTPsec/ntpsec.git
+refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url https://gitlab.com/NTPsec/ntpsec.git #
timeout=10
> git config --add remote.origin.fetch
+refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://gitlab.com/NTPsec/ntpsec.git #
timeout=10
Fetching upstream changes from https://gitlab.com/NTPsec/ntpsec.git
> git fetch --tags --progress https://gitlab.com/NTPsec/ntpsec.git
+refs/heads/*:refs/remotes/origin/*
Checking out Revision 95ff581f9814eb1294db9dc71acb6c8d9d3c173b
(refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 95ff581f9814eb1294db9dc71acb6c8d9d3c173b
> git rev-list 95ff581f9814eb1294db9dc71acb6c8d9d3c173b # timeout=10
[puppet] $ /bin/sh -xe /tmp/hudson5010400000144266534.sh
+ ./waf configure --refclock=all
Setting top to :
/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet
Setting out to :
/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build
--- Configuring host ---
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for program 'bison' : /usr/bin/bison
Checking compiler : yes
Compiler found : GCC
Checking for program 'awk' : /bin/awk
Checking for program 'perl' : /usr/bin/perl
Checking for program 'sh' : /bin/sh
Checking for program 'asciidoc' : /usr/bin/asciidoc
Checking for program 'a2x' : /usr/bin/a2x
Checking for program 'xsltproc' : /usr/bin/xsltproc
Checking for program 'git' : /usr/bin/git
DEVEL: Getting revision :
95ff581f9814eb1294db9dc71acb6c8d9d3c173b
Building version : 0.9.4-95ff581
--- 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 sizeof int : 4
Checking sizeof long : 8
Checking sizeof long long : 8
Checking sizeof time_t (time.h) : 8
Checking for multicast capability : yes
Checking for library edit : yes
Checking for library m : yes
Checking for library ossaudio : not found
Checking for library rt : yes
Checking for library curses : yes
Checking for library readline : yes
Checking for library gcc_s : yes
Checking for function adjtimex : yes
Checking for function closefrom : no
Checking for function clock_gettime : yes
Checking for function clock_settime : yes
Checking for function EVP_MD_do_all_sorted : no
Checking for function getclock : no
Checking for function getpassphrase : no
Checking for function MD5Init : no
Checking for function ntp_adjtime : yes
Checking for function ntp_gettime : yes
Checking for function res_init : yes
Checking for function rtprio : no
Checking for function sched_setscheduler : yes
Checking for function settimeofday : yes
Checking for function strlcpy : no
Checking for function strlcat : no
Checking for function timer_create : no
Checking for header stdbool.h : yes
Checking for header dns_sd.h : not found
Checking for header histedit.h : yes
Checking for header ifaddrs.h : yes
Checking for header libscf.h : not found
Checking for header linux/if_addr.h : not found
Compilation check failed but include exists linux/if_addr.h
Checking for header linux/rtnetlink.h : not found
Compilation check failed but include exists linux/rtnetlink.h
Checking for header linux/serial.h : yes
Checking for header machine/soundcard.h : not found
Checking for header md5.h : no
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 readline/readline.h : yes
Checking for header readline/history.h : yes
Checking for header resolv.h : yes
Checking for header semaphore.h : yes
Checking for header stdatomic.h : not found
Checking for header sys/audioio.h : not found
Checking for header sys/capability.h : not found
Checking for header sys/ioctl.h : yes
Checking for header sys/modem.h : not found
Checking for header sys/prctl.h : yes
Checking for header sys/sockio.h : not found
Checking for header sys/soundcard.h : yes
Checking for header sys/sysctl.h : yes
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 header sys/audio.h : not found
Checking for type sockaddr_storage : yes
Checking for sockaddr->sa_len : no
Enabling Refclock Undisciplined Local Clock (1): : Yes
Enabling Refclock Spectracom WWVB/GPS Receivers (4): : Yes
Enabling Refclock TrueTime GPS/GOES/OMEGA Receivers (5): : Yes
Enabling Refclock IRIG Audio Decoder (6): : Yes
Enabling Refclock Radio CHU Audio Demodulator/Decoder (7): : Yes
Enabling Refclock Generic Reference Driver (Parse) (8): : Yes
Enabling Refclock Magnavox MX4200 GPS Receiver (9): : No
Refclock "Magnavox MX4200 GPS Receiver" disabled, PPS API has not been
detected as working.
Enabling Refclock Austron 2200A/2201A GPS Receivers (10): : Yes
Enabling Refclock Arbiter 1088A/B GPS Receiver (11): : Yes
Enabling Refclock NIST/USNO/PTB Modem Time Services (18): : Yes
Enabling Refclock Generic NMEA GPS Receiver (20): : Yes
Enabling Refclock PPS Clock Discipline (22): : No
Refclock "PPS Clock Discipline" disabled, PPS API has not been
detected as working.
Enabling Refclock Hewlett Packard 58503A GPS Receiver (26): : Yes
Enabling Refclock Arcron MSF Receiver (27): : Yes
Enabling Refclock Shared Memory Driver (28): : Yes
Enabling Refclock Trimble Navigation Palisade GPS (29): : Yes
Enabling Refclock Motorola UT Oncore GPS (30): : No
Refclock "Motorola UT Oncore GPS" disabled, PPS API has not been
detected as working.
Enabling Refclock Rockwell Jupiter GPS (31): : No
Refclock "Rockwell Jupiter GPS" disabled, PPS API has not been
detected as working.
Enabling Refclock Dumb Clock (33): : Yes
Enabling Refclock Conrad Parallel Port Radio Clock (35): : Yes
Enabling Refclock hopf GPS/DCF77 6021/komp for Serial Line (38): : Yes
Enabling Refclock hopf GPS/DCF77 6039 for PCI-Bus (39): : Yes
Enabling Refclock JJY Receivers (40): : Yes
Enabling Refclock Zyfer GPStarplus Receiver (42): : Yes
Enabling Refclock NeoClock4X - DCF77 / TDF serial line (44): : Yes
Enabling Refclock Spectracom TSYNC (45): : Yes
Enabling Refclock GPSD NG client protocol (46): : Yes
Checking for %m expansion in vsnprintf(3) : yes
Checking for header sys/capability.h : not found
Checking for library cap : not found
Checking for header event2/event.h : not found
Checking for header event2/thread.h : not found
Checking for library event_core : yes
Checking for library event_pthreads : not found
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 libcap works : no
Checking if libevent2 works : no
Warning libevent2 does not work
This means ntpdig will not be built
While not necessary you will lose 'ntpdate' functionality.
Checking if pthread works : yes
Checking if mDNSResponder works : no
Writing configuration header: : config.h
Build Options
CC : /usr/bin/gcc
CFLAGS : -Wall -Wextra
LDFLAGS :
PREFIX : /usr/local
Debug Support : Yes
Refclocks : 1, 4, 5, 6, 7, 8, 10, 11, 18, 20,
26, 27, 28, 29, 33, 35, 38, 39, 40, 42, 44, 45, 46
Build Manpages : Yes
'configure' finished successfully (1.901s)
+ ./waf build
--- building host ---
Waf: Entering directory
`/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build/host'
[1/5] Processing ntpd/ntp_parser.y
[2/5] Compiling build/host/ntpd/ntp_parser.tab.c
[3/5] Compiling ntpd/keyword-gen.c
[4/5] Linking build/host/ntpd/keyword-gen
[5/5] Compiling build/host/ntpd/ntp_parser.tab.h
178 keywords consumed 843 states of 2047 max.
Waf: Leaving directory
`/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build/host'
--- building main ---
Waf: Entering directory
`/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build/main'
[ 1/232] Compiling libisc/assertions.c
[ 2/232] Compiling libisc/backtrace-emptytbl.c
[ 3/232] Compiling libisc/backtrace.c
[ 4/232] Compiling libisc/error.c
[ 5/232] Compiling libisc/md5.c
[ 6/232] Compiling libisc/netaddr.c
[ 7/232] Compiling libisc/result.c
[ 8/232] Compiling libisc/sha1.c
[ 9/232] Compiling libisc/unix/errno2result.c
[ 10/232] Compiling libisc/unix/interfaceiter.c
[ 11/232] Compiling libisc/unix/net.c
[ 12/232] Linking build/main/libisc/libisc.a
[ 13/232] Compiling libparse/binio.c
[ 14/232] Compiling libparse/clk_computime.c
[ 15/232] Compiling libparse/clk_dcf7000.c
[ 16/232] Compiling libparse/clk_hopf6021.c
[ 17/232] Compiling libparse/clk_meinberg.c
[ 18/232] Compiling libparse/clk_rawdcf.c
[ 19/232] Compiling libparse/clk_rcc8000.c
[ 20/232] Compiling libparse/clk_schmid.c
[ 21/232] Compiling libparse/clk_sel240x.c
[ 22/232] Compiling libparse/clk_trimtaip.c
[ 23/232] Compiling libparse/clk_trimtsip.c
[ 24/232] Compiling libparse/clk_varitext.c
[ 25/232] Compiling libparse/clk_wharton.c
[ 26/232] Compiling libparse/data_mbg.c
[ 27/232] Compiling libparse/gpstolfp.c
[ 28/232] Compiling libparse/ieee754io.c
[ 29/232] Compiling libparse/info_trimble.c
[ 30/232] Compiling libparse/mfp_mul.c
[ 31/232] Compiling libparse/parse.c
[ 32/232] Compiling libparse/parse_conf.c
[ 33/232] Compiling libparse/trim_info.c
[ 34/232] Linking build/main/libparse/libparse.a
[ 35/232] Compiling libntp/a_md5encrypt.c
[ 36/232] Compiling libntp/atolfp.c
[ 37/232] Compiling libntp/authkeys.c
[ 38/232] Compiling libntp/authreadkeys.c
[ 39/232] Compiling libntp/authusekey.c
[ 40/232] Compiling libntp/caljulian.c
[ 41/232] Compiling libntp/caltontp.c
[ 42/232] Compiling libntp/calyearstart.c
[ 43/232] Compiling libntp/clocktime.c
[ 44/232] Compiling libntp/clocktypes.c
[ 45/232] Compiling libntp/decodenetnum.c
[ 46/232] Compiling libntp/dofptoa.c
[ 47/232] Compiling libntp/dolfptoa.c
[ 48/232] Compiling libntp/emalloc.c
[ 49/232] Compiling libntp/getopt.c
[ 50/232] Compiling libntp/hextolfp.c
[ 51/232] Compiling libntp/humandate.c
[ 52/232] Compiling libntp/icom.c
[ 53/232] Compiling libntp/iosignal.c
[ 54/232] Compiling libntp/lib_strbuf.c
[ 55/232] Compiling libntp/machines.c
[ 56/232] Compiling libntp/modetoa.c
[ 57/232] Compiling libntp/mstolfp.c
[ 58/232] Compiling libntp/msyslog.c
[ 59/232] Compiling libntp/netof.c
[ 60/232] Compiling libntp/ntp_calendar.c
[ 61/232] Compiling libntp/ntp_intres.c
[ 62/232] Compiling libntp/ntp_lineedit.c
[ 63/232] Compiling libntp/ntp_random.c
[ 64/232] Compiling libntp/ntp_rfc2553.c
[ 65/232] Compiling libntp/ntp_worker.c
[ 66/232] Compiling libntp/numtoa.c
[ 67/232] Compiling libntp/numtohost.c
[ 68/232] Compiling libntp/prettydate.c
[ 69/232] Compiling libntp/recvbuff.c
[ 70/232] Compiling libntp/refnumtoa.c
[ 71/232] Compiling libntp/refidsmear.c
[ 72/232] Compiling libntp/socket.c
[ 73/232] Compiling libntp/socktoa.c
[ 74/232] Compiling libntp/socktohost.c
[ 75/232] Compiling libntp/ssl_init.c
[ 76/232] Compiling libntp/statestr.c
[ 77/232] Compiling libntp/strl_obsd.c
[ 78/232] Compiling libntp/syssignal.c
[ 79/232] Compiling libntp/timetoa.c
[ 80/232] Compiling libntp/timevalops.c
[ 81/232] Compiling libntp/vint64ops.c
[ 82/232] Compiling libntp/work_thread.c
[ 83/232] Compiling libntp/ymd2yd.c
[ 84/232] Compiling libntp/audio.c
[ 85/232] Compiling libntp/systime.c
[ 86/232] Compiling libsodium/sodium/core.c
[ 87/232] Compiling libsodium/randombytes/randombytes.c
[ 88/232] Compiling libsodium/randombytes/sysrandom/randombytes_sysrandom.c
[ 89/232] Linking build/main/libsodium/libsodium.a
[ 90/232] Compiling ntpd/ntp_control.c
[ 91/232] Compiling ntpd/ntp_filegen.c
[ 92/232] Compiling ntpd/ntp_intercept.c
[ 93/232] Compiling ntpd/ntp_leapsec.c
[ 94/232] Compiling ntpd/ntp_loopfilter.c
[ 95/232] Compiling ntpd/ntp_monitor.c
[ 96/232] Compiling ntpd/ntp_peer.c
[ 97/232] Compiling ntpd/ntp_proto.c
[ 98/232] Compiling ntpd/ntp_restrict.c
[ 99/232] Compiling ntpd/ntp_sandbox.c
[100/232] Compiling ntpd/ntp_signd.c
[101/232] Compiling ntpd/ntp_timer.c
[102/232] Compiling ntpd/ntp_util.c
[103/232] Linking build/main/ntpd/libntpd_lib.a
[104/232] Compiling ntpd/ntp_refclock.c
[105/232] Compiling ntpd/refclock_conf.c
[106/232] Compiling ntpd/refclock_local.c
[107/232] Compiling ntpd/refclock_spectracom.c
[108/232] Compiling ntpd/refclock_true.c
[109/232] Compiling ntpd/refclock_irig.c
[110/232] Compiling ntpd/refclock_chu.c
[111/232] Compiling ntpd/refclock_parse.c
[112/232] Compiling ntpd/refclock_as2201.c
[113/232] Compiling ntpd/refclock_arbiter.c
[114/232] Compiling ntpd/refclock_acts.c
[115/232] Compiling ntpd/refclock_nmea.c
[116/232] Compiling ntpd/refclock_hpgps.c
[117/232] Compiling ntpd/refclock_arc.c
[118/232] Compiling ntpd/refclock_shm.c
[119/232] Compiling ntpd/refclock_palisade.c
[120/232] Compiling ntpd/refclock_dumbclock.c
[121/232] Compiling ntpd/refclock_pcf.c
[122/232] Compiling ntpd/refclock_hopfser.c
[123/232] Compiling ntpd/refclock_hopfpci.c
[124/232] Compiling ntpd/refclock_jjy.c
[125/232] Compiling ntpd/refclock_zyfer.c
[126/232] Compiling ntpd/refclock_neoclock4x.c
[127/232] Compiling ntpd/refclock_tsyncpci.c
[128/232] Compiling ntpd/refclock_gpsdjson.c
[129/232] Creating build/main/ntpd/version.c
[130/232] Compiling ntpd/ntp_config.c
[131/232] Compiling ntpd/ntp_io.c
../../ntpd/ntp_io.c: In function ‘process_routing_msgs’:
../../ntpd/ntp_io.c:4620: error: storage size of ‘rtm’ isn’t known
../../ntpd/ntp_io.c:4659: error: invalid application of ‘sizeof’ to
incomplete type ‘struct rt_msghdr’
../../ntpd/ntp_io.c:4662: error: ‘RTM_VERSION’ undeclared (first use
in this function)
../../ntpd/ntp_io.c:4662: error: (Each undeclared identifier is
reported only once
../../ntpd/ntp_io.c:4662: error: for each function it appears in.)
../../ntpd/ntp_io.c:4620: warning: unused variable ‘rtm’
Waf: Leaving directory
`/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build/main'
Build failed
-> task in 'ntpd' failed (exit status 1):
{task 14978576: c ntp_io.c -> ntp_io.c.27.o}
['/usr/bin/gcc', '-Wall', '-Wextra',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build/host/ntpd',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/ntpd',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/libsodium/include',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/include',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/libisc/include',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/libisc/unix/include',
'-I/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/libisc/pthreads/include',
'../../ntpd/ntp_io.c', '-c', '-o',
'/home/jenkins/workspace/NTPsec_multiplatform/slave/puppet/build/main/ntpd/ntp_io.c.27.o']
Build step 'Execute shell' marked build as failure
Sending e-mails to: jason at azze.org
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: FAILURE
--
Jason Azze
More information about the devel
mailing list