X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=QunSaulTjDldUlkl
	O7PBAXe58WFTs46LnVDGTyJAQ+dQSf46bdvt2DI43tbDkbVEtzOz1s23pFWpRz0k
	K+zYrFKVD9UHHLpvqMwg8jiI0bEM+eh9tEt8dvmzQH+u7frHdS4Sbcs4j/vryOyb
	kRE1JhiVIDINEy+FfyjsnJVL1/s=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=gOIMx7AU7TQvBXUCojIVPg
	eTne0=; b=GnuTX9rV8iPLvT8PxTubiGKwLHP9qrPlvUH+nfR6sTBeVwjDjGLjWm
	nwDAzIp3/lL1Q9YEFfOt7knGW/5sZA+WMf1j1fIAUNt7ty3rVXp4ZPR8EKqXoop9
	x12DOYPUDKXHTcPfmJ5iX4OvsFsOETDKlMm9MnJlxUh2T1/shQQx4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:64.59.134.9, H*RU:64.59.134.9, openssl, Express
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=C_Dd6d5pkkuCuBMUvt8A:9 a=2hVcNEpav7GTXvHx:21 a=cupBibrp76l-UQ79:21 a=QEXdDO2ut3YA:10
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Subject: Re: Is it possible to compile / run ntp utilities in cygwin
To: cygwin@cygwin.com
References: <CAEF1h+Vg0N4f5AxpzwPiXFF+7f12FjUBWbUhwzaj36gw47eLWQ@mail.gmail.com>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Message-ID: <48975859-e20a-299f-ea04-91cee9a42dd7@SystematicSw.ab.ca>
Date: Tue, 30 May 2017 22:58:08 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
MIME-Version: 1.0
In-Reply-To: <CAEF1h+Vg0N4f5AxpzwPiXFF+7f12FjUBWbUhwzaj36gw47eLWQ@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfLp6khgibHeWjkABZYY2rYuQm+TalQ6UW3yA8cNs6Rvt2oRxPRMO80bK2GYDsjdBHyQiw+KwdhuxkDUchQrMyVi1R8hKtTg5BqMCB0hbsYi9LlB8bvKd DF2wpcNM3xoOq6MS+Svwnhm+rGzk0yj/tKb4yv5W5fd3PI5J04ivCdLgfodldtzGeUThf+YluT6HgA==
X-IsSubscribed: yes

On 2017-05-30 14:47, Cary Lewis wrote:
>  it possible to build ntp under cygwin?
> I am getting errors compiling:
> make[3]: Entering directory '/home/clewis/ntp-4.2.8p10/libntp'
>   CC       iosignal.o
> iosignal.c: In function =E2=80=98init_clock_sig=E2=80=99:
> iosignal.c:87:22: error: =E2=80=98I_SETSIG=E2=80=99 undeclared (first use i=
> n this function)
>    if (ioctl(rio->fd, I_SETSIG, S_INPUT) < 0)
> iosignal.c:87:22: note: each undeclared identifier is reported only once
> for each function it appears in
> iosignal.c:87:32: error: =E2=80=98S_INPUT=E2=80=99 undeclared (first use in=
>  this function)
>    if (ioctl(rio->fd, I_SETSIG, S_INPUT) < 0)

NTP builds against BSD or GNU libc, and variants such as AIX, HPUX,
Solaris, with autotools, guile, OpenSSL, and other devel dependencies by
platform.
RTEMS has an NTP package that builds with their platform and newlib.
NTP, Cygwin, and newlib may need a lot of patches for Cygwin and Windows
interfaces, possibly autoconf tests, to get a working build.

Start by loading the stable distro source, the above tools and
libraries, and related devel packages.
With a minimal Cygwin and Windows PATH, run the bootstrap script in the
distro source directory, which touches a bunch of generated files which
may only be safely rebuilt using specific tools, then runs autoreconf.

If that works, again with a minimal Cygwin and Windows PATH, run the
build script in the stable distro source directory, then look in the
build subdirectory A.x86{,_64}-unknown-cygwin2.<ver>/ for config.log and
make.log, and address any issues.

There is also a ports directory which contains the configuration files
and custom Windows interfaces, to build the service and utilities using
VS (Express) and Windows OpenSSL IIRC.
A prebuilt Windows service and utilities binary installer package,
including OpenSSL if it is required, is available from the Meinberg web
site.
If you just want to run the package and utilities and gain experience
with the package, that is the quickest path under Windows.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

