[ntp:questions] Re: Clock type 30 invalid?

Richard B. Gilbert rgilbert88 at comcast.net
Fri Jan 23 01:17:36 UTC 2004


Thanks, Reg.  It's progress of a sort.

I tried your fix and got:

refclock_oncore.c: In function `oncore_get_timestamp':
refclock_oncore.c:1581: warning: assignment from incompatible pointer type
refclock_oncore.c:1586: warning: int format, u_long arg (arg 3)
refclock_oncore.c:1600: error: structure has no member named `tv_usec'
refclock_oncore.c:1600: error: structure has no member named `tv_usec'
refclock_oncore.c:1600: error: structure has no member named `tv_usec'
refclock_oncore.c:1456: warning: unused variable `i'
refclock_oncore.c: At top level:
refclock_oncore.c:306: warning: `oncore_ppsapi' used but never defined
*** Error code 1
make: Fatal error: Command failed for target `refclock_oncore.o'
Current working directory /export/home/rbg/ntp-4.2.0/ntpd
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/rbg/ntp-4.2.0
*** Error code 1
make: Fatal error: Command failed for target `all'

What/where is the "BK repository".   I'm new to NTP, new to the 
newsgroup and generally ignorant of many of the things that "everybody 
knows".

Is there some reason why the fixes you mentioned never made it into the 
distribution at ntp.org? 

Thanks again for your help

reg at orion.dwf.com wrote:

>In article <HP2dndM_h8fx6pHdRVn-jQ at comcast.com>,
> "Richard B. Gilbert" <rgilbert88 at comcast.net> writes:
>  
>
>>The following is cut and pasted from the output of dmesg on my Sun Ultra 
>>5.  I restarted the ntpd after creating links in /dev as suggested by 
>>Paul Croome.
>>
>>Jan 19 07:40:26 sunblok ntpd[7920]: [ID 702911 daemon.error] 
>>refclock_newpeer: clock type 30 invalid
>>Jan 19 07:40:26 sunblok ntpd[7920]: [ID 702911 daemon.error] 
>>configuration of 127.127.30.0 failed
>>
>>Why might clock type 30 be invalid?
>>
>>    
>>
>
>Because at some time in the past, someone made an incorrect 'fix'
>to the code in refclock_oncore.c .
>
>At about line 87 you will see the line
>
>    #if defined(REFCLOCK) && defined(CLOCK_ONCORE) && defined(HAVE_PPSAPI)
>
>Remove the last phrase from this line so it reads
>
>    #if defined(REFCLOCK) && defined(CLOCK_ONCORE) 
>
>and try again.  Ill see to it that the fix gets into the code base.
>
>Also, if you are using a M12, you should be getting the code from the BK
>repository rather than the last release, there have been fixes.
>
>  
>




More information about the questions mailing list