[LinuxPPS] timepps.h errors

clemens at dwf.com clemens at dwf.com
Tue Aug 7 17:40:40 CEST 2007


I suspect this problem is known, 
but building a kernel with linux-2.6.22.1.tar.bz2 and the 
ntp-pps-2.6.22-quater.diff build quite nicely.

However when I mv the timepps.h from the Doc directory to
/usr/include and try to build the userspace programs, I see errors
like:

[reg at deneb pps]$ make
cc -Wall -O2 -D_GNU_SOURCE -I . -ggdb   -c -o ppstest.o ppstest.c
In file included from ppstest.c:10:
./timepps.h:33: error: redefinition of 'struct ntp_fp'
./timepps.h:38: error: redefinition of 'union pps_timeu'
./timepps.h:44: error: redefinition of 'struct pps_info'
./timepps.h:52: error: redefinition of 'struct pps_params'
./timepps.h: In function 'time_pps_getparams':
./timepps.h:163: error: storage size of '__ppsparams' isn't known
./timepps.h:163: warning: unused variable '__ppsparams'
./timepps.h: In function 'time_pps_setparams':
./timepps.h:180: error: storage size of '__ppsparams' isn't known
./timepps.h:180: warning: unused variable '__ppsparams'
./timepps.h: In function 'time_pps_fetch':
./timepps.h:202: error: storage size of '__ppsinfobuf' isn't known
./timepps.h:203: error: storage size of '__timeout' isn't known
./timepps.h:203: warning: unused variable '__timeout'
./timepps.h:202: warning: unused variable '__ppsinfobuf'
make: *** [ppstest.o] Error 1

---

IN FACT, you need copies of BOTH timepps.h *and* pps.h in Documents/pps
with instructions to copy them to /usr/include/timepps.h and 
/usr/include/linux/pps.h

---

with this change, both my test program AND ntp with the oncore driver work.

---

However, with my 'magic' parallel-cable, I have yet to see any interrupts
on parport0.

DOES ANYONE ELSE SEE INTERRUPTS THERE?

If anyone else is seeing interrupts in the parallel driver Ill go back and
check my cable,- but for now I just have to report that I dont see anything
on the parallel port.

---

                                        Reg.Clemens
                                        reg at dwf.com





More information about the LinuxPPS mailing list