View Single Post

   
  #3 (permalink)  
Old 02-16-2008, 04:50 AM
Roy
 
Posts: n/a
Default Re: Redefinition Error with NTP-4.2.0 on OpenBSD 3.3

ccsdhd@bath.ac.uk (Dennis Davis) wrote in message news:<HnIny6.H1L.B.hinault@bath.ac.uk>...
[snip]
> As pointed out by Danny Mayer in the comp.protocols.time.ntp
> Newsgroup, it's the expansion of include/ntp_rfc2553.h that's
> causing the problem. That attempts to detect whether IP6 is already
> available and skips various definitions if it is.
>
> It looks like the test:
>
> #if defined(_SS_MAXSIZE) || defined(_SS_SIZE)
> #define HAVE_IPV6
> #else
>
> isn't right for OpenBSD.
>
> I'm not sure of the "correct" way to fix this. We don't use IP6 yet.
> However the following bodge should get it compiled. Haven't tried
> running the resulting binary, so your guarantee has just expired!
>
>
> *** include/ntp_rfc2553.h.orig Thu Jul 17 11:27:16 2003
> --- include/ntp_rfc2553.h Wed Oct 29 11:16:08 2003
> ***************
> *** 68,74 ****
> #ifndef _NTP_RFC2553_H_
> #define _NTP_RFC2553_H_
>
> ! #if defined(_SS_MAXSIZE) || defined(_SS_SIZE)
> #define HAVE_IPV6
> #else
>
> --- 68,74 ----
> #ifndef _NTP_RFC2553_H_
> #define _NTP_RFC2553_H_
>
> ! # if 1
> #define HAVE_IPV6
> #else


Hi Dennis,

I had read Danny's reply on the NTP newsgroup. When I posted here I
was primarily trying to find out if anyone more familiar with OpenBSD
was working on the problem. The "bodge" you provided does allow ntp
to compile, but obviously it needs more work before it is a real
patch!

Thank you,


roy
--
The suespammers.org mail server is located in California. Please do
not send unsolicited bulk e-mail or unsolicited commercial e-mail to
my suespammers.org address or any of my other addresses. These are my
opinions, not necessarily my employer's.
Reply With Quote