[LinuxPPS] Re: ntp-4.2.4p0 + ntpd_nmea.patch

Udo van den Heuvel udovdh at xs4all.nl
Thu Aug 9 22:45:08 CEST 2007


Kim B. Sindalsen wrote:

> As I haven't been able to find answers to my problems online, I'm sorry to
> have to resort to mail You - I hope You don't mind too much.

Please use the mailinglist.

> I've decided to change my OS on a stratum1-server from FreeBSD to
> (Gentoo)Linux as I'm much more at home there - using LinuxPPS (via git) I
> thought it'd be pretty straight-forward, but.... alas I'm having huge
> problems compiling ntp after patching it with the ntpd_nmea.patch.
> 
> Below is the compiler errors, and I've attached the patched refclock_nmea.c.
> 
> refclock_nmea.c: In function 'nmea_start':
> refclock_nmea.c:145: error: 'LINUXPPS_MAX_NAME_LEN' undeclared (first use in
> this function)

Old patch? LINUXPPS_ was scrapped from the name some time ago.

> refclock_nmea.c:145: error: (Each undeclared identifier is reported only
> once
> refclock_nmea.c:145: error: for each function it appears in.)
> refclock_nmea.c:147: warning: declaration of 'link' shadows a global
> declaration
> /usr/include/unistd.h:755: warning: shadowed declaration is here
> refclock_nmea.c:147: warning: unused variable 'link'
> refclock_nmea.c:146: warning: unused variable 'path'
> refclock_nmea.c:145: warning: unused variable 'id'

Usued why? Because we have no LinuxPPS patch, headers, etc?

> make[3]: *** [refclock_nmea.o] Error 1
> make[3]: Leaving directory `/usr/src/ntp/ntp-4.2.4p0/ntpd'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/ntp/ntp-4.2.4p0/ntpd'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/ntp/ntp-4.2.4p0'
> make: *** [all] Error 2

Looks like some header files are missing?
What LinuxPPS patch did you apply?
What kernel do you use?

> I've read and re-read what guides I could find on linuxpps + ntpd but I
> can't see what I've missed - are You able/willing to help - and/or which
> mailing-list would You recommend on this subject?

http://ml.enneenne.com/cgi-bin/mailman/listinfo/linuxpps

> 'grep -i ppsapi config.h' returns '#define HAVE_PPSAPI 1' as expected,
> ppstest sees my source (Garmin 18) quite fine - and I get fine data via 'cu
> -l /dev/gps1 -s 4800' - I don't have a /proc/pps dir though - I do have a
> /sys/class/pps/00/ tree though. 

That looks OK!

Please report on the kernel patch name/version and check the nmea patch
name as well, please.

Here is some links to the ntpd patches:
http://wiki.enneenne.com/index.php/LinuxPPS_support#NTPD_support


Udo



More information about the LinuxPPS mailing list