Date: Tue, 27 Jan 2015 19:04:06 +0100 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: CURRENT fails to build: make_hash.c : error: indirection requires pointer operand Message-ID: <20150127190406.0a07da35.ohartman@zedat.fu-berlin.de>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Somehow one of my boxes got a wrecked system during an update cycle. Now the system
rejects building world with the error shown below. I also tried to cleanup everything
(/usr/obj deleting) and performing a "make toolchain" - without success.
Is there a way to repair this mess?
[...]
cc -o make_hash -O2 -pipe -O3 -pipe -O3 -I.
-I/usr/obj/usr/src/lib/ncurses/ncurses/../ncurses
-I/usr/src/lib/ncurses/ncurses/../ncurses -I/usr/src/lib/ncurses/ncurses/../ncurses
-I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include
-I/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses -Wall -DNDEBUG
-DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=gnu99 -Qunused-arguments
-I/usr/obj/usr/src/tmp/legacy/usr/include
-DMAIN_PROGRAM /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:100:25:
error: indirection requires pointer operand ('int' invalid) return (int) (sum %
HASHTABSIZE); ^~~~~~~~~~~ ./hashsize.h:6:23: note: expanded from macro 'HASHTABSIZE'
#define HASHTABSIZE ( * 2) ^
~ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:111:21:
error: indirection requires pointer operand ('int' invalid) for (i = 0; i < HASHTABSIZE;
i++) { ^~~~~~~~~~~ ./hashsize.h:6:23: note: expanded from macro 'HASHTABSIZE' #define
HASHTABSIZE ( * 2) ^
~ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:114:31:
error: expected expression for (i = 0; i < CAPTABSIZE; i++)
{ ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:125:77:
error: expected expression printf("/* %d collisions out of %d entries */\n", collisions,
CAPTABSIZE);
^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:194:43:
error: expected expression struct name_table_entry *name_table = typeCalloc(struct ^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/nc_alloc.h:107:59: note:
expanded from macro 'typeCalloc' #define typeCalloc(type,elts) (type
*)calloc((size_t)(elts),sizeof(type)) ^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:196:51:
error: indirection requires pointer operand ('int' invalid) HashValue *hash_table =
typeCalloc(HashValue, HASHTABSIZE); ^~~~~~~~~~~
./hashsize.h:6:23: note: expanded from macro 'HASHTABSIZE'
#define HASHTABSIZE ( * 2)
^ ~
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/nc_alloc.h:107:55: note:
expanded from macro 'typeCalloc' #define typeCalloc(type,elts) (type
*)calloc((size_t)(elts),sizeof(type)) ^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:227:32:
error: expected expression for (n = 0; (n < CAPTABSIZE) && fgets(buffer, BUFSIZ, stdin);)
{ ^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:268:28:
error: expected expression for (n = 0; n < CAPTABSIZE; n++) {
^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:283:28:
error: expected expression for (n = 0; n < CAPTABSIZE; n++) {
^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:299:28:
error: expected expression for (n = 0; n < CAPTABSIZE; n++) {
^
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_hash.c:314:5:
error: indirection requires pointer operand ('int' invalid) HASHTABSIZE + 1);
^~~~~~~~~~~
./hashsize.h:6:23: note: expanded from macro 'HASHTABSIZE'
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJUx9MWAAoJEOgBcD7A/5N8msAIAOWcbgGaPNWFzbp0ArBmpwIb
Z2HKV1DB8QET6SAa9ZU5pVAdNJWF9tXTyemuR6Slr/7BxCnrlBrSyxIIAhAiAsb1
cQYzvJIdfezL7eLbh6svg2itpTZHkhG5A7o/SyrQrM80VsV7wwZGR/bGmGCyrgPP
C0mKUOsRkf6L/xvy3rmboNeaQgyqLnt6ocTzn8uFWTLVs4aby7krxC/DY8F3AE9Q
HFa2sZijYXv7Y8gSUgzBAi7tIAsqHCGNBvw3kOUh0+JInly05rhM/UiPwuT7Uaut
0LSS5fMxRfYHw8eGy4pXTtCLj+NitWBbJpd/GMZy9Vt38GDMbwR+alhdI5HlRq0=
=FMEq
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150127190406.0a07da35.ohartman>
