[ntp:questions] Jonathan Buzzard's radioclkd and FreeBSD

Chris Hastie chris at nospam.oak-wood.co.uk
Thu Nov 6 22:57:17 UTC 2003


Has anybody out there managed to compile Jonathan Buzzard's radioclkd
<http://www.buzzard.org.uk/jonathan/radioclock.html>. Since I live only
30Km from the MSF transmitter I thought I'd give it a go, but gmake
gives up saying "*** [radioclkd.o] Error 1"

A search for solutions on google also turned up <http://www.jonatkins.co
m/radioclk2/> but I can't get this to compile either. I'm using FreeBSD
5.1. The  lines spat out before dying for radioclk are

ash# gmake
/usr/bin/gcc -Wall -O2 -c radioclkd.c
radioclkd.c:112:19: termio.h: No such file or directory
radioclkd.c: In function `TurnReceiverOn':
radioclkd.c:492: warning: implicit declaration of function `ioctl'
radioclkd.c:492: `TIOCMGET' undeclared (first use in this function)
radioclkd.c:492: (Each undeclared identifier is reported only once
radioclkd.c:492: for each function it appears in.)
radioclkd.c:494: `TIOCM_DTR' undeclared (first use in this function)
radioclkd.c:494: `TIOCM_RTS' undeclared (first use in this function)
radioclkd.c:495: `TIOCMSET' undeclared (first use in this function)
radioclkd.c: In function `WaitOnSerialChange':
radioclkd.c:525: `TIOCMGET' undeclared (first use in this function)
radioclkd.c:527: `TIOCM_CD' undeclared (first use in this function)
radioclkd.c:528: `TIOCM_CTS' undeclared (first use in this function)
radioclkd.c:529: `TIOCM_DSR' undeclared (first use in this function)
radioclkd.c:550: `TIOCMIWAIT' undeclared (first use in this function)
radioclkd.c: In function `ProcessTimeCode':
radioclkd.c:730: warning: long int format, int arg (arg 3)
radioclkd.c:730: warning: long int format, int arg (arg 4)
radioclkd.c:733: warning: long int format, int arg (arg 3)
radioclkd.c: In function `Catch':
radioclkd.c:868: warning: implicit declaration of function `munlockall'
radioclkd.c: In function `main':
radioclkd.c:1009: warning: implicit declaration of function `mlockall'
radioclkd.c:1039: `TIOCM_CD' undeclared (first use in this function)
radioclkd.c:1042: `TIOCM_CTS' undeclared (first use in this function)
radioclkd.c:1045: `TIOCM_DSR' undeclared (first use in this function)
gmake: *** [radioclkd.o] Error 1


and for radioclk2

ash# make
/usr/bin/gcc -s -lm -o radioclkd2 main.o memory.o logger.o  serial.o
clock.o shm.o settings.o  decode_msf.o decode_dcf77.o decode_wwvb.o
serial.o: In function `serWaitForSerialChange':
serial.o(.text+0x40b): undefined reference to `lofgerf'
*** Error code 1

Stop in /usr/local/src/radioclk2-0.04.

I'm afraid the inner workings of software is completely beyond me unless
it's simple and written in Perl :(

And if anyone has any comments on the relative merits of the two
radioclk programmes I'd be interested to hear, assuming I ever get
either of them to compile.

Cheers
-- 
Chris Hastie



More information about the questions mailing list