[ntp:bugs] [Bug 382] New: ntpd does not honor sysconfigdir argument
to configure script
bugzilla at ntp.org
bugzilla at ntp.org
Mon Jan 17 00:39:46 UTC 2005
http://bugzilla.ntp.org/show_bug.cgi?id=382
Summary: ntpd does not honor sysconfigdir argument to configure
script
Product: ntp
Version: 4.2.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ntpd
AssignedTo: stenn at ntp.org
ReportedBy: lafleurcp at hotmail.com
CC: bugs at ntp.org
I was trying to set up ntp to install inside its own directory tree
(/software/stow/ntp-4.2.0) and provided the following command to the configure
script:
./configure --prefix=/software/stow/ntp-4.2.0 \
--sysconfdir=/software/stow/ntp-4.2.0/etc \
--bindir=/software/stow/ntp-4.2.0/sbin
Redundancy in that command aside... The configure, make, and make install worked
fine. I then created a config file:
/software/stow/ntp-4.2.0/etc/ntp.conf
When I launched ntpd, I received an error stating that ntpd could not read
/etc/ntp.conf.
Looking through the source tree, ${NTP_TOPLEVEL}/include/ntp_config.h looks to
be setting CONFIG_FILE to a literal "/etc/ntp.conf". A line or two above is a
pre-processor test for whether CONFIG_FILE is already defined. So, something is
not being set/changed correctly. Either the configure script is failing to make
an entry in the Makefile that sets the value of CONFIG_FILE, or some other
command (a sed for instance) is failing to change the literal "/etc/ntp.conf" in
ntp_config.h to the value given with the sysconfdir argument. Also, doing a
"strings" command on my ntpd executable gives:
/etc/egd-pool
/etc/entropy
My cursory glance through the souce tree didn't turn up any locations where
those files were mentioned, but they seem to be suffering from the same problem.
I'm not sure if the localstatedir argument behaves the same way. I see a similar
block of code in ${NTP_TOPLEVEL}/ntpd/ntp_util.c regarding a literal string for
"/var/NTP".
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the bugs
mailing list