[ntp:bugs] [Bug 717] New: ntpd 4.2.3p51 libopts doesn't compile under Windows anymore

bugzilla at ntp.isc.org bugzilla at ntp.isc.org
Wed Oct 4 12:41:41 UTC 2006


http://bugs.ntp.isc.org/717

           Summary: ntpd 4.2.3p51 libopts doesn't compile under Windows
                    anymore
           Product: ntp
           Version: 4.2.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: ntpd
        AssignedTo: stenn at ntp.org
        ReportedBy: burnicki at ntp.org
                CC: bugs at ntp.isc.org


The current version of libopts uses uintptr_t types. If that type is not 
provided by the build environment then uintptr_t is defined in libopts' 
compat.h. However, if building with VC6 under Windows I get the following 
messages:

Compiling...
cmd_args.c
libopts\autoopts\options.h(222) : syntax error : identifier 'uintptr_t'
[...]
ntpd\cmd_args.c(51) : 'struct optDesc *const ' : unknown size

So obviously compat.h seems not to be included when cmd_args.c is built, and 
thus 'uintptr_t' is not defined, which leads to those errors.

As a workaround I have defined uintptr_t additionally in the config.h file, 
makes the errors disappear.

Martin

-- 
Martin Burnicki <burnicki at ntp.org>



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the bugs mailing list