[ntp:questions] failed to compile ntpd 4.2.8p3-RC1

Harlan Stenn stenn at ntp.org
Thu May 21 18:48:30 UTC 2015


Hi Marco,

Glad to see questions@ is working!

Marco Marongiu writes:
> Hi there
> 
> Is it a known problem that ntpd 4.2.8p3-RC1 doesn't compile on Debian
> Linux 6 (squeeze) and 7 (wheezy)? If it's supposed to work, what am I
> doing wrong? (See errors below)

The problem you are seeing is that you seem to have libopts installed on
your system, and the version installed there is an older version than
the one we need.

The way to fix that is for you to specify --enable-local-libopts on your
'configure' line.

Bruce Korb and I can discuss this - right now the libopts.m4 autoconf
macro says "Default to system libopts", and it *might* be OK to change
this code so that the rule is "Default to system libopts if it is
compatible with the version we provide".

H
--
> In scope of my leap second experiments it's quite interesting that this
> bug was fixed:
> 
> * [Bug 2745] ntpd -x steps clock on leap second
>    Do leap second stepping only of the step adjustment is beyond the
>    proper jump distance limit and step correction is allowed at all.
> 
> Unfortunately, while it compiles OK on jessie it breaks badly on squeeze:
> 
> > gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../lib/isc/include -I../lib/is
> c/pthreads/include -I../lib/isc/unix/include   -D_GNU_SOURCE -ffunction-secti
> ons -fdata-sections -Wall -Wcast-align -Wcast-qual -Wmissing-prototypes -Wpoi
> nter-arith -Wshadow -Winit-self -Wstrict-overflow   -Wno-strict-prototypes -g
>  -fno-strict-aliasing -O2 -c cmd_args.c
> > In file included from cmd_args.c:13:
> > ntpd-opts.h:59:3: error: #error option template version mismatches autoopts
> /options.h header
> > In file included from cmd_args.c:13:
> > ntpd-opts.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' bef
> ore 'Me'
> > ntpd-opts.h:105: warning: data definition has no type or storage class
> > ntpd-opts.h:105: warning: type defaults to 'int' in declaration of 'teOptIn
> dex'
> > cmd_args.c: In function 'getCmdOpts':
> > cmd_args.c:46: error: 'INDEX_OPT_IPV4' undeclared (first use in this functi
> on)
> > cmd_args.c:46: error: (Each undeclared identifier is reported only once
> > cmd_args.c:46: error: for each function it appears in.)
> > cmd_args.c:48: error: 'INDEX_OPT_IPV6' undeclared (first use in this functi
> on)
> > cmd_args.c:58: error: 'INDEX_OPT_AUTHREQ' undeclared (first use in this fun
> ction)
> > cmd_args.c:60: error: 'INDEX_OPT_AUTHNOREQ' undeclared (first use in this f
> unction)
> > cmd_args.c:63: error: 'INDEX_OPT_BCASTSYNC' undeclared (first use in this f
> unction)
> > cmd_args.c:66: error: 'INDEX_OPT_CONFIGFILE' undeclared (first use in this 
> function)
> > cmd_args.c:73: error: 'INDEX_OPT_DRIFTFILE' undeclared (first use in this f
> unction)
> > cmd_args.c:76: error: 'INDEX_OPT_PANICGATE' undeclared (first use in this f
> unction)
> > cmd_args.c:79: error: 'INDEX_OPT_FORCE_STEP_ONCE' undeclared (first use in 
> this function)
> > cmd_args.c:83: error: 'INDEX_OPT_JAILDIR' undeclared (first use in this fun
> ction)
> > cmd_args.c:89: error: 'INDEX_OPT_KEYFILE' undeclared (first use in this fun
> ction)
> > cmd_args.c:92: error: 'INDEX_OPT_PIDFILE' undeclared (first use in this fun
> ction)
> > cmd_args.c:95: error: 'INDEX_OPT_QUIT' undeclared (first use in this functi
> on)
> > cmd_args.c:98: error: 'INDEX_OPT_PROPAGATIONDELAY' undeclared (first use in
>  this function)
> > cmd_args.c:112: error: 'INDEX_OPT_STATSDIR' undeclared (first use in this f
> unction)
> > cmd_args.c:115: error: 'INDEX_OPT_TRUSTEDKEY' undeclared (first use in this
>  function)
> > cmd_args.c:135: error: 'INDEX_OPT_USER' undeclared (first use in this funct
> ion)
> > cmd_args.c:150: error: 'INDEX_OPT_VAR' undeclared (first use in this functi
> on)
> > cmd_args.c:164: error: 'INDEX_OPT_DVAR' undeclared (first use in this funct
> ion)
> > cmd_args.c:176: error: 'INDEX_OPT_SLEW' undeclared (first use in this funct
> ion)
> > cmd_args.c:179: error: 'INDEX_OPT_UPDATEINTERVAL' undeclared (first use in 
> this function)
> > make[3]: *** [cmd_args.o] Error 1
> > make[3]: Leaving directory `/usr/local/src/ntp-4.2.8p3-RC1/ntpd'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/usr/local/src/ntp-4.2.8p3-RC1/ntpd'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/src/ntp-4.2.8p3-RC1'
> > make: *** [all] Error 2
> 
> and wheezy:
> 
> > gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../lib/isc/include -I../lib/is
> c/pthreads/include -I../lib/isc/unix/include   -D_FORTIFY_SOURCE=2 -D_GNU_SOU
> RCE -ffunction-sections -fdata-sections -Wall -Wcast-align -Wcast-qual -Wmiss
> ing-prototypes -Wpointer-arith -Wshadow -Winit-self -Wstrict-overflow   -Wstr
> ict-prototypes -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -W
> error=format-security -fno-strict-aliasing -c cmd_args.c
> > In file included from cmd_args.c:13:0:
> > ntpd-opts.h:59:3: error: #error option template version mismatches autoopts
> /options.h header
> > ntpd-opts.h:60:3: error: unknown type name 'Choke'
> > ntpd-opts.h:60:11: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before '.' token
> > ntpd-opts.h:105:3: warning: data definition has no type or storage class [e
> nabled by default]
> > ntpd-opts.h:105:3: warning: type defaults to 'int' in declaration of 'teOpt
> Index' [-Wimplicit-int]
> > cmd_args.c: In function 'getCmdOpts':
> > cmd_args.c:46:7: error: 'INDEX_OPT_IPV4' undeclared (first use in this func
> tion)
> > cmd_args.c:46:7: note: each undeclared identifier is reported only once for
>  each function it appears in
> > cmd_args.c:48:12: error: 'INDEX_OPT_IPV6' undeclared (first use in this fun
> ction)
> > cmd_args.c:58:6: error: 'INDEX_OPT_AUTHREQ' undeclared (first use in this f
> unction)
> > cmd_args.c:60:11: error: 'INDEX_OPT_AUTHNOREQ' undeclared (first use in thi
> s function)
> > cmd_args.c:63:6: error: 'INDEX_OPT_BCASTSYNC' undeclared (first use in this
>  function)
> > cmd_args.c:66:6: error: 'INDEX_OPT_CONFIGFILE' undeclared (first use in thi
> s function)
> > cmd_args.c:73:6: error: 'INDEX_OPT_DRIFTFILE' undeclared (first use in this
>  function)
> > cmd_args.c:76:6: error: 'INDEX_OPT_PANICGATE' undeclared (first use in this
>  function)
> > cmd_args.c:79:6: error: 'INDEX_OPT_FORCE_STEP_ONCE' undeclared (first use i
> n this function)
> > cmd_args.c:83:6: error: 'INDEX_OPT_JAILDIR' undeclared (first use in this f
> unction)
> > cmd_args.c:89:6: error: 'INDEX_OPT_KEYFILE' undeclared (first use in this f
> unction)
> > cmd_args.c:92:6: error: 'INDEX_OPT_PIDFILE' undeclared (first use in this f
> unction)
> > cmd_args.c:95:6: error: 'INDEX_OPT_QUIT' undeclared (first use in this func
> tion)
> > cmd_args.c:98:6: error: 'INDEX_OPT_PROPAGATIONDELAY' undeclared (first use 
> in this function)
> > cmd_args.c:112:6: error: 'INDEX_OPT_STATSDIR' undeclared (first use in this
>  function)
> > cmd_args.c:115:6: error: 'INDEX_OPT_TRUSTEDKEY' undeclared (first use in th
> is function)
> > cmd_args.c:135:6: error: 'INDEX_OPT_USER' undeclared (first use in this fun
> ction)
> > cmd_args.c:150:6: error: 'INDEX_OPT_VAR' undeclared (first use in this func
> tion)
> > cmd_args.c:164:6: error: 'INDEX_OPT_DVAR' undeclared (first use in this fun
> ction)
> > cmd_args.c:176:6: error: 'INDEX_OPT_SLEW' undeclared (first use in this fun
> ction)
> > cmd_args.c:179:6: error: 'INDEX_OPT_UPDATEINTERVAL' undeclared (first use i
> n this function)
> > make[3]: *** [cmd_args.o] Error 1
> > make[3]: Leaving directory `/usr/local/src/ntp-4.2.8p3-RC1/ntpd'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/usr/local/src/ntp-4.2.8p3-RC1/ntpd'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/src/ntp-4.2.8p3-RC1'
> > make: *** [all] Error 2
> 
> Any hints?
> 
> Ciao
> -- bronto
> _______________________________________________
> questions mailing list
> questions at lists.ntp.org
> http://lists.ntp.org/listinfo/questions
> 


More information about the questions mailing list