[ntp:questions] continuous ntpd crasches.
kostecke at ntp.org
Sun Sep 9 01:47:51 UTC 2012
On 2012-09-08, samurai <samurai at samurai.jp> wrote:
> Unfortunately ntp debian package is compiled using configure
> --disable--debug so I can't debug it
> and I can't have a core dump.
You can trivially solve this yourself by rebuilding the Debian NTP
package with debugging enabled. Here's how:
1. Add a 'deb-src' line to /etc/apt/sources.list. You can do this by
duplicating your 'deb' line and changing the leading 'deb' to 'deb-src'.
2. Change to a scratch directory (e.g. /var/tmp) and run the following
commands to download the NTP source and set up your build environment (tool
chain and build-dependencies for NTP):
$ sudo apt-get update
$ sudo apt-get install build-essential devscripts fakeroot
$ apt-get source ntp
$ sudo apt-get build-dep ntp
3. Change to the ntp-4.* directory and edit debian/rules to enable
debugging. Find the line with --disable-debugging and either change
'disable' to 'enable' or remove just that option (leaving the rest of
that line in place).
4. While in the ntp-4.* directory run the following command to build
your custom ntp package:
$ debuild -us -uc
5. Once the build is done run the following command in the ntp-4.*
directory to install your custom ntp package:
$ sudo debi
This process is documented in a number of places on-line such as:
Steve Kostecke <kostecke at ntp.org>
NTP Public Services Project - http://support.ntp.org/
More information about the questions