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)
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/isc/pthreads/include -I../lib/isc/unix/include -D_GNU_SOURCE > -ffunction-sections -fdata-sections -Wall -Wcast-align -Wcast-qual > -Wmissing-prototypes -Wpointer-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__' > before '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 > 'teOptIndex' > cmd_args.c: In function 'getCmdOpts': > cmd_args.c:46: error: 'INDEX_OPT_IPV4' undeclared (first use in this function) > 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 function) > cmd_args.c:58: error: 'INDEX_OPT_AUTHREQ' undeclared (first use in this > function) > cmd_args.c:60: error: 'INDEX_OPT_AUTHNOREQ' undeclared (first use in this > function) > cmd_args.c:63: error: 'INDEX_OPT_BCASTSYNC' undeclared (first use in this > function) > 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 > function) > cmd_args.c:76: error: 'INDEX_OPT_PANICGATE' undeclared (first use in this > function) > 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 > function) > cmd_args.c:89: error: 'INDEX_OPT_KEYFILE' undeclared (first use in this > function) > cmd_args.c:92: error: 'INDEX_OPT_PIDFILE' undeclared (first use in this > function) > cmd_args.c:95: error: 'INDEX_OPT_QUIT' undeclared (first use in this function) > 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 > function) > 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 > function) > cmd_args.c:150: error: 'INDEX_OPT_VAR' undeclared (first use in this function) > cmd_args.c:164: error: 'INDEX_OPT_DVAR' undeclared (first use in this > function) > cmd_args.c:176: error: 'INDEX_OPT_SLEW' undeclared (first use in this > function) > 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/isc/pthreads/include -I../lib/isc/unix/include -D_FORTIFY_SOURCE=2 > -D_GNU_SOURCE -ffunction-sections -fdata-sections -Wall -Wcast-align > -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Winit-self > -Wstrict-overflow -Wstrict-prototypes -g -O2 -fstack-protector > --param=ssp-buffer-size=4 -Wformat -Werror=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 > [enabled by default] > ntpd-opts.h:105:3: warning: type defaults to 'int' in declaration of > 'teOptIndex' [-Wimplicit-int] > cmd_args.c: In function 'getCmdOpts': > cmd_args.c:46:7: error: 'INDEX_OPT_IPV4' undeclared (first use in this > function) > 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 > function) > cmd_args.c:58:6: error: 'INDEX_OPT_AUTHREQ' undeclared (first use in this > function) > cmd_args.c:60:11: error: 'INDEX_OPT_AUTHNOREQ' undeclared (first use in this > 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 this > 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 in > this function) > cmd_args.c:83:6: error: 'INDEX_OPT_JAILDIR' undeclared (first use in this > function) > cmd_args.c:89:6: error: 'INDEX_OPT_KEYFILE' undeclared (first use in this > function) > cmd_args.c:92:6: error: 'INDEX_OPT_PIDFILE' undeclared (first use in this > function) > cmd_args.c:95:6: error: 'INDEX_OPT_QUIT' undeclared (first use in this > function) > 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 this > function) > cmd_args.c:135:6: error: 'INDEX_OPT_USER' undeclared (first use in this > function) > cmd_args.c:150:6: error: 'INDEX_OPT_VAR' undeclared (first use in this > function) > cmd_args.c:164:6: error: 'INDEX_OPT_DVAR' undeclared (first use in this > function) > cmd_args.c:176:6: error: 'INDEX_OPT_SLEW' undeclared (first use in this > function) > cmd_args.c:179:6: 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 Any hints? Ciao -- bronto _______________________________________________ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions