GNU bug report logs - #42464
v1.6.0 fails to build on OS X 10.11: "error: use of undeclared identifier 'CLOCK_MONOTONIC'"

Previous Next

Package: adns;

Reported by: Leon Klingele <mail <at> leonklingele.de>

Date: Tue, 21 Jul 2020 11:07:01 UTC

Severity: normal

To reply to this bug, email your comments to 42464 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to adns-discuss <at> chiark.greenend.org.uk:
bug#42464; Package adns. (Tue, 21 Jul 2020 11:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leon Klingele <mail <at> leonklingele.de>:
New bug report received and forwarded. Copy sent to adns-discuss <at> chiark.greenend.org.uk. (Tue, 21 Jul 2020 11:07:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leon Klingele <mail <at> leonklingele.de>
To: submit <at> debbugs.gnu.org
Subject: v1.6.0 fails to build on OS X 10.11: "error: use of undeclared
 identifier 'CLOCK_MONOTONIC'"
Date: Tue, 21 Jul 2020 10:34:39 +0200
Package: adns

Steps to reproduce:

```sh
$ brew install adns
# [..]
==> make
set -e; for d in src  client regress; do /Applications/Xcode.app/Contents/Developer/usr/bin/make -C $d all; done
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o types.o types.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o event.o event.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o query.o query.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o reply.o reply.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o general.o general.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o setup.o setup.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o transmit.o transmit.c
clang -g -O2 -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith -Wno-pointer-sign -Wno-unused-value  -I. -I.    -c -o parse.o parse.c
event.c:158:25: error: use of undeclared identifier 'CLOCK_MONOTONIC'
  int r = clock_gettime(CLOCK_MONOTONIC,&ts);
                        ^
1 error generated.
make[1]: *** [event.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
```



This bug report was last modified 3 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.