Compile error Bind 9.16.1 on MacOS 10.14.6

Ondřej Surý ondrej at isc.org
Tue Mar 24 20:29:34 UTC 2020


Hi Larry,

it seems like your macOS SDK is incomplete or something like this.

Both clock_gettime() and CLOCK_REALTIME are available since Mac OSX 10.12.

Please make sure you have up-to-date Xcode and matching Command Line Utils for Xcode.

Ondrej
--
Ondřej Surý
ondrej at isc.org

> On 24 Mar 2020, at 21:23, Larry Stone <lstone19 at stonejongleux.com> wrote:
> 
> I’ve been building Bind from source for a number of years on Macintoshes. Made my first attempt at Bind 9.16.1 today. After navigating the new dependency for libuv and getting a good configure, I tried make and errored at:
> 
> gcc  -include /Users/larry/ServerAppsNoBackup/bind-9.16.1/config.h -I/Users/larry/ServerAppsNoBackup/bind-9.16.1 -I../../.. -I./include -I./../pthreads/include -I../include -I./../include -I./.. -I/usr/local/ssl/include       -g -O2 -Qunused-arguments -pthread -I/usr/local/include -fPIC  -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers -fno-strict-aliasing  -c time.c
> time.c:117:6: warning: implicit declaration of function 'clock_gettime' is
>     invalid in C99 [-Wimplicit-function-declaration]
>       if (clock_gettime(CLOCKSOURCE, &ts) == -1) {
>           ^
> time.c:117:20: error: use of undeclared identifier 'CLOCK_REALTIME'
>       if (clock_gettime(CLOCKSOURCE, &ts) == -1) {
>                         ^
> time.c:42:21: note: expanded from macro 'CLOCKSOURCE'
> #define CLOCKSOURCE CLOCK_REALTIME
>                   ^
> time.c:151:20: error: use of undeclared identifier 'CLOCK_REALTIME'
>       if (clock_gettime(CLOCKSOURCE, &ts) == -1) {
>                         ^
> time.c:42:21: note: expanded from macro 'CLOCKSOURCE'
> #define CLOCKSOURCE CLOCK_REALTIME
>                   ^
> 1 warning and 2 errors generated.
> make[3]: *** [time.o] Error 1
> make[2]: *** [subdirs] Error 1
> make[1]: *** [subdirs] Error 1
> make: *** [subdirs] Error 1
> 
> Searching has turned up nothing for me.
> 
> --
> Larry Stone
> larry at stonejongleux.com
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Larry Stone
> lstone19 at stonejongleux.com
> 
> 
> 
> 
> 
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Message signed with OpenPGP
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20200324/63dc6f69/attachment.bin>


More information about the bind-users mailing list