UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

RedHatのNTPDをソースコードからアップデートして脆弱性に対応する

RedHatのNTPDをソースコードからアップデートして脆弱性に対応する


0.改訂履歴

  • 2009.05.25 新規作成

1.はじめに

 このドキュメントでは,NTP(Network Time Protocol)で時間合わせを行っているデーモンプログラムのNTPDに発見された脆弱性に対応する為に,最新版のNTPDをソースコードからコンパイルしてインストールする手順を説明する.

 なお,インストール対象となるマシンのOSは,RHEL 3 Update 5で,NTP 4.1.2からNTP 4.2.4.p7へのアップデートなる.

2.現在使用しているNTPのバージョンを調べる

  • まずは,NTPDが動作しているか確認する.
[ujpadmin@mars ujpadmin]$ ps -ef|grep ntpd
ntp 1761 1 0 May24 ? 00:00:00 ntpd -U ntp -p /var/run/ntpd.pid -g
502 12494 12197 0 09:25 pts/0 00:00:00 grep ntpd
[ujpadmin@mars ujpadmin]$
  • 動作している事が確認できた.
  • NTPのバージョンを,RPM名から調べる.
[ujpadmin@mars ujpadmin]$ rpm -qa|grep ntp
ntp-4.1.2-4.EL3.1
chkfontpath-1.9.10-1.RHEL
[ujpadmin@mars ujpadmin]$
  • バージョン4.1.2-4である事が判る.
  • 他の方法として,NTPDに接続してバージョンを調べる.
  • ntpqコマンドを調べる.
[ujpadmin@mars ujpadmin]$ locate ntpq
/usr/share/doc/ntp-4.1.2/ntpq.htm
/usr/share/man/man1/ntpq.1.gz
/usr/sbin/ntpq
[ujpadmin@mars ujpadmin]$
  • ntpqコマンドを起動する.
[ujpadmin@mars ujpadmin]$ /usr/sbin/ntpq
ntpq>
  • プロンプトが出ているので,入力できるコマンド一覧を取得する.
[ujpadmin@mars ujpadmin]$ /usr/sbin/ntpq
ntpq> ?
Commands available:
addvars associations authenticate cl clearvars
clocklist clockvar cooked cv debug
delay exit help host hostnames
keyid keytype lassociations lopeers lpassociations
lpeers mreadlist mreadvar mrl mrv
ntpversion opeers passociations passwd peers
poll pstatus quit raw readlist
readvar rl rmvars rv showvars
timeout version writelist writevar
ntpq>
  • versionコマンドを入力する.
ntpq> version
ntpq 4.1.2@1.892 Tue Feb 24 06:32:31 EST 2004 (1)
ntpq> quit
[ujpadmin@mars ujpadmin]$
  • 間違いなく,4.1.2である事が判った.
  • 今回のこのバージョンは,アップデート対象となる事が確認できた.

3.最新版のNTPを入手する

  • 各ディストリビューションが提供するアップデータで入手する事もできるが,NTPDは,以下のサイトから最新版を入手できる.
  • 今回は,現段階での最新版の4.2.4p7を入手する.
  • まずは,作業用のディレクトリを作成し,移動する.
[ujpadmin@mars ujpadmin]$ mkdir ntp
[ujpadmin@mars ujpadmin]$ cd ntp
[ujpadmin@mars ntp]$
  • モジュールを入手する.
[ujpadmin@mars ntp]$ curl -O http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/n
tp-4.2.4p7.tar.gz

% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 3302k 100 3302k 0 0 284k 0 0:00:11 0:00:11 0:00:00 311k
[ujpadmin@mars ntp]$
  • モジュールが正しくダウンロードされたか確認する為,MD5データを取得する.
[ujpadmin@mars ntp]$ curl -O http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.
2.4p7.tar.gz.md5

% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 50 100 50 0 0 113 0 0:00:00 0:00:00 0:00:00 0
[ujpadmin@mars ntp]$
  • MD5ファイルを元に,入手したファイルが正しいか検証する.

4.MD5によるダウンロードファイルの検証

  • ダウンロードしたファイルは次の通り.
[ujpadmin@mars ntp]$ ls -la
total 3320
drwxr-xr-x 2 ujpadmin ujp 4096 May 25 09:57 .
drwx------ 7 ujpadmin ujp 4096 May 25 09:57 ..
-rw-r--r-- 1 ujpadmin ujp 3382146 May 25 09:57 ntp-4.2.4p7.tar.gz
-rw-r--r-- 1 ujpadmin ujp 50 May 25 09:57 ntp-4.2.4p7.tar.gz.md5
[ujpadmin@mars ntp]$
  • ダウンロードしたアーカイブファイルのMD5値を取得する.
[ujpadmin@mars ntp]$ md5sum ntp-4.2.4p7.tar.gz
8c19ff62ed4f7d64f8e2aa59cb11f364 ntp-4.2.4p7.tar.gz
[ujpadmin@mars ntp]$
  • サイトから入手したMD5ファイルの中身を確認する.
[ujpadmin@mars ntp]$ cat ntp-4.2.4p7.tar.gz.md5 
sig1: md5 : 8c19ff62ed4f7d64f8e2aa59cb11f364
[ujpadmin@mars ntp]$
  • シグネチャが一致しているので,同一と言える.

5.アーカイブを展開する

  • 入手多アーカイブファイルを展開する.
  • ファイル名から,tarでアーカイブされて,GZIPで圧縮されている事が判る.
[ujpadmin@mars ntp]$ tar xfz ntp-4.2.4p7.tar.gz
[ujpadmin@mars ntp]$
  • 展開されたファイルを確認する.
