Danny Mayer wrote: > Hassan wrote: >> On Dec 31, 4:42 pm, Dave Hart <[email protected]> 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. Danny -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
