public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: Is it possible to compile / run ntp utilities in cygwin
Date: Wed, 31 May 2017 05:03:00 -0000	[thread overview]
Message-ID: <48975859-e20a-299f-ea04-91cee9a42dd7@SystematicSw.ab.ca> (raw)
In-Reply-To: <CAEF1h+Vg0N4f5AxpzwPiXFF+7f12FjUBWbUhwzaj36gw47eLWQ@mail.gmail.com>

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

      reply	other threads:[~2017-05-31  4:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-31  1:28 Is is " Cary Lewis
2017-05-31  5:03 ` Brian Inglis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48975859-e20a-299f-ea04-91cee9a42dd7@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).