[ujpadmin@mars ntp]$ ls -la
total 3344
drwxr-xr-x 3 ujpadmin ujp 4096 May 25 10:07 .
drwx------ 7 ujpadmin ujp 4096 May 25 09:57 ..
drwxr-xr-x 24 ujpadmin ujp 4096 May 18 18:15 ntp-4.2.4p7
-rw-r--r-- 1 ujpadmin ujp 3402171 May 25 09:57 ntp-4.2.4p7.tar.gz
-rw-r--r-- 1 ujpadmin ujp 50 May 25 09:57 ntp-4.2.4p7.tar.gz.md5
[ujpadmin@mars ntp]$ cd ntp-4.2.4p7
[ujpadmin@mars ntp-4.2.4p7]$ ls -la
total 3544
drwxr-xr-x 24 ujpadmin ujp 4096 May 18 18:15 .
drwxr-xr-x 3 ujpadmin ujp 4096 May 25 10:07 ..
-rw-r--r-- 1 ujpadmin ujp 8865 Jan 8 18:37 COPYRIGHT
-rw-r--r-- 1 ujpadmin ujp 16395 May 18 18:04 ChangeLog
-rw-r--r-- 1 ujpadmin ujp 1014919 May 18 18:10 CommitLog
-rw-r--r-- 1 ujpadmin ujp 195223 Jan 23 2007 CommitLog-4.1.0
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:13 ElectricFence
-rw-r--r-- 1 ujpadmin ujp 7544 Jul 20 2006 INSTALL
-rw-r--r-- 1 ujpadmin ujp 4111 Jan 30 2007 Makefile.am
-rw-r--r-- 1 ujpadmin ujp 24312 May 18 17:44 Makefile.in
-rw-r--r-- 1 ujpadmin ujp 4143 May 18 17:21 NEWS
-rw-r--r-- 1 ujpadmin ujp 2692 Feb 25 2004 NOTES.y2kfixes
-rw-r--r-- 1 ujpadmin ujp 5572 May 12 14:59 README
-rw-r--r-- 1 ujpadmin ujp 219 May 12 14:58 README.bk
-rw-r--r-- 1 ujpadmin ujp 735 Feb 25 2004 README.hackers
-rw-r--r-- 1 ujpadmin ujp 1663 May 12 14:59 README.patches
-rw-r--r-- 1 ujpadmin ujp 2081 Jun 7 2006 README.refclocks
-rw-r--r-- 1 ujpadmin ujp 817 Jun 7 2006 README.versions
-rw-r--r-- 1 ujpadmin ujp 2836 Jun 7 2006 TODO
-rw-r--r-- 1 ujpadmin ujp 2278 May 12 14:59 WHERE-TO-START
-rw-r--r-- 1 ujpadmin ujp 251956 May 18 17:41 aclocal.m4
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 adjtimed
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:13 arlib
-rw-r--r-- 1 ujpadmin ujp 525 Jun 7 2006 bincheck.mf
-rwxr-xr-x 1 ujpadmin ujp 2807 Aug 19 2007 bootstrap
-rwxr-xr-x 1 ujpadmin ujp 1902 Apr 22 20:02 build
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 clockstuff
-rwxr-xr-x 1 ujpadmin ujp 3707 Feb 24 2006 compile
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 conf
-rwxr-xr-x 1 ujpadmin ujp 43420 Feb 24 2006 config.guess
-rw-r--r-- 1 ujpadmin ujp 32039 May 18 17:53 config.h.in
-rwxr-xr-x 1 ujpadmin ujp 31743 Feb 24 2006 config.sub
-rwxr-xr-x 1 ujpadmin ujp 1400012 May 18 17:44 configure
-rw-r--r-- 1 ujpadmin ujp 111343 May 12 14:58 configure.ac
-rwxr-xr-x 1 ujpadmin ujp 15936 Feb 24 2006 depcomp
-rw-r--r-- 1 ujpadmin ujp 496 Feb 25 2004 dot.emacs
-rw-r--r-- 1 ujpadmin ujp 65 Feb 25 2004 excludes
-rwxr-xr-x 1 ujpadmin ujp 2682 May 2 14:54 flock-build
drwxr-xr-x 7 ujpadmin ujp 4096 May 18 18:15 html
drwxr-xr-x 3 ujpadmin ujp 4096 May 18 18:13 include
-rwxr-xr-x 1 ujpadmin ujp 9233 Feb 24 2006 install-sh
drwxr-xr-x 3 ujpadmin ujp 4096 May 18 18:15 kernel
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:16 libisc
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:14 libntp
drwxr-xr-x 5 ujpadmin ujp 4096 May 18 18:14 libopts
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:14 libparse
-rw-r--r-- 1 ujpadmin ujp 196440 Dec 28 2006 ltmain.sh
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:10 m4
-rwxr-xr-x 1 ujpadmin ujp 11014 Feb 24 2006 missing
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:14 ntpd
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 ntpdate
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 ntpdc
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 ntpq
-rw-r--r-- 1 ujpadmin ujp 756 May 18 17:40 packageinfo.sh
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 parseutil
drwxr-xr-x 3 ujpadmin ujp 4096 Feb 25 2004 ports
-rw-r--r-- 1 ujpadmin ujp 8192 Feb 25 2004 readme.y2kfixes
-rw-r--r-- 1 ujpadmin ujp 2926 Feb 25 2004 results.y2kfixes
drwxr-xr-x 6 ujpadmin ujp 4096 May 18 18:13 scripts
drwxr-xr-x 3 ujpadmin ujp 4096 May 18 18:15 sntp
drwxr-xr-x 2 ujpadmin ujp 4096 May 18 18:15 util
-rw-r--r-- 1 ujpadmin ujp 7 May 18 18:10 version
-rw-r--r-- 1 ujpadmin ujp 38 May 18 17:40 version.m4
[ujpadmin@mars ntp-4.2.4p7]$
  • 展開したファイル一覧から,configureタイプのインストール方法だと判るが,INSTALLファイルが用意されているので,ファイルに記述され地得るインストール方法等を確認しておく.

6.configure/make/make check/make install

  • configureタイプなので,configureを実行する.
