When trying to cross compile Precision Time Protocol (PTP) for the 9p9215 I receive several error messages on make,
dep/ntpengine/ntp_isc_md5.c: In function ‘isc_md5_invalidate’:
dep/ntpengine/ntp_isc_md5.c:70: warning: implicit declaration of function ‘bzero’
dep/ntpengine/ntp_isc_md5.c:70: warning: incompatible implicit declaration of built-in function ‘bzero’
dep/ntpengine/ntp_isc_md5.c: In function ‘isc_md5_update’:
dep/ntpengine/ntp_isc_md5.c:191: warning: implicit declaration of function ‘bcopy’
dep/ntpengine/ntp_isc_md5.c:191: warning: incompatible implicit declaration of built-in function ‘bcopy’
dep/ntpengine/ntp_isc_md5.c:195: warning: incompatible implicit declaration of built-in function ‘bcopy’
dep/ntpengine/ntp_isc_md5.c: In function ‘isc_md5_final’:
dep/ntpengine/ntp_isc_md5.c:230: warning: incompatible implicit declaration of built-in function ‘bzero’
dep/ntpengine/ntp_isc_md5.c:236: warning: incompatible implicit declaration of built-in function ‘bzero’
dep/ntpengine/ntp_isc_md5.c:245: warning: incompatible implicit declaration of built-in function ‘bcopy’
dep/ntpengine/ntp_isc_md5.c: In function ‘MD5authencrypt’:
dep/ntpengine/ntp_isc_md5.c:271: warning: incompatible implicit declaration of built-in function ‘bcopy’
and further down:
dep/daemonconfig.o: In function loadCommandLineKeys': /home/dsb/ptp/ptpd-2.3.1-rc4/src/dep/daemonconfig.c:2590: undefined reference to
index’
dep/ntpengine/ntp_isc_md5.o: In function isc_md5_update': /home/dsb/ptp/ptpd-2.3.1-rc4/src/dep/ntpengine/ntp_isc_md5.c:195: undefined reference to
bcopy’
/home/dsb/ptp/ptpd-2.3.1-rc4/src/dep/ntpengine/ntp_isc_md5.c:203: undefined reference to bcopy' /home/dsb/ptp/ptpd-2.3.1-rc4/src/dep/ntpengine/ntp_isc_md5.c:211: undefined reference to
bcopy’
/home/dsb/ptp/ptpd-2.3.1-rc4/src/dep/ntpengine/ntp_isc_md5.c:191: undefined reference to bcopy' dep/ntpengine/ntp_isc_md5.o: In function
isc_md5_final’:
dep/ntpengine/ntp_isc_md5.o:/home/dsb/ptp/ptpd-2.3.1-rc4/src/dep/ntpengine/ntp_isc_md5.c:271: more undefined references to bcopy' follow collect2: ld returned 1 exit status make[2]: *** [ptpd2] Error 1 make[2]: Leaving directory
/home/dsb/ptp/ptpd-2.3.1-rc4/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dsb/ptp/ptpd-2.3.1-rc4’
make: *** [all] Error 2
I think I must need to “include” something, but not sure what.