unable to build ntp

2006-01-16 Thread Brad Gilmer
Help please.  I am running 6.0-RELEASE, and am trying to build 
ntp.  Process fails during ./configure with the following results:


# cd /usr/src/contrib/ntp
# ./configure
--snip---
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ElectricFence/Makefile
config.status: error: cannot find input file: ElectricFence/Makefile.in

Interestingly, I get the same results using a 4.5 machine.  I note 
that in the /usr/src/contrib/ntp/FREBSD-upgrade file, it states in part,


For the import of NTP the following files were removed:
   ElectricFence/*

so it makes sense that ElectricFence is not there, but how do I get 
rid of the error?


Background:
I have the following entry in my crontab:
7 0-23 * * * /usr/sbin/ntpdate -s pool.ntp.org /dev/null
In the old days, ntpdate would only send root an email if it could 
not find a server.  Now I get emails every time the cron runs, even 
though I am dumping STDOUT to /dev/null.  Problem is code in 6.0 
directs server found messages to STDERR, while 4.5 code did not 
contain this.  I want to recompile with the server found messages 
directed to STDOUT.


Thanks in advance,
Brad


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: unable to build ntp

2006-01-16 Thread Dan Nelson
In the last episode (Jan 16), Brad Gilmer said:
 Help please.  I am running 6.0-RELEASE, and am trying to build ntp. 
 Process fails during ./configure with the following results:
 
 # cd /usr/src/contrib/ntp
 # ./configure

You want to build /usr/src/usr.sbin/ntp .  /usr/src/contrib is just
where the original distribution files live.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: unable to build ntp

2006-01-16 Thread Lowell Gilbert
Brad Gilmer [EMAIL PROTECTED] writes:

 Help please.  I am running 6.0-RELEASE, and am trying to build ntp.
 Process fails during ./configure with the following results:
 
 # cd /usr/src/contrib/ntp
 # ./configure
 --snip---
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating ElectricFence/Makefile
 config.status: error: cannot find input file: ElectricFence/Makefile.in
 
 Interestingly, I get the same results using a 4.5 machine.  I note
 that in the /usr/src/contrib/ntp/FREBSD-upgrade file, it states in
 part,
 
 For the import of NTP the following files were removed:
 ElectricFence/*
 
 so it makes sense that ElectricFence is not there, but how do I get
 rid of the error?
 
 Background:
 I have the following entry in my crontab:
 7 0-23 * * * /usr/sbin/ntpdate -s pool.ntp.org /dev/null
 In the old days, ntpdate would only send root an email if it could not
 find a server.  Now I get emails every time the cron runs, even though
 I am dumping STDOUT to /dev/null.  Problem is code in 6.0 directs
 server found messages to STDERR, while 4.5 code did not contain this.
 I want to recompile with the server found messages directed to STDOUT.
 
 Thanks in advance,
 Brad
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 

You could always try building from the directory that buildworld uses: 
/usr/src/usr.sbin/ntp.  

But the easier answer would be to redirect stderr as well as stdout
when calling ntpdate, and generate a message only if ntpdate returns
an error result.  Or run ntpd...

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: unable to build ntp

2006-01-16 Thread BSD Questions user
Thanks everyone for the help.  For the archive:
I went to /usr/src/contrib/ntp/ntpdate and edited ntpdate.c.  I searched for
'host found' and changed the stderror to stdout.  I then went to 
/usr/src/usr.sbin/ntp and performed a make install clean.  Problem solved; the 
new 'host found' messages now go to stdout, just like all the other messages, 
so I can dump them to /dev/null, but 'host not found' error messages still show 
up as mail to root.

Brad
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: unable to build ntp

2006-01-16 Thread Daniel
On 1/17/06, BSD Questions user [EMAIL PROTECTED] wrote:
 Thanks everyone for the help.  For the archive:
 I went to /usr/src/contrib/ntp/ntpdate and edited ntpdate.c.  I searched for
 'host found' and changed the stderror to stdout.  I then went to 
 /usr/src/usr.sbin/ntp and performed a make install clean.  Problem solved; 
 the new 'host found' messages now go to stdout, just like all the other 
 messages, so I can dump them to /dev/null, but 'host not found' error 
 messages still show up as mail to root.

 Brad

As cron generally uses /bin/sh as the shell (set near the top of
/etc/crontab) you could have used
/usr/sbin/ntpdate -s pool.ntp.org 2/dev/null
instead of
 /usr/sbin/ntpdate -s pool.ntp.org /dev/null
and I believe you could also extend it to 2/dev/null  /dev/null
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]