Making Make Make NTP

Recently, I have been working on porting the latest version of NTP to
Solaris and by extension, to OpenSolaris

It is rough going, for a few reasons. Now, don’t get me wrong, NTP is highly portable. Grab the software from the the
project page and odds are that it will “just work”. The first problem is getting it to work with our internal
build system. This is my first port of a major package to Solaris, and is pretty much done in my spare time. As such, I thought I
would try to make it a learning experience and do it right, instead of doing it good enough

So, I started looking at other packages to see how their Makefiles and directories were structured. I discovered a lot, but
there is very little (read:no) documentation about the proper way to make a Makefile for our build system, except to say
“go look at some of these packages, they are good examples.”

Well, it turns out that the Solaris builds have a different approach than NTP does. It is probably due to
historical reasons, and has to due with the need to build crossplatform. Anyway, it has been slow going.

The other big problem I have had is that by default, Solaris builds with strict compiler checking turned on.
This has meant that many things that were warnings become errors. I dutifully find each one, figure out why
the warning exists and correct it, and resubmit the fix to the NTP project. This is good timing because
the NTP project team recently decided to drop support for K and R C, and require ANSI-C. So, I have been finding
most of the incompatibilites. The bad thing is that the ANSI-C requirement will not go into effect until
the next NTP release, so sometimes my fixes cannot be incorporated until then.

Anyway, I hope that we can get NTP version 4 into Solaris soon. With the launch of OpenSolaris,
perhaps I can get some help on it as well.

We’ll see.


Technorati Tag:

Technorati Tag:

Technorati Tag:

Advertisements

One response to this post.

  1. Posted by yuxiading on November 7, 2005 at 5:40 pm

    Hi,
    Very glad to read your blog.
    I am working with NTP and now faced with some problems.Do you know about NTP details,especially about the filter and select algorithms?
    I need your help.Thanks!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: