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>
next in thread | raw e-mail | index | archive | help
--Sig_/7SUeUuPaAkqSziSHEl88rWh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Somehow one of my boxes got a wrecked system during an update cycle. Now th= e 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 -DNDE= BUG -DHAVE_CONFIG_H -DFREEBSD_NATIVE -DTERMIOS -std=3Dgnu99 -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include -DMAIN_PROGRAM /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurs= es/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) (s= um % HASHTABSIZE); ^~~~~~~~~~~ ./hashsize.h:6:23: note: expanded from macro 'HAS= HTABSIZE' #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 =3D 0; i= < HASHTABSIZE; i++) { ^~~~~~~~~~~ ./hashsize.h:6:23: note: expanded from macro 'HASHTABSIZ= E' #define HASHTABSIZE ( * 2) ^ ~ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_= hash.c:114:31: error: expected expression for (i =3D 0; i < CAPTABSIZE; i++) { ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/mak= e_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 =3D typeCall= oc(struct ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/nc_alloc.h:10= 7: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_ha= sh.c:196:51: error: indirection requires pointer operand ('int' invalid) HashValue *hash= _table =3D 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:10= 7: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_ha= sh.c:227:32: error: expected expression for (n =3D 0; (n < CAPTABSIZE) && fgets(buffer, = BUFSIZ, stdin);) { ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_ha= sh.c:268:28: error: expected expression for (n =3D 0; n < CAPTABSIZE; n++) { ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_ha= sh.c:283:28: error: expected expression for (n =3D 0; n < CAPTABSIZE; n++) { ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_ha= sh.c:299:28: error: expected expression for (n =3D 0; n < CAPTABSIZE; n++) { ^ /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/ncurses/tinfo/make_ha= sh.c:314:5: error: indirection requires pointer operand ('int' invalid) HASHTABSIZE + 1= ); ^~~~~~~~~~~ ./hashsize.h:6:23: note: expanded from macro 'HASHTABSIZE' --Sig_/7SUeUuPaAkqSziSHEl88rWh Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----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----- --Sig_/7SUeUuPaAkqSziSHEl88rWh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150127190406.0a07da35.ohartman>