[ujpadmin@mars ntp-4.2.4p7]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking additional compiler flags...
configure: Using supplied libopts tearoff
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for memory.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/procset.h usability... no
checking sys/procset.h presence... no
checking for sys/procset.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/stropts.h usability... yes
checking sys/stropts.h presence... yes
checking for sys/stropts.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for intptr_t... yes
checking for uint_t... no
checking for uintptr_t... yes
checking for char*... yes
checking size of char*... 4
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for short... yes
checking size of short... 2
checking for pathfind in -lgen... no
checking for vprintf... yes
checking for _doprnt... no
checking for mmap... yes
checking for canonicalize_file_name... yes
checking for snprintf... yes
checking for strdup... yes
checking for strchr... yes
checking for strrchr... yes
checking whether a reg expr header is specified... no
checking whether with-libregex was specified... no
checking whether with-libregex-cflags was specified... no
checking whether with-libregex-libs was specified... no
checking whether libregex functions properly... yes
checking whether pathfind(3) works... no
checking whether /dev/zero is readable device... crw-rw-rw- 1 root root 1, 5 Jun
25 2004 /dev/zero
checking whether we have a functional realpath(3C)... yes
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
checking if gcc can handle #warning... yes
checking if gcc can handle -Wstrict-overflow... no
checking if gcc can handle -Winit-self... no
checking for bin subdirectory... bin
checking if we want to use arlib... no
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for dlfcn.h... (cached) yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
checking whether ln -s works... yes
checking whether gcc needs -traditional... no
checking for working volatile... yes
checking for library containing strerror... none required
checking for sh... /bin/sh
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /usr/bin/install -c
checking for gethostent... yes
checking for openlog... yes
checking for library containing MD5Init... -lmd5
checking for MD5Init... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for readline in -lreadline... no
configure: Trying again with -lcurses
checking for readline in -lreadline... yes
checking for setsockopt... yes
checking for ANSI C header files... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking dns_sd.h usability... no
checking dns_sd.h presence... no
checking for dns_sd.h... no
checking for errno.h... (cached) yes
checking for fcntl.h... (cached) yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking timepps.h usability... no
checking timepps.h presence... no
checking for timepps.h... no
checking timex.h usability... no
checking timex.h presence... no
checking for timex.h... no
checking for unistd.h... (cached) yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking for sys/socket.h... (cached) yes
checking for net/if.h... yes
checking net/if6.h usability... no
checking net/if6.h presence... no
checking for net/if6.h... no
checking for net/route.h... yes
checking netinet/in_system.h usability... no
checking netinet/in_system.h presence... no
checking for netinet/in_system.h... no
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking for netinet/in.h... (cached) yes
checking for netinet/ip.h... yes
checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... yes
checking netinfo/ni.h usability... no
checking netinfo/ni.h presence... no
checking for netinfo/ni.h... no
checking sun/audioio.h usability... no
checking sun/audioio.h presence... no
checking for sun/audioio.h... no
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
checking sys/clkdefs.h usability... no
checking sys/clkdefs.h presence... no
checking for sys/clkdefs.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/lock.h usability... no
checking sys/lock.h presence... no
checking for sys/lock.h... no
checking for sys/mman.h... (cached) yes
checking sys/modem.h usability... no
checking sys/modem.h presence... no
checking for sys/modem.h... no
checking for sys/param.h... (cached) yes
checking sys/ppsclock.h usability... no
checking sys/ppsclock.h presence... no
checking for sys/ppsclock.h... no
checking sys/ppstime.h usability... no
checking sys/ppstime.h presence... no
checking for sys/ppstime.h... no
checking for sys/select.h... (cached) yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for sys/stat.h... (cached) yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking for sys/stropts.h... (cached) yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/syssgi.h usability... no
checking sys/syssgi.h presence... no
checking for sys/syssgi.h... no
checking sys/systune.h usability... no
checking sys/systune.h presence... no
checking for sys/systune.h... no
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking for sys/time.h... (cached) yes
checking for sys/signal.h... (cached) yes
checking sys/timers.h usability... no
checking sys/timers.h presence... no
checking for sys/timers.h... no
checking sys/tpro.h usability... no
checking sys/tpro.h presence... no
checking for sys/tpro.h... no
checking for sys/types.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for __adjtimex... yes
checking for __ntp_gettime... no
checking for sys/proc.h... no
checking for sys/resource.h... yes
checking for sys/shm.h... yes
checking for sys/timex.h... yes
checking for resolv.h... yes
checking for basic volatile support... (cached) yes
checking for function prototypes... yes
checking for string.h... (cached) yes
checking if C compiler permits function prototypes... yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking return type of signal handlers... void
checking for off_t... yes
checking for size_t... yes
checking for time_t... yes
checking for time_t... (cached) yes
checking size of time_t... 4
checking for uintptr_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for u_int8_t... yes
checking for u_int64_t... yes
checking for in_port_t... yes
checking for a fallback value for HZ... 100
checking if we need to override the system's value for HZ... no
checking for struct rt_msghdr... no
checking struct sigaction for sa_sigaction... yes
checking for struct ppsclockev... no
checking struct sockaddr for sa_len... no
checking for struct sockaddr_storage... yes
checking for ss_family field in struct sockaddr_storage... yes
checking for __ss_family field in struct sockaddr_storage... no
checking for ss_len field in struct sockaddr_storage... no
checking for __ss_len field in struct sockaddr_storage... no
checking for struct snd_size... no
checking struct clockinfo for hz... no
checking struct clockinfo for tickadj... no
checking for struct timespec... yes
checking for struct ntptimeval... yes
checking for struct ntptimeval.time.tv_nsec... no
checking for inline... inline
checking whether char is unsigned... no
checking for signed char... yes
checking size of signed char... 1
checking for int... (cached) yes
checking size of int... (cached) 4
checking for long... (cached) yes
checking size of long... (cached) 4
checking for s_char... no
checking for uid_t in sys/types.h... yes
checking for clock_gettime... no
checking for clock_settime... no
checking for daemon... yes
checking for finite... yes
checking for getbootfile... no
checking for getclock... no
checking for getdtablesize... yes
checking for getifaddrs in -linet6... no
checking type of socklen arg for getsockname()... socklen_t
checking for getrusage... yes
checking for gettimeofday... yes
checking for getuid... yes
checking for hstrerror... yes
checking for if_nametoindex... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for inet_aton... yes
checking for K_open... no
checking for kvm_open... no
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for mktime... yes
checking for nice... yes
checking for nlist... no
checking for ntp_adjtime... yes
checking for ntp_gettime... yes
checking for plock... no
checking for pututline... yes
checking for pututxline... yes
checking for readlink... yes
checking for recvmsg... yes
checking for rtprio... no
checking for sched_setscheduler... yes
checking for setlinebuf... yes
checking for setpgid... yes
checking for setpriority... yes
checking for setsid... yes
checking for setrlimit... yes
checking for settimeofday... yes
checking for setvbuf... yes
checking for sigaction... yes
checking for sigvec... yes
checking for sigset... yes
checking for sigsuspend... yes
checking for stime... yes
checking for strchr... (cached) yes
checking for sysconf... yes
checking for sysctl... yes
checking for snprintf... (cached) yes
checking for strdup... (cached) yes
checking for strerror... yes
checking for strstr... yes
checking for timegm... yes
checking for timer_create... no
checking for timer_settime... no
checking for umask... yes
checking for uname... yes
checking for updwtmp... yes
checking for updwtmpx... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking if we need extra help to define struct iovec... no
checking number of arguments to gettimeofday()... 2
checking number of arguments taken by setpgrp()... 0
checking argument pointer type of qsort()'s compare function and base... void
checking if we need to declare 'errno'... no
checking if we may declare 'h_errno'... yes
checking if declaring 'char *sys_errlist[]' is ok... no
checking if declaring 'syscall()' is ok... no
checking if we need extra room for SO_RCVBUF... no
checking if we will open the broadcast socket... yes
checking if we want the HPUX version of FindConfig()... no
checking if process groups are set with -pid... yes
checking if we need a ctty for F_SETOWN... no
checking if the OS fails to clear cached routes when more specific routes become
available... no
checking if the OS needs the wildcard socket set to REUSEADDR for binding
interface addresses... yes
checking if we'll use clock_settime or settimeofday or stime... settimeofday()
configure: WARNING: *** But clock_settime() would be better (if we had it) ***
checking if we have a losing syscall()... no
checking for SIGIO... yes
checking if we want to use signalled IO... no
checking for SIGPOLL... yes
checking for SIGSYS... yes
checking if we can use SIGPOLL for UDP I/O... no
checking if we can use SIGPOLL for TTY I/O... no
checking if nlist() values might require extra indirection... no
checking for a minimum recommended value of tickadj... no
checking if the TTY code permits PARENB and IGNPAR... yes
checking if we're including debugging code... yes
checking if we including processing time debugging code... no
checking for a the number of minutes in a DST adjustment... 60
checking if ntpd will retry on permanent DNS errors... no
checking if we have the tty_clk line discipline/streams module... no
checking for the ppsclock streams module... no
checking for kernel multicast support... yes
checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... u_int
checking availability of ntp_{adj,get}time()... libc
checking if sys/timex.h has STA_FLL... yes
checking if we have kernel PLL support... yes
checking if SIOCGIFCONF returns buffer size in the buffer... no
checking ioctl TIOCGPPSEV... no
checking ioctl TIOCSPPS... no
checking ioctl CIOGETEV... no
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG...
no
checking SHMEM_STATUS support... yes
checking Datum/Bancomm bc635/VME interface... no
checking TrueTime GPS receiver/VME interface... no
checking for PCL720 clock support... no
checking for default inclusion of all suitable non-PARSE clocks... yes
checking if we have support for PARSE clocks... yes
checking if we have support for audio clocks... yes
checking if we have support for the SHM refclock interface... yes
checking ACTS modem service... yes
checking Arbiter 1088A/B GPS receiver... yes
checking Arcron MSF receiver... yes
checking Austron 2200A/2201A GPS receiver... yes
checking ATOM PPS interface... yes
checking Chrono-log K-series WWVB receiver... yes
checking CHU modem/decoder... yes
checking CHU audio/decoder... yes
checking Datum Programmable Time System... yes
checking Dumb generic hh:mm:ss local clock... yes
checking Forum Graphic GPS... yes
checking Heath GC-1000 WWV/WWVH receiver... yes
checking for hopf serial clock device... yes
checking for hopf PCI clock 6039... yes
checking HP 58503A GPS receiver... yes
checking IRIG audio decoder... yes
checking for JJY receiver... yes
checking Rockwell Jupiter GPS receiver... no
checking Leitch CSD 5300 Master Clock System Driver... yes
checking local clock reference... yes
checking Magnavox MX4200 GPS receiver... no
checking for NeoClock4X receiver... yes
checking NMEA GPS receiver... yes
checking for ONCORE Motorola VP/UT Oncore GPS... no
checking for Palisade clock... yes
checking Conrad parallel port radio clock... yes
checking PST/Traconex 1020 WWV/WWVH receiver... yes
checking RIPENCC specific Trimble driver... no
checking for SHM clock attached thru shared memory... yes
checking Spectracom 8170/Netclock/2 WWVB receiver... yes
checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... no
checking Kinemetrics/TrueTime receivers... yes
checking TrueTime 560 IRIG-B decoder... no
checking Ultralink M320 WWVB receiver... yes
checking WWV receiver... yes
checking for Zyfer receiver... yes
checking for default inclusion of all suitable PARSE clocks... no
checking Diem Computime Radio Clock... no
checking ELV/DCF7000 clock... no
checking HOPF 6021 clock... no
checking Meinberg clocks... no
checking DCF77 raw time code... no
checking RCC 8000 clock... no
checking Schmid DCF77 clock... no
checking Trimble GPS receiver/TAIP protocol... no
checking Trimble GPS receiver/TSIP protocol... no
checking WHARTON 400A Series clock... no
checking VARITEXT clock... no
checking if we need to make and use the parse libraries... no
checking for openssl library directory... /usr/lib
checking for openssl include directory... /usr/include
checking for EVP_md2... no
checking for EVP_mdc2... no
checking for the level of crypto support... openssl
checking if we want to compile with ElectricFence... no
checking if we want to run check-layout... yes
checking if we can make dcf parse utilities... no
checking if we can build kernel streams modules for parse... no
checking if we need basic refclock support... yes
checking if we want HP-UX adjtimed support... no
checking if we want QNX adjtime support... no
checking if we can read kmem... no
checking if adjtime is accurate... yes
checking the name of 'tick' in the kernel... _tick
checking for the units of 'tick'... usec
checking the name of 'tickadj' in the kernel... _tickadj
checking for the units of 'tickadj'... usec
checking half-heartedly for 'dosynctodr' in the kernel... _dosynctodr
checking half-heartedly for 'noprintf' in the kernel... _noprintf
checking for a default value for 'tick'... txc.tick
checking for a default value for 'tickadj'... 500/hz
checking if we want and can make the ntptime utility... yes
checking if we want and can make the tickadj utility... yes
checking if we want and can make the timetrim utility... no
checking if we want to build the NTPD simulator... no
checking if we should always slew the time... no
checking if we should step and slew the time... no
checking if ntpdate should step the time... no
checking if we should sync TODR clock every hour... no
checking if we should avoid kernel FLL bug... no
checking if we should use the IRIG sawtooth filter... no
checking if we should enable NIST lockclock scheme... no
checking if we want support for Samba's signing daemon... no
checking if we want the windows symmetric client hack... no
checking sys/clockctl.h usability... no
checking sys/clockctl.h presence... no
checking for sys/clockctl.h... no
checking if we should use /dev/clockctl... no
checking sys/capability.h usability... yes
checking sys/capability.h presence... yes
checking for sys/capability.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking if we have linux capabilities (libcap)... yes
checking libscf.h usability... no
checking libscf.h presence... no
checking for libscf.h... no
checking for setppriv... no
checking for IPv6 structures... yes
checking for Kame IPv6 support... no
checking for in6_pktinfo... yes
checking for sockaddr_in6.sin6_scope_id... yes
checking for in6addr_any... yes
checking for struct if_laddrconf... no
checking for struct if_laddrreq... no
checking for interface list sysctl... no
configure: creating ./config.status
config.status: creating libopts/Makefile
config.status: creating Makefile
config.status: creating ElectricFence/Makefile
config.status: creating adjtimed/Makefile
config.status: creating clockstuff/Makefile
config.status: creating include/Makefile
config.status: creating include/isc/Makefile
config.status: creating kernel/Makefile
config.status: creating kernel/sys/Makefile
config.status: creating libntp/Makefile
config.status: creating libparse/Makefile
config.status: creating ntpd/Makefile
config.status: creating ntpdate/Makefile
config.status: creating ntpdc/Makefile
config.status: creating ntpdc/nl.pl
config.status: creating ntpq/Makefile
config.status: creating parseutil/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/calc_tickadj
config.status: creating scripts/checktime
config.status: creating scripts/freq_adj
config.status: creating scripts/html2man
config.status: creating scripts/mkver
config.status: creating scripts/ntp-wait
config.status: creating scripts/ntpsweep
config.status: creating scripts/ntptrace
config.status: creating scripts/ntpver
config.status: creating scripts/plot_summary
config.status: creating scripts/summary
config.status: creating util/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: configuring in sntp
configure: running /bin/sh './configure' --prefix=/usr/local --cache-file=/dev/
null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
configure: Using supplied libopts tearoff
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for dlfcn.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for memory.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/procset.h usability... no
checking sys/procset.h presence... no
checking for sys/procset.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/stropts.h usability... yes
checking sys/stropts.h presence... yes
checking for sys/stropts.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for intptr_t... yes
checking for uint_t... no
checking for uintptr_t... yes
checking for char*... yes
checking size of char*... 4
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for short... yes
checking size of short... 2
checking for pathfind in -lgen... no
checking for vprintf... yes
checking for _doprnt... no
checking for mmap... yes
checking for canonicalize_file_name... yes
checking for snprintf... yes
checking for strdup... yes
checking for strchr... yes
checking for strrchr... yes
checking whether a reg expr header is specified... no
checking whether with-libregex was specified... no
checking whether with-libregex-cflags was specified... no
checking whether with-libregex-libs was specified... no
checking whether libregex functions properly... yes
checking whether pathfind(3) works... no
checking whether /dev/zero is readable device... crw-rw-rw- 1 root root 1, 5 Jun
25 2004 /dev/zero
checking whether we have a functional realpath(3C)... yes
checking whether strftime() works... yes
checking whether fopen accepts "b" mode... yes
checking whether fopen accepts "t" mode... yes
checking whether not wanting optional option args... yes
checking if gcc can handle #warning... yes
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for fcntl.h... (cached) yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for limits.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for netinet/in.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/time.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for ss_family field in struct sockaddr_storage... yes
checking for __ss_family field in struct sockaddr_storage... no
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for alarm... yes
checking for gethostent... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for socket... yes
checking for sqrt... no
checking for library containing sqrt... -lm
checking for strrchr... (cached) yes
checking for bin subdirectory... bin
configure: creating ./config.status
config.status: creating libopts/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[ujpadmin@mars ntp-4.2.4p7]$
  • 問題なくconfigureが実行されたようである.
  • 念のため,ステータスを確認しておく.
