[LinuxPPS] cross posting [time-nuts] NTP API on Linux 2.6.26

clemens at dwf.com clemens at dwf.com
Wed Jan 7 08:00:57 CET 2009


Well, I ran your program on Linux and FreeBSD 7.0, and got essentially the
same rsults.

On Linux:
	Program as it stands

            zc.c:3:19: error: timex.h: No such file or directory
            zc.c: In function 'main':
            zc.c:7: error: storage size of 'foo' isn't known

Interchanging the comment lines so that it tries to use sys/timex.h

            gcc zc.c
            In file included from zc.c:2:
            /usr/include/sys/timex.h:112: error: field 'time' has incomplete 
type

In FreeBSD 7.0
	Program as it stands

            orion-freebsd# gcc zc.c
            zc.c:3:19: error: timex.h: No such file or directory
            zc.c: In function 'main':
            zc.c:7: error: storage size of 'foo' isn't known

Interchanging the comment lines so that it ries to use sys/timex.h

            orion-freebsd# gcc zc.c
            In file included from zc.c:2:
            /usr/include/sys/timex.h:180: error: field 'time' has incomplete 
type
            zc.c: In function 'main':
            zc.c:9: error: 'struct timex' has no member named 'tai'

-- 
                                        Reg.Clemens
                                        reg at dwf.com





More information about the LinuxPPS mailing list