#error "isc/stdatomic.h does not support your compiler"
Summary
When compiling a plugin outside the bind source tree a fatal error is thrown by #error "isc/stdatomic.h does not support your compiler"
BIND version affected
all 9.18.x versions
Steps to reproduce
- copy a plugin to outside the bind tree
- make sure the plugin includes isc/log.h which triggers the inclusion of isc/stdatomic.h
- use gcc 5.0 or higher
What is the current bug behavior?
The copiler issues a fatal error:
In file included from /local/src/bind/urlfilterdb-isc-bind-918/lib/isc/include/isc/atomic.h:19,
from /local/src/bind/urlfilterdb-isc-bind-918/lib/isc/include/isc/types.h:16,
from /local/src/bind/urlfilterdb-isc-bind-918/lib/isc/include/isc/log.h:25,
from ufdb-bind-log.h:12,
from ufdb-bind-log.c:19:
/local/src/bind/urlfilterdb-isc-bind-918/lib/isc/include/isc/stdatomic.h:29:2: error: #error "isc/stdatomic.h does not support your compiler"
29 | #error "isc/stdatomic.h does not support your compiler"
| ^~~~~
What is the expected correct behavior?
compilation is successful
Relevant configuration files
Relevant logs
Edited by Mark Andrews