Hello,
Having failed to find a port of NTP for QNX 6.2.1, I have tried to compile
NTP-4.2.0 (from the source available at http://www.ntp.org/downloads.html)
By telling configure to avoid compiling radio clock support
(./configure --disable-all-clocks), I can get it compiling the libntp and
ntpd modules. ntpdate, however, fails to compile:
"
In file included from ntpdate.c:52:
…/include/adjtime.h:43: conflicting types for ‘adjtime’
…/include/l_stdlib.h:43: previous declaration of ‘adjtime’
"
Does anyone know how to fix this?
Thank you,
Robert.
Hello,
I have fixed the problem, for anyone who is having the same trouble:
I simply commented out the adjtime prototype in the include/adjtime.h file.
It was conflicting with a system specific prototype in l_stdlib.h.
To fix this properly would require modifying the .in files, and i don’t know
how autoconfig/automake works so I am not going to fiddle with the package.
I have it working, and have the binaries - if anyone would like them, they
are welcome.
Robert.
“Robert Muil” <r.muil@crcmining.com.au> wrote in message
news:chggda$pj4$1@inn.qnx.com…
Hello,
Having failed to find a port of NTP for QNX 6.2.1, I have tried to compile
NTP-4.2.0 (from the source available at > http://www.ntp.org/downloads.html> )
By telling configure to avoid compiling radio clock support
(./configure --disable-all-clocks), I can get it compiling the libntp and
ntpd modules. ntpdate, however, fails to compile:
"
In file included from ntpdate.c:52:
…/include/adjtime.h:43: conflicting types for ‘adjtime’
…/include/l_stdlib.h:43: previous declaration of ‘adjtime’
"
Does anyone know how to fix this?
Thank you,
Robert.