[ntp:questions] ntp-4.2.6 doesn't compile for Windows
hbdivers2 at gmail.com
Mon Jan 4 10:21:44 UTC 2010
On Jan 2, 7:12 pm, ma... at ntp.org (Danny Mayer) wrote:
> Danny Mayer wrote:
> > Hassan wrote:
> >> On Dec 31, 4:42 pm, Dave Hart <daveh... at gmail.com> wrote:
> >>> On Dec 31, 15:47 UTC, Hassan wrote:
> >>>> I can't compile ntp-4.2.6 for windows.
> >>>> I am using Visual Studio 6.0, and i get the following error and
> >>>> warning :
> >>>> libntp - Win32 Release
> >>>> ...
> >>>> decodenetnum.c
> >>>> D:\MISTRAL-ClientSMDI\ntp\ntp-4.2.6\libntp\decodenetnum.c(25) : error
> >>>> C2079: 'hints' uses undefined struct 'addrinfo'
> >>>> ...
> >>>> D:\MISTRAL-ClientSMDI\ntp\ntp-4.2.6\libntp\decodenetnum.c(46) :
> >>>> warning C4013: 'getaddrinfo' undefined; assuming extern returning int
> >> I can't use express edition because we have to use VC6 to compile ntp.
> > Understood.
> >> But now that I've searched, I can't find the declaration of struct
> >> addrinfo in VC6 headers !!
> >> What should I download to have it declared ? Is there a code that
> >> enables VC6 to support IPv6 ?
> >> What about struct addrinfo definition found in ntp-4.2.6\lib\isc
> >> \win32\netdb.h ?
> > Instead of that, try including ntp_rfc2553.h in decodenetnum.c. That
> > will define what you need. Make sure that ISC_PLATFORM_HAVEIPV6 is not
> > defined. Hopefully you can get the getaddrinfo() emulation. You need
> > that. I will look tomorrow at my VC6 build system.
> > Danny
> I was wrong about this. ntp_rfc2553.h was already being included. It was
> a problem with platform.h in the lib/isc/win32 file which was
> unconditionally defining ISC_PLATFORM_HAVEIPV6. However, there were a
> number of other bugs which prevented this from being built using the VC6
> compiler. I have put in fixes for all these for the next release of the
> stable build. I expect them to be in 4.2.6p1-RC3 when that gets
> released. See bug items 1448-1450.
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> questions mailing list
> questi... at lists.ntp.orghttp://lists.ntp.org/listinfo/questions
That's great you have fixed those bugs.
But I really can't wait the release of the 4.2.6p1-RC3 to get it
Can you please send me the fixes ?
On the other hand, I can't connect to the bugs list ?
The browser says that "connection is not certified" or something
alike ! (the warning is in french, and I don't know if I've translated
Thank you in advance
More information about the questions