ntp_io.c:process_routing_msgs on CentOS 6.8 -- errors with rtm

Matthew Selsky Matthew.Selsky at twosigma.com
Sun May 29 18:56:53 UTC 2016


On Sun, May 29, 2016 at 01:24:28PM -0400, Jason Azze wrote:
> 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).

Hey Jason,

There's a patch attached to https://gitlab.com/NTPsec/ntpsec/issues/63 for should work for CentOS 6.


Cheers,
-Matt


More information about the devel mailing list