[ntp:questions] failed to compile ntpd 4.2.8p3-RC1
Marco Marongiu
brontolinux at gmail.com
Fri May 22 14:59:38 UTC 2015
Hi Harlan, all
On 21/05/15 20:48, Harlan Stenn wrote:
> The way to fix that is for you to specify --enable-local-libopts on your
> 'configure' line.
I managed to compile them on all the three versions. The configure
command lines are below.
Anyway, I am getting some weird problems in squeeze. When started, ntpd
triggers these messages on the console:
Message from syslogd at leap-squeeze at Jul 1 01:30:50 ...
t of memory [5668]
But if I look at who's hogging the memory most (and "hogging" is really
overstated here):
> root at leap-squeeze:~/leap# ps -e -o pid,user,rss,vsz,args --sort -vsz | head -n 11
> PID USER RSS VSZ COMMAND
> 5598 root 9328 109808 /var/cfengine/bin/cf-serverd
> 2164 root 3380 70500 sshd: root at pts/0
> 959 root 1972 52704 /usr/sbin/rsyslogd -c5
> 2163 root 1164 49212 /usr/sbin/sshd
> 1436 root 8324 41524 /usr/sbin/munin-node
> 5668 ntp 7828 40532 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:107
> 5591 root 4200 39552 /var/cfengine/bin/cf-execd
> 4182 postfix 2380 39432 qmgr -l -t fifo -u
> 6634 postfix 2332 39272 pickup -l -t fifo -u -c
> 4180 root 2436 37208 /usr/lib/postfix/master
> root at leap-squeeze:~/leap#
And besides, there is plenty of free memory:
> root at leap-squeeze:~/leap# free
> total used free shared buffers cached
> Mem: 2025588 263596 1761992 0 21420 174152
> -/+ buffers/cache: 68024 1957564
> Swap: 3954680 0 3954680
However, restarting the process may finally make it behave. Which is odd.
The configuration on the problematic node is:
> ########################################################################
> # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
> #
> # This file is centrally managed by cfengine
> # MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!!!
> # If you need to make changes, please change the policy or the template
> # used to generate this file
> #
> ########################################################################
>
> driftfile /var/lib/ntp/ntp.drift
>
> # Enable statistics (watch out for disk space!!!)
> statsdir /var/log/ntpstats/
>
> statistics loopstats peerstats clockstats
> filegen loopstats file loopstats type day enable
> filegen peerstats file peerstats type day enable
> filegen clockstats file clockstats type day enable
>
> # Upstream servers
> server 10.10.10.10 burst iburst
>
> # Disable NTP features
> disable kernel
>
> # Don't allow clock stepping
> tinker step 0
>
> # Restrictions and ACLs
> restrict -4 default kod notrap nomodify nopeer noquery
> restrict -6 default kod notrap nomodify nopeer noquery
>
> # Local users may interrogate the ntp server more closely.
> restrict 127.0.0.1
> restrict ::1
The configure command lines on the nodes:
Squeeze:
> ./configure CFLAGS=-g -fno-strict-aliasing -O2 CPPFLAGS=-D_GNU_SOURCE ac_cv_var_tick=no ac_cv_var_tickadj=no --prefix=/usr --enable-all-clocks --enable-parse-clocks --enable-SHM --disable-debugging --sysconfdir=/var/lib/ntp --with-sntp=no --with-lineeditlibs=edit --enable-local-libopts --enable-ntp-signd --disable-dependency-tracking
Wheezy:
> ./configure CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing CPPFLAGS=-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE LDFLAGS=-Wl,-z,relro -Wl,--as-needed --prefix=/usr --enable-all-clocks --enable-parse-clocks --enable-SHM --disable-debugging --sysconfdir=/var/lib/ntp --with-sntp=no --with-lineeditlibs=edit --without-ntpsnmpd --enable-local-libopts --enable-ntp-signd --disable-dependency-tracking --with-openssl-libdir=/usr/lib/
Jessie:
> ./configure CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-strict-aliasing CPPFLAGS=-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE LDFLAGS=-Wl,-z,relro -Wl,--as-needed --prefix=/usr --enable-all-clocks --enable-parse-clocks --enable-SHM --disable-debugging --sysconfdir=/var/lib/ntp --with-sntp=no --with-lineeditlibs=edit --without-ntpsnmpd --disable-local-libopts --enable-ntp-signd --disable-dependency-tracking --with-openssl-libdir=/usr/lib/
It's the same configure lines used in debian sources, with the exception
of the libopts part that I patched according to your instructions.
Ciao
-- bronto
More information about the questions
mailing list