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: pgpCmAupGMzX5.pgp
Description: OpenPGP digital signature

Reply via email to