dnsrps.c:268:41: error: 'dns_db_t' {aka 'struct dns_db'} has no member named 'refcount'
On main
job #3182979 failed for 211ec73f.
#3882 (closed) seems to be the culprit.
To reproduce, configure with --enable-developer --enable-dnsrps --enable-dnsrps-dl
.
In file included from ../../lib/isc/include/isc/atomic.h:16,
from ../../lib/isc/include/isc/refcount.h:19,
from ./include/dns/message.h:25,
from ./include/dns/rdata.h:91,
from ./include/dns/db.h:64,
from dnsrps.c:27:
dnsrps.c: In function 'dns_dnsrps_rewrite_init':
dnsrps.c:268:41: error: 'dns_db_t' {aka 'struct dns_db'} has no member named 'refcount'
268 | isc_refcount_init(&rpsdb->common.refcount, 1);
| ^
dnsrps.c:268:9: note: in expansion of macro 'isc_refcount_init'
268 | isc_refcount_init(&rpsdb->common.refcount, 1);
| ^~~~~~~~~~~~~~~~~
CC libdns_la-remote.lo
CC libdns_la-request.lo
../../lib/isc/include/isc/refcount.h:44:42: error: '__atomic_store_ptr' undeclared (first use in this function); did you mean '__atomic_store_n'?
44 | #define isc_refcount_init(target, value) atomic_init(target, value)
| ^~~~~~~~~~~
dnsrps.c:268:9: note: in expansion of macro 'isc_refcount_init'
268 | isc_refcount_init(&rpsdb->common.refcount, 1);
| ^~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/refcount.h:44:42: note: each undeclared identifier is reported only once for each function it appears in
44 | #define isc_refcount_init(target, value) atomic_init(target, value)
| ^~~~~~~~~~~
dnsrps.c:268:9: note: in expansion of macro 'isc_refcount_init'
268 | isc_refcount_init(&rpsdb->common.refcount, 1);
| ^~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/refcount.h:44:42: error: argument 1 of '__atomic_store' must be a non-void pointer type
44 | #define isc_refcount_init(target, value) atomic_init(target, value)
| ^~~~~~~~~~~
dnsrps.c:268:9: note: in expansion of macro 'isc_refcount_init'
268 | isc_refcount_init(&rpsdb->common.refcount, 1);
| ^~~~~~~~~~~~~~~~~
dnsrps.c: In function 'rpsdb_destroy':
CC libdns_la-resolver.lo
dnsrps.c:370:10: error: 'dbp' undeclared (first use in this function); did you mean 'db'?
370 | *dbp = NULL;
| ^~~
| db
In file included from ../../lib/isc/include/isc/list.h:16,
from ../../lib/isc/include/isc/util.h:218,
from ../../lib/isc/include/isc/mutex.h:24,
from ../../lib/isc/include/isc/mem.h:23,
from dnsrps.c:23:
dnsrps.c:373:44: error: 'dns_db_t' {aka 'struct dns_db'} has no member named 'refcount'
373 | isc_refcount_destroy(&rpsdb->common.refcount);
| ^
../../lib/isc/include/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
45 | ((void)((cond) || \
| ^~~~
../../lib/isc/include/isc/refcount.h:55:54: note: in expansion of macro 'atomic_load_acquire'
55 | #define isc_refcount_current(target) (uint_fast32_t) atomic_load_acquire(target)
| ^~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/refcount.h:63:21: note: in expansion of macro 'isc_refcount_current'
63 | ISC_REQUIRE(isc_refcount_current(target) == 0)
| ^~~~~~~~~~~~~~~~~~~~
dnsrps.c:373:9: note: in expansion of macro 'isc_refcount_destroy'
373 | isc_refcount_destroy(&rpsdb->common.refcount);
| ^~~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/atomic.h:50:32: error: '__atomic_load_ptr' undeclared (first use in this function); did you mean '__atomic_load_n'?
50 | #define atomic_load_acquire(o) atomic_load_explicit((o), memory_order_acquire)
| ^~~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
45 | ((void)((cond) || \
| ^~~~
../../lib/isc/include/isc/refcount.h:55:54: note: in expansion of macro 'atomic_load_acquire'
55 | #define isc_refcount_current(target) (uint_fast32_t) atomic_load_acquire(target)
| ^~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/refcount.h:63:21: note: in expansion of macro 'isc_refcount_current'
63 | ISC_REQUIRE(isc_refcount_current(target) == 0)
| ^~~~~~~~~~~~~~~~~~~~
dnsrps.c:373:9: note: in expansion of macro 'isc_refcount_destroy'
373 | isc_refcount_destroy(&rpsdb->common.refcount);
| ^~~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/atomic.h:50:32: error: argument 1 of '__atomic_load' must be a non-void pointer type
50 | #define atomic_load_acquire(o) atomic_load_explicit((o), memory_order_acquire)
| ^~~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/assertions.h:45:18: note: in definition of macro 'ISC_REQUIRE'
45 | ((void)((cond) || \
| ^~~~
../../lib/isc/include/isc/refcount.h:55:54: note: in expansion of macro 'atomic_load_acquire'
55 | #define isc_refcount_current(target) (uint_fast32_t) atomic_load_acquire(target)
| ^~~~~~~~~~~~~~~~~~~
../../lib/isc/include/isc/refcount.h:63:21: note: in expansion of macro 'isc_refcount_current'
63 | ISC_REQUIRE(isc_refcount_current(target) == 0)
| ^~~~~~~~~~~~~~~~~~~~
dnsrps.c:373:9: note: in expansion of macro 'isc_refcount_destroy'
373 | isc_refcount_destroy(&rpsdb->common.refcount);
| ^~~~~~~~~~~~~~~~~~~~
dnsrps.c: In function 'rpsdb_attachnode':
dnsrps.c:386:46: error: 'dns_db_t' {aka 'struct dns_db'} has no member named 'refcount'
386 | isc_refcount_increment(&rpsdb->common.refcount);
| ^
../../lib/isc/include/isc/refcount.h:105:23: note: in expansion of macro 'atomic_fetch_add_relaxed'
105 | __v = atomic_fetch_add_relaxed(target, 1); \
| ^~~~~~~~~~~~~~~~~~~~~~~~
dnsrps.c:386:9: note: in expansion of macro 'isc_refcount_increment'
386 | isc_refcount_increment(&rpsdb->common.refcount);
| ^~~~~~~~~~~~~~~~~~~~~~
CC libdns_la-result.lo
CC libdns_la-rootns.lo
CC libdns_la-rpz.lo
CC libdns_la-rrl.lo
dnsrps.c: At top level:
dnsrps.c:924:9: error: 'first' undeclared here (not in a function)
924 | first = rpsdb_rdataset_first,
| ^~~~~