[LinuxPPS] 2.6.22...

Rodolfo Giometti giometti at enneenne.com
Mon Jul 30 17:19:05 CEST 2007


On Sun, Jul 29, 2007 at 04:34:27PM +0200, Udo van den Heuvel wrote:
> Udo van den Heuvel wrote:
> > Ever since running 2.6.22 patches with the 2.6.22-ter patch my ntpd sees
> > no PPS sources anymore.
> > Any ideas?
> 
> Building ntpd using the info at
> http://wiki.enneenne.com/index.php/LinuxPPS_support#Compiling_the_code
> yields:
> 
> (....)
> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../include
> -I../libopts -I/usr/include  -m32 -march=i686 -mtune=c3-2 -pipe -mmmx
> -msse -fomit-frame-pointer -ffast-math -finline-functions
> -mfpmath=sse,387 -Os -pie -fPIE  -Wall -Wcast-qual -Wmissing-prototypes
> -Wpointer-arith -Wshadow -Wstrict-prototypes -MT refclock_nmea.o -MD -MP
> -MF ".deps/refclock_nmea.Tpo" -c -o refclock_nmea.o refclock_nmea.c; \
>         then mv -f ".deps/refclock_nmea.Tpo" ".deps/refclock_nmea.Po";
> else rm -f ".deps/refclock_nmea.Tpo"; exit 1; fi
> In file included from ppsapi_timepps.h:9,
>                  from refclock_nmea.c:27:
> /usr/include/timepps.h: In function 'netlink_msg':
> /usr/include/timepps.h:72: error: storage size of 'dest_addr' isn't known
> /usr/include/timepps.h:87: error: 'PPSAPI_MAX_PAYLOAD' undeclared (first
> use in this function)
> /usr/include/timepps.h:87: error: (Each undeclared identifier is
> reported only once
> /usr/include/timepps.h:87: error: for each function it appears in.)
> /usr/include/timepps.h:92: error: dereferencing pointer to incomplete type
> /usr/include/timepps.h:93: error: dereferencing pointer to incomplete type
> /usr/include/timepps.h:94: error: dereferencing pointer to incomplete type
> /usr/include/timepps.h:95: error: invalid application of 'sizeof' to
> incomplete type 'struct pps_netlink_msg'
> /usr/include/timepps.h:98: error: dereferencing pointer to incomplete type
> /usr/include/timepps.h:116: error: invalid application of 'sizeof' to
> incomplete type 'struct pps_netlink_msg'
> /usr/include/timepps.h:117: error: dereferencing pointer to incomplete type
> /usr/include/timepps.h:118: error: dereferencing pointer to incomplete type
> /usr/include/timepps.h: In function 'time_pps_create':
> /usr/include/timepps.h:130: error: storage size of 'src_addr' isn't known
> /usr/include/timepps.h:130: error: storage size of 'dest_addr' isn't known
> /usr/include/timepps.h:131: error: storage size of 'nlpps' isn't known
> /usr/include/timepps.h:136: error: 'NETLINK_PPSAPI' undeclared (first
> use in this function)
> (etc)
> 
> What did I miss?

Are you using the ppstime.h file from Documentation/pps/ directory?
Define PPSAPI_MAX_PAYLOAD is in the old timepps.h
(timepps.h.old.nl.API) version.

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list