[ujpadmin@mars ntp-4.2.4p7]$ ls -lat | head -n 5
total 4412
drwxr-xr-x 24 ujpadmin ujp 4096 May 25 10:11 .
-rw-r--r-- 1 ujpadmin ujp 528038 May 25 10:11 config.log
drwxr-xr-x 4 ujpadmin ujp 4096 May 25 10:11 sntp
drwxr-xr-x 3 ujpadmin ujp 4096 May 25 10:11 parseutil
[ujpadmin@mars ntp-4.2.4p7]$
  • config.logファイルの最後を確認する.
[ujpadmin@mars ntp-4.2.4p7]$ tail -n 5 config.log
#define WANT_IPV6
#define WITH_LIBREGEX 1
#define __PROTOTYPES 1

configure: exit 0
[ujpadmin@mars ntp-4.2.4p7]$
  • exit 0なので,問題なく終了した事が判る.
  • configureが終了したので,makeを実行する.
[ujpadmin@mars ntp-4.2.4p7]$ make
Compiling with GCC now generates lots of new warnings.

Don't be concerned. They're just warnings.

Don't send bug reports about the warnings, either.

Feel free to send patches that fix these warnings, though.

(bk version) >/dev/null 2>&1 && \
cd . && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
y=`cat version 2>/dev/null` || true && \
case "$x" in ''|$y) ;; *) echo $x > version ;; esac
make all-recursive


