stats.c:300:29:error: undeclared (first use in this function): stats->counters[counter] = val;
Build of BIND 9.11.14 on ppc64le CentOS 7 Copr build root fails with:
/bin/sh /builddir/build/BUILD/bind-9.11.14/libtool --mode=compile --tag=CC gcc -std=gnu99 -I/builddir/build/BUILD/bind-9.11.14 -I../.. -I./unix/include -I./pthreads/include -I./noatomic/include -I./include -I./include -I/builddir/build/BUILD/bind-9.11.14/lib/dns/include -I../../lib/dns/include -I/opt/isc/isc-bind/root/usr/include -D_REENTRANT -DOPENSSL -DPK11_LIB_LOCATION=\"undefined\" -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -I/usr/include/libxml2 -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c stats.c
libtool: compile: gcc -std=gnu99 -I/builddir/build/BUILD/bind-9.11.14 -I../.. -I./unix/include -I./pthreads/include -I./noatomic/include -I./include -I./include -I/builddir/build/BUILD/bind-9.11.14/lib/dns/include -I../../lib/dns/include -I/opt/isc/isc-bind/root/usr/include -D_REENTRANT -DOPENSSL -DPK11_LIB_LOCATION=\"undefined\" -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power8 -mtune=power8 -I/usr/include/libxml2 -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c stats.c -fPIC -DPIC -o .libs/stats.o
[01m[Kstats.c:[m[K In function '[01m[Ksetcounter[m[K':
[01m[Kstats.c:300:29:[m[K [01;31m[Kerror: [m[K'[01m[Kval[m[K' undeclared (first use in this function)
stats->counters[counter] = val;
[01;32m[K ^[m[K
[01m[Kstats.c:300:29:[m[K [01;36m[Knote: [m[Keach undeclared identifier is reported only once for each function it appears in
[01m[Kstats.c:286:20:[m[K [01;35m[Kwarning: [m[Kunused parameter '[01m[Kvalue[m[K' [-Wunused-parameter]
const uint64_t value)
[01;32m[K ^[m[K
make[2]: *** [stats.lo] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/bind-9.11.14/lib/isc'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/bind-9.11.14/lib'
make: *** [subdirs] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.m7mn1J (%build)
See https://copr-be.cloud.fedoraproject.org/results/isc/bind-esv/srpm-builds/01131112/builder-live.log.gz (also attached as builder-live.log).