Issue in bind tarball
The binary tarball of bind-9.11.14 contains this code (bind-9.11.14/lib/isc/stats.c:300
)
static inline void
setcounter(isc_stats_t *stats,
const isc_statscounter_t counter,
const uint64_t value)
{
#if ISC_PLATFORM_HAVESTDATOMIC
atomic_store_explicit(&stats->counters[counter], value,
memory_order_relaxed);
#elif ISC_STATS_HAVEATOMICQ
isc_atomic_storeq((int64_t *)&stats->counters[counter], value);
#else
# if ISC_STATS_USEMULTIFIELDS
isc_atomic_store((int32_t *)&stats->counters[counter].hi,
(uint32_t)((value >> 32) & 0xffffffff));
isc_atomic_store((int32_t *)&stats->counters[counter].lo,
(uint32_t)(value & 0xffffffff));
# else
stats->counters[counter] = val;
# endif
#endif
}
It is the stats->counters[counter] = val
line, results in error during cross-compilation using arm toolchains. It should be stats->counters[counter] = value