errors: variables ‘uid’ and ‘cache’ set but not used

Eric Kom erickom at namekom.co.za
Tue Oct 4 19:10:51 UTC 2011


Hello all,

Please I tried to complied a source git version with out success.
see below the above error:

Making all in .
make[6]: Entering directory `/root/bind10/src/bin/dhcp6'
g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/lib
-I../../../src/lib -I../../../src/bin -I../../../src/bin
-I../../../src/lib/dns -I../../../src/lib/dns -I../../../src/lib/cc
-I../../../src/lib/cc -I../../../src/lib/asiolink
-I../../../src/lib/asiolink  -I../../../ext/asio
-I../../../ext/coroutine -DASIO_DISABLE_THREADS=1 -Wall -Wextra
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -Werror -fPIC -g
-O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc
main.cc: In function ‘int main(int, char**)’:
main.cc:62:17: error: variable ‘uid’ set but not used
[-Werror=unused-but-set-variable]
main.cc:63:10: error: variable ‘cache’ set but not used
[-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors

make[6]: *** [main.o] Error 1
make[6]: Leaving directory `/root/bind10/src/bin/dhcp6'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/root/bind10/src/bin/dhcp6'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/bind10/src/bin/dhcp6'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/bind10/src/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/bind10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bind10'
make: *** [all] Error 2


this below is my OS g++ compiler version:

root at kom:~# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.6.1/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.1-8'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
--enable-objc-gc --enable-targets=all --with-arch-32=i586
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.6.1 (Debian 4.6.1-8)

	
-- 
Your Truly

Eric Kom

2 Hennie Van Till, White River, 1240
erickom at kom.za.net | erickom at namekom.co.za | erickom at erickom.co.za
www.kom.za.net | www.kom.za.org | www.erickom.co.za

Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5



More information about the bind10-users mailing list