〜略〜

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wcast-qual -Wmissing
-prototypes -Wpointer-arith -Wshadow -Wno-strict-prototypes -L/usr/lib -o ntp-
keygen ntp-keygen.o ntp-keygen-opts.o -lcrypto ../libopts/libopts.la ../libntp/
libntp.a -lmd5 -lcap
gcc -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wno-
strict-prototypes -o ntp-keygen ntp-keygen.o ntp-keygen-opts.o -L/usr/lib -
lcrypto ../libopts/.libs/libopts.a ../libntp/libntp.a /usr/lib/libmd5.so -ldl -
lz -lcap
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[1]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
[ujpadmin@mars ntp-4.2.4p7]$
  • コンパイル時のワーニングがたくさんでているが,コンパイルは終了した模様.
  • make checkを実行してセルフテストを実行する.
[ujpadmin@mars ntp-4.2.4p7]$ make check
(bk version) >/dev/null 2>&1 && \
cd . && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
y=`cat version 2>/dev/null` || true && \
case "$x" in ''|$y) ;; *) echo $x > version ;; esac
make check-recursive
make[1]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
Making check in libopts
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libopts'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libopts'
Making check in scripts
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/scripts'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/scripts'
Making check in include
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
Making check in isc
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include/isc'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include/isc'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
Making check in ElectricFence
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make check-local
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
test ! -f eftest || ./eftest
test ! -f tstheap || ./tstheap 3072
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
Making check in libntp
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libntp'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libntp'
Making check in libparse
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libparse'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libparse'
Making check in ntpd
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make check-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make all-am
make[5]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make check-local
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
test -z "" || ./
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
Making check in ntpdate
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
Making check in ntpdc
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make check-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
Making check in ntpq
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make check-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
Making check in parseutil
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
make check-local
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
case "" in \
*dcfd*) ./dcfd -Y ;; \
esac
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
Making check in adjtimed
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
Making check in clockstuff
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/clockstuff'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/clockstuff'
Making check in kernel
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
Making check in sys
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel/sys'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel/sys'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
Making check in sntp
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make check-recursive
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
Making check in libopts
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp/libopts'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp/libopts'
Making check in .
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
Making check in util
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make check-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[1]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
[ujpadmin@mars ntp-4.2.4p7]$
  • 問題なくチェック完了した模様.
  • モジュールが作成できたので,ここからはrootユーザにスイッチし,インストールを行う.
[ujpadmin@mars ntp-4.2.4p7]$ su 
Password: ■■■■■■■■■■■■■
[root@mars ntp-4.2.4p7]# export LANG=C
[root@mars ntp-4.2.4p7]#
  • LANGをCにしたのは,念のため.
  • make installを行う.
[root@mars ntp-4.2.4p7]# make install
(bk version) >/dev/null 2>&1 && \
cd . && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
y=`cat version 2>/dev/null` || true && \
case "$x" in ''|$y) ;; *) echo $x > version ;; esac
make install-recursive
make[1]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
Making install in libopts
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libopts'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libopts'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libopts'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libopts'
Making install in scripts
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/scripts'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/scripts'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'ntp-wait' '/usr/local/bin/ntp-wait'
/usr/bin/install -c 'ntptrace' '/usr/local/bin/ntptrace'

make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/scripts'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/scripts'
Making install in include
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
Making install in isc
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include/isc'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include/isc'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include/isc'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include/isc'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/include'
Making install in ElectricFence
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ElectricFence'
Making install in libntp
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libntp'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libntp'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libntp'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libntp'
Making install in libparse
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libparse'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libparse'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libparse'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/libparse'
Making install in ntpd
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make install-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'ntpd' '/usr/local/bin/
ntpd'
/usr/bin/install -c ntpd /usr/local/bin/ntpd

make install-exec-hook
make[5]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[5]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
/usr/bin/install -c -m 644 './ntpd.1' '/usr/local/man/man1/ntpd.1'
/usr/bin/install -c -m 644 './ntpdsim.1' '/usr/local/man/man1/ntpdsim.1'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpd'
Making install in ntpdate
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'ntpdate' '/usr/local/
bin/ntpdate'

/usr/bin/install -c ntpdate /usr/local/bin/ntpdate
make install-exec-hook
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdate'
Making install in ntpdc
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make install-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'ntpdc' '/usr/local/bin/
ntpdc'
/usr/bin/install -c ntpdc /usr/local/bin/ntpdc

make install-exec-hook
make[5]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make[5]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
/usr/bin/install -c -m 644 './ntpdc.1' '/usr/local/man/man1/ntpdc.1'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpdc'
Making install in ntpq
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make install-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'ntpq' '/usr/local/bin/
ntpq'
/usr/bin/install -c ntpq /usr/local/bin/ntpq

test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
/usr/bin/install -c -m 644 './ntpq.1' '/usr/local/man/man1/ntpq.1'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/ntpq'
Making install in parseutil
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/parseutil'
Making install in adjtimed
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
make install-exec-hook
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/adjtimed'
Making install in clockstuff
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/clockstuff'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/clockstuff'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/clockstuff'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/clockstuff'
Making install in kernel
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
Making install in sys
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel/sys'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel/sys'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel/sys'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel/sys'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/kernel'
Making install in sntp
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make install-recursive
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
Making install in libopts
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp/libopts'
make[5]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp/libopts'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp/libopts'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp/libopts'
Making install in .
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[5]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'sntp' '/usr/local/bin/
sntp'

