Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

config, build failure ("srcdir shadows a global...")



#   compile  config/mkmakefile.o
/usr/src/obj/tooldir.NetBSD-7.99.21-amd64/bin/x86_64--netbsd-gcc -O2
 -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare  -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswi
tch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter
-Wno-sign-compare -Wold-style-definition -Wconversion -Wsign-compare
-Wformat=2  -Wno-format-zero-length  -Werror -Wno-format-y2k
--sysroot=/usr/src/obj
/destdir.amd64 -I/usr/src/usr.bin/config -I. -I/usr/src/usr.bin/cksum
-c    /usr/src/usr.bin/config/mkmakefile.c
/usr/src/usr.bin/config/mkmakefile.c: In function 'emitfile':
/usr/src/usr.bin/config/mkmakefile.c:301:14: error: declaration of
'srcdir' shadows a global declaration [-Werror=shadow]
  const char *srcdir = "$S/";
              ^
In file included from /usr/src/usr.bin/config/mkmakefile.c:58:0:
/usr/src/usr.bin/config/defs.h:434:13: error: shadowed declaration is
here [-Werror=shadow]
 const char *srcdir;  /* path to source directory (rel. to build) */
             ^


Home | Main Index | Thread Index | Old Index