trampoline.c: fatal error: 'uv.h' file not found on BSD when JSON-C is disabled
On v9_16
compiler fails to find <uv.h>
when BIND 9 is configured with --without-json-c
(or JSON-C is not present) on FreeBSD 12.3:
$ ./configure --without-json-c && make -j5
...
cc -include /home/newman/bind9/config.h -I/home/newman/bind9 -I../.. -I./unix/include -I./pthreads/include -I./include -I./include -I. -I/home/newman/bind9/lib/dns/include -I../../lib/dns/include -I/usr/include -DOPENSSL_SUPPRESS_DEPRECATED -I/usr/local/include/libxml2 -g -O2 -pthread -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers -fno-strict-aliasing -c trampoline.c
trampoline.c:18:10: fatal error: 'uv.h' file not found
#include <uv.h>
^~~~~~
The build failure starts with be7f672f but it may be just a symptom of not adding -I/usr/local/include
when checking for libuv's uv.h
in ./configure
.