SUSE Linux NTP upgrade error (make [1]:* * * "all" error 2)

Source: Internet
Author: User

NTP upgrade, upgrade Redhat is very smooth, after the upgrade will default overwrite the original file, restart the service, use NTPD--version to view the verification, can upgrade SuSE Linux but found errors frequently, the following is my upgrade encountered some problems, After the summary hope to have and I met the same mistake of the parents can be used as a reference:
I. Due to the vulnerability of NTP packet, download 4.2.7 later, under Network ntp-dev-4.2.7p26.tar.gz
1. Unzip
# TAR–ZXF NTP-DEV-4.2.7P26.TAR.GZ–C/USR/SRC
2. Compiling
# CD/USR/SRC/NTP-DEV-4.2.7P26
#./configure--prefix=/usr/local/ntp-dev-4.2.7p26--enable-all-clocks--enable-parse-clocks
If you generate the makefile file times error, the message usge–-host Skip is added--host=x86_64 after the./configure parameter, this parameter (x86_64) results from Uname–m

3. #make if make error, the information is as follows
ntp_loopfilter.c:in function ' Local_clock ':
Ntp_loopfilter.c:516:error: ' Mod_nano ' undeclared (first use of this function)
Ntp_loopfilter.c:516:error: (Each undeclaredidentifier was reported only once
Ntp_loopfilter.c:516:error:for each function itappears in.)
MAKE[3]: * * * [NTP_LOOPFILTER.O] Error 1
MAKE[3]: Leaving directory '/usr/src/ntp-dev-4.2.7p26/ntpd '
MAKE[2]: * * [ALL] Error 2
MAKE[2]: Leaving directory '/usr/src/ntp-dev-4.2.7p26/ntpd '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving directory '/usr/src/ntp-dev-4.2.7p26 '
Make: * * * [ALL] Error 2


Here's how to fix it:
Vim Include/ntp_syscall.h.patch


---ntp-4.2.4p7/include/ntp_syscall.h
+ + ntp-4.2.4p7/include/ntp_syscall.h
@@ -14,5+14,13 @@
#include <sys/timex.h>
#endif
+ #if defined (Adj_nano) &&!defined (Mod_nano)
+ #define Mod_nano Adj_nano
+ #endif
+
+ #if defined (adj_tai) &&!defined (Mod_tai)
+ #define Mod_tai Adj_tai
+ #endif
+
#ifndefNTP_SYSCALLS_LIBC
#ifdefNTP_SYSCALLS_STD


# CD include
# Patch-p0 < Ntp_syscall.h.patch
Patch file To:ntp_syscall.h
# CD:
# Make && make install
Compile and install OK
4. Generating Environment variables
# echo ' #ntp seting ' >>/etc/profile.local
# echo ' Export path= $PATH:/usr/local/ntp/bin ' >>/etc/profile.local
#echo/usr/local/ntp/bin/ntpd-c/etc/ntp.conf-p/tmp/ntpd.pid >>/etc/profile.local
# source/etc/profile.local
5 Verification
# ntpd–version
Version has been upgraded to 4.2.7P26

Ps:

Vim Include/ntp_syscall.h.patch, where the contents of some need to be indented to the # switch content must be indented

This article is from the "Small white" blog, please be sure to keep this source http://9402618.blog.51cto.com/9392618/1586605

SUSE Linux NTP upgrade error (make [1]:* * * "all" error 2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.