[LinuxPPS] ntp patch not working?

Folkert van Heusden folkert at vanheusden.com
Tue Jan 8 23:22:29 CET 2008


> Trying to apply the patch to ntpd for nmea.
> Compilation fails though:
> refclock_nmea.c: In function 'nmea_start':
> refclock_nmea.c:255: error: 'struct nmeaunit' has no member named 'handle'
> refclock_nmea.c:253: warning: label 'pps_error' defined but not used
> make[3]: *** [refclock_nmea.o] Error 1

If I explicitly set 'HAVE_PPSAPI' (as it seems to be needed), I get
these errors:

refclock_nmea.c:93: error: expected specifier-qualifier-list before 'pps_params_t'
refclock_nmea.c: In function 'nmea_start':
refclock_nmea.c:236: warning: implicit declaration of function 'time_pps_create'
refclock_nmea.c:236: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:243: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:255: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c: In function 'nmea_shutdown':
refclock_nmea.c:275: warning: implicit declaration of function 'time_pps_destroy'
refclock_nmea.c:275: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c: In function 'nmea_ppsapi':
refclock_nmea.c:317: warning: implicit declaration of function 'time_pps_getcap'
refclock_nmea.c:317: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:322: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:322: error: 'pps_params_t' undeclared (first use in this function)
refclock_nmea.c:322: error: (Each undeclared identifier is reported only once
refclock_nmea.c:322: error: for each function it appears in.)
refclock_nmea.c:324: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:324: error: 'PPS_CAPTURECLEAR' undeclared (first use in this function)
refclock_nmea.c:326: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:326: error: 'PPS_CAPTUREASSERT' undeclared (first use in this function)
refclock_nmea.c:327: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:333: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:333: error: 'PPS_TSFMT_TSPEC' undeclared (first use in this function)
refclock_nmea.c:334: warning: implicit declaration of function 'time_pps_setparams'
refclock_nmea.c:334: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:334: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:340: warning: implicit declaration of function 'time_pps_kcbind'
refclock_nmea.c:340: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:340: error: 'PPS_KC_HARDPPS' undeclared (first use in this function)
refclock_nmea.c:341: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c: In function 'nmea_pps':
refclock_nmea.c:375: error: 'pps_info_t' undeclared (first use in this function)
refclock_nmea.c:375: error: expected ';' before 'pps_info'
refclock_nmea.c:383: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:387: error: 'pps_info' undeclared (first use in this function)
refclock_nmea.c:387: error: 'struct nmeaunit' has no member named 'pps_info'
refclock_nmea.c:388: warning: implicit declaration of function 'time_pps_fetch'
refclock_nmea.c:388: error: 'struct nmeaunit' has no member named 'handle'
refclock_nmea.c:388: error: 'PPS_TSFMT_TSPEC' undeclared (first use in this function)
refclock_nmea.c:388: error: 'struct nmeaunit' has no member named 'pps_info'
refclock_nmea.c:391: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:391: error: 'PPS_CAPTUREASSERT' undeclared (first use in this function)
refclock_nmea.c:393: error: 'struct nmeaunit' has no member named 'pps_info'
refclock_nmea.c:395: error: 'struct nmeaunit' has no member named 'pps_info'
refclock_nmea.c:396: error: 'struct nmeaunit' has no member named 'pps_params'
refclock_nmea.c:396: error: 'PPS_CAPTURECLEAR' undeclared (first use in this function)
refclock_nmea.c:398: error: 'struct nmeaunit' has no member named 'pps_info'
refclock_nmea.c:400: error: 'struct nmeaunit' has no member named 'pps_info'


Folkert van Heusden

-- 
                     www.ishetweekend.nl
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the LinuxPPS mailing list