ptpd on the apple mac

Steven Kreuzer skreuzer at freebsd.org
Thu Sep 10 12:34:14 EDT 2009


On Sep 10, 2009, at 11:03 AM, alex wrote:

> Thanks for the responses, I had another look at this,
>
> I got version 1.0.0 of ptpd from the tarball to compile by:
> 1/ downloading and using a copy of sys/timex.h from FreeBSD, which is
> missing in mac os x.
> 2/ Adding the following to dep/constants.dep
>  #define __FreeBSD__
>  #include <sys/param.h>
>
> but it doesn't link however, I get:
>
> Undefined symbols:
>  "_ntp_adjtime", referenced from:
>      _adjFreq in sys.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [ptpd] Error 1
>
> I am not a mac person at all, but understand apple have their own ntp
> kernel stuff with a different api.

you might need to grab kern_ntptime.c from freebsd as well.

--
Steven Kreuzer
http://www.exit2shell.com/~skreuzer




More information about the Ptpd mailing list