/usr/bin/install -c sntp /usr/local/bin/sntp
make install-exec-hook
make[6]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[6]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
/usr/bin/install -c -m 644 './sntp.1' '/usr/local/man/man1/sntp.1'
/usr/bin/install -c -m 644 './sntp.1' '/usr/local/man/man1/sntp.1'

make[5]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/sntp'
Making install in util
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make install-am
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[4]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'ntptime' '/usr/local/
bin/ntptime'
/usr/bin/install -c ntptime /usr/local/bin/ntptime
/bin/sh ../libtool --mode=install /usr/bin/install -c 'tickadj' '/usr/local/
bin/tickadj'
/usr/bin/install -c tickadj /usr/local/bin/tickadj
/bin/sh ../libtool --mode=install /usr/bin/install -c 'ntp-keygen' '/usr/local
/bin/ntp-keygen'
/usr/bin/install -c ntp-keygen /usr/local/bin/ntp-keygen
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
/usr/bin/install -c -m 644 './ntp-keygen.1' '/usr/local/man/man1/ntp-keygen.1'

make[4]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7/util'
make[2]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[3]: Entering directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[2]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
make[1]: Leaving directory `/home/ujpadmin/ntp/ntp-4.2.4p7'
[root@mars ntp-4.2.4p7]#
  • モジュールが各ディレクトリに複写された事が確認できた.
  • バイナリモジュールのインストールディレクトリを確認する.
[root@mars ntp-4.2.4p7]# ls -lat /usr/local/bin/ | head -n 15
total 12596
drwxr-xr-x 2 root root 4096 May 25 11:07 .
-rwxr-xr-x 1 root root 167827 May 25 11:07 ntp-keygen
-rwxr-xr-x 1 root root 28913 May 25 11:07 ntptime
-rwxr-xr-x 1 root root 180381 May 25 11:07 sntp
-rwxr-xr-x 1 root root 8982 May 25 11:07 tickadj
-rwxr-xr-x 1 root root 307458 May 25 11:07 ntpdc
-rwxr-xr-x 1 root root 286723 May 25 11:07 ntpq
-rwxr-xr-x 1 root root 1211126 May 25 11:07 ntpd
-rwxr-xr-x 1 root root 154652 May 25 11:07 ntpdate
-rwxr-xr-x 1 root root 1019 May 25 11:07 ntp-wait
-rwxr-xr-x 1 root root 1990 May 25 11:07 ntptrace
-r-xr-xr-x 1 root root 292176 Jun 13 2008 monit
drwxr-sr-x 14 root root 4096 Jan 2 2007 ..
-rwxr-xr-x 1 root root 15664 Aug 15 2006 envdir
[root@mars ntp-4.2.4p7]#

  • ntpqコマンドを実行して,バージョンを確認してみる.
[root@mars ntp-4.2.4p7]# /usr/local/bin/ntpq -v      
ntpq - standard NTP query program - Ver. 4.2.4p7
[root@mars ntp-4.2.4p7]#
  • 最新版がインストールできた事が確認できた.

7.NTPDを停止する

  • OSに付属していたNTPDが動作している状態でしたが,入れ替えの為にこれを停止する.
  • まず,OS起動時のスクリプトがあるか,確認する.
[root@mars ntp-4.2.4p7]# ls -la /etc/init.d/ntpd 
-rwxr-xr-x 1 root root 3772 Feb 24 2004 /etc/init.d/ntpd
[root@mars ntp-4.2.4p7]#
  • NTPDが動作しているか,確認する.
[root@mars ntp-4.2.4p7]# ps -ef | grep ntpd
ntp 1761 1 0 May24 ? 00:00:00 ntpd -U ntp -p /var/run/ntpd.pid -g
root 2456 984 0 11:35 pts/0 00:00:00 grep ntpd
[root@mars ntp-4.2.4p7]#
  • 起動スクリプトを使用して,停止する.
[root@mars ntp-4.2.4p7]# /etc/init.d/ntpd stop
ntpdを停止中: [ OK ]
[root@mars ntp-4.2.4p7]#
  • 再度プロセスが起動しているか確認する.
[root@mars ntp-4.2.4p7]# ps -ef | grep ntpd
root 2466 984 0 11:35 pts/0 00:00:00 grep ntpd
[root@mars ntp-4.2.4p7]#
  • プロセスが無いので,停止されている事が確認できた.

8.RPMを削除する

  • RPMでインストールされたNTPが,どのようなファイルで構成されているか確認する.
  • まずは,NTPのパッケージ名を取得する.
[root@mars ntp-4.2.4p7]# rpm -qa|grep ntp
ntp-4.1.2-4.EL3.1
chkfontpath-1.9.10-1.RHEL
[root@mars ntp-4.2.4p7]#
  • パッケージに含まれるファイルを確認する.
[root@mars ntp-4.2.4p7]# rpm -ql ntp-4.1.2-4.EL3.1
/etc/ntp
/etc/ntp.conf
/etc/ntp/keys
/etc/ntp/step-tickers
/etc/rc.d/init.d/ntpd
/etc/sysconfig/ntpd
/usr/bin/ntpstat
/usr/sbin/ntp-genkeys
/usr/sbin/ntp-wait
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpdc
/usr/sbin/ntpq
/usr/sbin/ntptime
/usr/sbin/ntptimeset
/usr/sbin/ntptrace
/usr/sbin/tickadj

/usr/share/doc/ntp-4.1.2
/usr/share/doc/ntp-4.1.2/NEWS
/usr/share/doc/ntp-4.1.2/Oncore-SHMEM.htm
/usr/share/doc/ntp-4.1.2/TODO
/usr/share/doc/ntp-4.1.2/accopt.htm
/usr/share/doc/ntp-4.1.2/assoc.htm
/usr/share/doc/ntp-4.1.2/audio.htm
/usr/share/doc/ntp-4.1.2/authopt.htm
/usr/share/doc/ntp-4.1.2/biblio.htm
/usr/share/doc/ntp-4.1.2/build.htm
/usr/share/doc/ntp-4.1.2/clockopt.htm
/usr/share/doc/ntp-4.1.2/config.htm
/usr/share/doc/ntp-4.1.2/confopt.htm
/usr/share/doc/ntp-4.1.2/copyright.htm
/usr/share/doc/ntp-4.1.2/debug.htm
/usr/share/doc/ntp-4.1.2/driver1.htm
/usr/share/doc/ntp-4.1.2/driver10.htm
/usr/share/doc/ntp-4.1.2/driver11.htm
/usr/share/doc/ntp-4.1.2/driver12.htm
/usr/share/doc/ntp-4.1.2/driver16.htm
/usr/share/doc/ntp-4.1.2/driver18.htm
/usr/share/doc/ntp-4.1.2/driver19.htm
/usr/share/doc/ntp-4.1.2/driver2.htm
/usr/share/doc/ntp-4.1.2/driver20.htm
/usr/share/doc/ntp-4.1.2/driver22.htm
/usr/share/doc/ntp-4.1.2/driver23.htm
/usr/share/doc/ntp-4.1.2/driver24.htm
/usr/share/doc/ntp-4.1.2/driver26.htm
/usr/share/doc/ntp-4.1.2/driver27.htm
/usr/share/doc/ntp-4.1.2/driver28.htm
/usr/share/doc/ntp-4.1.2/driver29.htm
/usr/share/doc/ntp-4.1.2/driver3.htm
/usr/share/doc/ntp-4.1.2/driver30.htm
/usr/share/doc/ntp-4.1.2/driver32.htm
/usr/share/doc/ntp-4.1.2/driver33.htm
/usr/share/doc/ntp-4.1.2/driver34.htm
/usr/share/doc/ntp-4.1.2/driver35.htm
/usr/share/doc/ntp-4.1.2/driver36.htm
/usr/share/doc/ntp-4.1.2/driver37.htm
/usr/share/doc/ntp-4.1.2/driver38.htm
/usr/share/doc/ntp-4.1.2/driver39.htm
/usr/share/doc/ntp-4.1.2/driver4.htm
/usr/share/doc/ntp-4.1.2/driver40.htm
/usr/share/doc/ntp-4.1.2/driver42.htm
/usr/share/doc/ntp-4.1.2/driver43.htm
/usr/share/doc/ntp-4.1.2/driver44.htm
/usr/share/doc/ntp-4.1.2/driver5.htm
/usr/share/doc/ntp-4.1.2/driver6.htm
/usr/share/doc/ntp-4.1.2/driver7.htm
/usr/share/doc/ntp-4.1.2/driver8.htm
/usr/share/doc/ntp-4.1.2/driver9.htm
/usr/share/doc/ntp-4.1.2/exec.htm
/usr/share/doc/ntp-4.1.2/extern.htm
/usr/share/doc/ntp-4.1.2/gadget.htm
/usr/share/doc/ntp-4.1.2/genkeys.htm
/usr/share/doc/ntp-4.1.2/hints
/usr/share/doc/ntp-4.1.2/hints.htm
/usr/share/doc/ntp-4.1.2/hints/a-ux
/usr/share/doc/ntp-4.1.2/hints/aix
/usr/share/doc/ntp-4.1.2/hints/bsdi
/usr/share/doc/ntp-4.1.2/hints/changes
/usr/share/doc/ntp-4.1.2/hints/decosf1
/usr/share/doc/ntp-4.1.2/hints/decosf2
/usr/share/doc/ntp-4.1.2/hints/freebsd
/usr/share/doc/ntp-4.1.2/hints/hpux
/usr/share/doc/ntp-4.1.2/hints/linux
/usr/share/doc/ntp-4.1.2/hints/mpeix
/usr/share/doc/ntp-4.1.2/hints/notes-xntp-v3
/usr/share/doc/ntp-4.1.2/hints/parse
/usr/share/doc/ntp-4.1.2/hints/refclocks
/usr/share/doc/ntp-4.1.2/hints/rs6000
/usr/share/doc/ntp-4.1.2/hints/sco.htm
/usr/share/doc/ntp-4.1.2/hints/sgi
/usr/share/doc/ntp-4.1.2/hints/solaris-dosynctodr.html
/usr/share/doc/ntp-4.1.2/hints/solaris.html
/usr/share/doc/ntp-4.1.2/hints/solaris.xtra.4023118
/usr/share/doc/ntp-4.1.2/hints/solaris.xtra.4095849
/usr/share/doc/ntp-4.1.2/hints/solaris.xtra.S99ntpd
/usr/share/doc/ntp-4.1.2/hints/solaris.xtra.patchfreq
/usr/share/doc/ntp-4.1.2/hints/sun4
/usr/share/doc/ntp-4.1.2/hints/svr4-dell
/usr/share/doc/ntp-4.1.2/hints/svr4_package
/usr/share/doc/ntp-4.1.2/hints/todo
/usr/share/doc/ntp-4.1.2/hints/vxworks.htm
/usr/share/doc/ntp-4.1.2/hints/vxworks.html
/usr/share/doc/ntp-4.1.2/hints/winnt.htm
/usr/share/doc/ntp-4.1.2/howto.htm
/usr/share/doc/ntp-4.1.2/htmlprimer.htm
/usr/share/doc/ntp-4.1.2/index.htm
/usr/share/doc/ntp-4.1.2/kern.htm
/usr/share/doc/ntp-4.1.2/kernpps.htm
/usr/share/doc/ntp-4.1.2/ldisc.htm
/usr/share/doc/ntp-4.1.2/leap.htm
/usr/share/doc/ntp-4.1.2/measure.htm
/usr/share/doc/ntp-4.1.2/miscopt.htm
/usr/share/doc/ntp-4.1.2/monopt.htm
/usr/share/doc/ntp-4.1.2/mx4200data.htm
/usr/share/doc/ntp-4.1.2/notes.htm
/usr/share/doc/ntp-4.1.2/ntpd.htm
/usr/share/doc/ntp-4.1.2/ntpd.htm.droproot
/usr/share/doc/ntp-4.1.2/ntpdate.htm
/usr/share/doc/ntp-4.1.2/ntpdate.htm.droproot
/usr/share/doc/ntp-4.1.2/ntpdc.htm
/usr/share/doc/ntp-4.1.2/ntpq.htm
/usr/share/doc/ntp-4.1.2/ntptime.htm
/usr/share/doc/ntp-4.1.2/ntptrace.htm
/usr/share/doc/ntp-4.1.2/parsedata.htm
/usr/share/doc/ntp-4.1.2/parsenew.htm
/usr/share/doc/ntp-4.1.2/patches.htm
/usr/share/doc/ntp-4.1.2/pic
/usr/share/doc/ntp-4.1.2/pic/9400n.jpg
/usr/share/doc/ntp-4.1.2/pic/alice11.gif
/usr/share/doc/ntp-4.1.2/pic/alice12.gif
/usr/share/doc/ntp-4.1.2/pic/alice13.gif
/usr/share/doc/ntp-4.1.2/pic/alice15.gif
/usr/share/doc/ntp-4.1.2/pic/alice23.gif
/usr/share/doc/ntp-4.1.2/pic/alice31.gif
/usr/share/doc/ntp-4.1.2/pic/alice32.gif
/usr/share/doc/ntp-4.1.2/pic/alice35.gif
/usr/share/doc/ntp-4.1.2/pic/alice38.gif
/usr/share/doc/ntp-4.1.2/pic/alice44.gif
/usr/share/doc/ntp-4.1.2/pic/alice47.gif
/usr/share/doc/ntp-4.1.2/pic/alice51.gif
/usr/share/doc/ntp-4.1.2/pic/alice61.gif
/usr/share/doc/ntp-4.1.2/pic/barnstable.gif
/usr/share/doc/ntp-4.1.2/pic/beaver.gif
/usr/share/doc/ntp-4.1.2/pic/boom3.gif
/usr/share/doc/ntp-4.1.2/pic/boom3a.gif
/usr/share/doc/ntp-4.1.2/pic/boom4.gif
/usr/share/doc/ntp-4.1.2/pic/bustardfly.gif
/usr/share/doc/ntp-4.1.2/pic/c51.jpg
/usr/share/doc/ntp-4.1.2/pic/driver29.gif
/usr/share/doc/ntp-4.1.2/pic/driver43_1.gif
/usr/share/doc/ntp-4.1.2/pic/driver43_2.jpg
/usr/share/doc/ntp-4.1.2/pic/fg6021.gif
/usr/share/doc/ntp-4.1.2/pic/fg6039.jpg
/usr/share/doc/ntp-4.1.2/pic/flatheads.gif
/usr/share/doc/ntp-4.1.2/pic/gadget.jpg
/usr/share/doc/ntp-4.1.2/pic/gps167.jpg
/usr/share/doc/ntp-4.1.2/pic/home.gif
/usr/share/doc/ntp-4.1.2/pic/hornraba.gif
/usr/share/doc/ntp-4.1.2/pic/igclock.gif
/usr/share/doc/ntp-4.1.2/pic/neoclock4x.gif
/usr/share/doc/ntp-4.1.2/pic/oncore_evalbig.gif
/usr/share/doc/ntp-4.1.2/pic/oncore_remoteant.jpg
/usr/share/doc/ntp-4.1.2/pic/oncore_utplusbig.gif
/usr/share/doc/ntp-4.1.2/pic/oz2.gif
/usr/share/doc/ntp-4.1.2/pic/panda.gif
/usr/share/doc/ntp-4.1.2/pic/pd_om006.gif
/usr/share/doc/ntp-4.1.2/pic/pd_om011.gif
/usr/share/doc/ntp-4.1.2/pic/pogo.gif
/usr/share/doc/ntp-4.1.2/pic/pogo1a.gif
/usr/share/doc/ntp-4.1.2/pic/pogo3a.gif
/usr/share/doc/ntp-4.1.2/pic/pogo4.gif
/usr/share/doc/ntp-4.1.2/pic/pogo5.gif
/usr/share/doc/ntp-4.1.2/pic/pogo6.gif
/usr/share/doc/ntp-4.1.2/pic/pogo8.gif
/usr/share/doc/ntp-4.1.2/pic/pzf509.jpg
/usr/share/doc/ntp-4.1.2/pic/rabbit.gif
/usr/share/doc/ntp-4.1.2/pic/radio2.jpg
/usr/share/doc/ntp-4.1.2/pic/sheepb.jpg
/usr/share/doc/ntp-4.1.2/pic/stack1a.jpg
/usr/share/doc/ntp-4.1.2/pic/tonea.gif
/usr/share/doc/ntp-4.1.2/pic/wingdorothy.gif
/usr/share/doc/ntp-4.1.2/porting.htm
/usr/share/doc/ntp-4.1.2/pps.htm
/usr/share/doc/ntp-4.1.2/prefer.htm
/usr/share/doc/ntp-4.1.2/qth.htm
/usr/share/doc/ntp-4.1.2/quick.htm
/usr/share/doc/ntp-4.1.2/rdebug.htm
/usr/share/doc/ntp-4.1.2/refclock.htm
/usr/share/doc/ntp-4.1.2/release.htm
/usr/share/doc/ntp-4.1.2/tickadj.htm
/usr/share/man/man1/ntpd.1.gz
/usr/share/man/man1/ntpdate.1.gz
/usr/share/man/man1/ntpdc.1.gz
/usr/share/man/man1/ntpq.1.gz
/usr/share/man/man1/ntpstat.1.gz
/usr/share/man/man1/ntptime.1.gz
/usr/share/man/man1/ntptrace.1.gz
/usr/share/man/man1/tickadj.1.gz
/var/lib/ntp
/var/lib/ntp/drift
[root@mars ntp-4.2.4p7]#
  • 古いソフトウェアは不要なので,RPMを削除する.
[root@mars ntp-4.2.4p7]# rpm -e ntp-4.1.2-4.EL3.1
error: Failed dependencies:
ntp is needed by (installed) redhat-config-date-1.5.22-3

[root@mars ntp-4.2.4p7]#
  • 依存関係があって削除できないというエラーがでたが,強制的に削除する.
[root@mars ntp-4.2.4p7]# rpm -e --nodeps ntp-4.1.2-4.EL3.1
warning: /var/lib/ntp/drift saved as /var/lib/ntp/drift.rpmsave
warning: /etc/rc.d/init.d/ntpd saved as /etc/rc.d/init.d/ntpd.rpmsave
warning: /etc/ntp.conf saved as /etc/ntp.conf.rpmsave

[root@mars ntp-4.2.4p7]
  • 3つのファイルが保存されたまま,パッケージの削除が終了した.
  • それぞれのファイルは,次の通りである.
ファイル名 意味
/var/lib/ntp/drift
時刻の変動を黒くしているファイル
/etc/rc.d/init.d/ntpd
OSスタート時のNTPD起動スクリプト
/etc/ntp.conf
NTPの設定ファイル
  • 今回は,これらのファイルを再利用して設定を行う.
  • まず,設定ファイルの名前を変更し手元に戻す.
[root@mars ntp-4.2.4p7]# mv /etc/ntp.conf.rpmsave /etc/ntp.conf
[root@mars ntp-4.2.4p7]#
  • 次に,起動設定ファイルを作成する.
  • RPM版は,/usr/sbin以下にモジュールがインストールされていたが,新しくインストールしたファイルは/usr/local/bin以下なので,それに合わせてスクリプト中のファイルパスを変更したものを作成する.
[root@mars init.d]# cat /etc/init.d/ntpd
#!/bin/bash

case "$1" in
start)
if [ -f /etc/ntp.conf ]; then
echo "starting ntpd daemon"
/usr/local/bin/ntpd -c /etc/ntp.conf &
fi
;;
stop)
/usr/bin/pkill -x -u 0 'ntpd'
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0

[root@mars init.d]#
  • 作成したファイルに,実行権限を与える.
[root@mars ntp-4.2.4p7]# chmod ogu+x /etc/init.d/ntpd
[root@mars ntp-4.2.4p7]#
  • 最後に,driftファイルを作成する.
  • このファイル派からファイルで良い.
[root@mars ntp-4.2.4p7]# touch /etc/ntp.drift
[root@mars ntp-4.2.4p7]#
  • ソースコードからインストールした場合は,ファイルパスが異なる事に注意する.

9.NTPDを開始する

  • 起動スクリプトを使用して,NTPDを起動する.
[root@mars init.d]# /etc/init.d/ntpd start
starting ntpd daemon
[root@mars init.d]#
  • プロセスリストで起動を確認する.l
[root@mars init.d]# ps -ef| grep ntpd
root 3510 1 0 13:05 ? 00:00:00 /usr/local/bin/ntpd -c /etc/ntp.conf
root 3513 984 0 13:05 pts/0 00:00:00 grep ntpd
[root@mars init.d]#
  • ステータスを確認する.
[root@mars init.d]# /usr/local/bin/ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp1.jst.mfeed. 210.173.160.86 2 u 19 64 1 9.381 -1948.0 0.001
ntp2.jst.mfeed. 210.173.160.56 2 u 18 64 1 8.644 -1948.1 0.001
ntp3.jst.mfeed. 210.173.160.56 2 u 17 64 1 10.794 -1948.9 0.001
LOCAL(0) .LOCL. 10 l 16 64 1 0.000 0.000 0.001

[root@mars init.d]#
  • 外部にあるNTPサーバと接続できた事が確認できた.


広告スペース
Google