Package: ntp
Version: 1:4.2.0a+stable-4
Followup-For: Bug #299621
The attached patch corrects the problem.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages ntp depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcap1 1:1.10-14 support for getting/setting POSIX.
ii libreadline5 5.0-10 GNU readline and history libraries
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii perl-modules 5.8.4-8 Core Perl modules
ii psmisc 21.6-1 Utilities that use the proc filesy
-- no debconf information
diff -a -r -u OLD_ntp-4.2.0a+stable/include/ntp_stdlib.h ntp-4.2.0a+stable/include/ntp_stdlib.h
--- OLD_ntp-4.2.0a+stable/include/ntp_stdlib.h 2005-03-16 19:23:41.000000000 +0000
+++ ntp-4.2.0a+stable/include/ntp_stdlib.h 2005-03-17 15:46:16.000000000 +0000
@@ -135,7 +135,7 @@
/* clocktypes.c */
struct clktype;
-extern struct clktype *clktypes;
+extern struct clktype clktypes[];
/* getopt.c */
extern char * ntp_optarg; /* global argument pointer */
diff -a -r -u OLD_ntp-4.2.0a+stable/libntp/clocktypes.c ntp-4.2.0a+stable/libntp/clocktypes.c
--- OLD_ntp-4.2.0a+stable/libntp/clocktypes.c 2005-03-16 19:23:41.000000000 +0000
+++ ntp-4.2.0a+stable/libntp/clocktypes.c 2005-03-17 15:46:03.000000000 +0000
@@ -9,7 +9,7 @@
#include "ntp_refclock.h"
#include "ntp_stdlib.h"
-struct clktype *clktypes = {
+struct clktype clktypes[] = {
{ REFCLK_NONE, "unspecified type (0)",
"UNKNOWN" },
{ REFCLK_LOCALCLOCK, "Undisciplined local clock (1)",