From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 18:04:20 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 95B6136D for ; Tue, 27 Jan 2015 18:04:20 +0000 (UTC) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DBCEEA5 for ; Tue, 27 Jan 2015 18:04:19 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.82) for freebsd-current@freebsd.org with esmtp (envelope-from ) id <1YGAUl-001KcY-Md>; Tue, 27 Jan 2015 19:04:11 +0100 Received: from g229052033.adsl.alicedsl.de ([92.229.52.33] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.82) for freebsd-current@freebsd.org with esmtpsa (envelope-from ) id <1YGAUl-002k0J-Hl>; Tue, 27 Jan 2015 19:04:11 +0100 Date: Tue, 27 Jan 2015 19:04:06 +0100 From: "O. Hartmann" To: FreeBSD CURRENT Subject: CURRENT fails to build: make_hash.c : error: indirection requires pointer operand Message-ID: <20150127190406.0a07da35.ohartman@zedat.fu-berlin.de> Organization: FU Berlin X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/7SUeUuPaAkqSziSHEl88rWh"; protocol="application/pgp-signature" X-Originating-IP: 92.229.52.33 X-ZEDAT-Hint: A X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2015 18:04:20 -0000 --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--