From nobody Wed Dec 11 23:20:08 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y7s5N3lVJz5gcqD for ; Wed, 11 Dec 2024 23:20:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7s5N2TC3z45Sh for ; Wed, 11 Dec 2024 23:20:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733959208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q7xK5nVl5DDtqdqkuN+L1kURFTCJe8K22Q6iOYkSFYg=; b=sfHMW1SmL+ZBA4rjrhIQhkoQfhukNOrffutqU/FEbxm51EZuwuc3HF2/neK0LpbWWRiUXr LwgPlUn4IijhHdTUVpy8wocFghHtLmjJkSDFiTnGd/fpOw/q0GbeeE5nl2+VcDH3jGx9+3 WMJ7nd0MnqLGqmKLEvbHQUpil4Tm/OVgzEyLJceTzBuGwuVBQ3VHLt6au1/peeKE8/E5Tj 35fIDxFJ0e8kwMTzTsB82VrsbtveBEMEFi2v+d7rLcq/Z3gLAn9d3iKpB0OoRj3m4s7fVh wdAsIsAO68VsKAg+GhmgqzcBJPwXNEn9k30ywhr4u8R1I6o/aeYxTX1z02ckug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733959208; a=rsa-sha256; cv=none; b=agEI8K4MfLEROUi4NIFGGCRNOCoWlAsD2UzL+XmWw2dBqBwhCwfvvYMXZ2TaGKencwyw2p ClOaSwTqUy6BMhbfRQYNMxYgyWmc/6wMvtpgScEnG/Q2Kk20Ax8Gt1gqjsaFOBA8saB8yZ iIhYLOaUnOhPX2D9rTVhEYxxdVPXgeWGl7zCwIMKoO+NnVotLZA2wHwC1VBCH/NmT9OCv7 MO5tpB0kuAfT5ezbYiO0ACSJZ7kj4RxRVntaVoDC2odEo7QZDMYvHC+8P+bdAVSmSps8Yf LvsSa1JP2ofkpXD6b7ghAH3xwD/q7nW5/4P+aou5Kin+G5Vs9Mrwro2KZejjeA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y7s5N1jKnzSZt for ; Wed, 11 Dec 2024 23:20:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BBNK80m010553 for ; Wed, 11 Dec 2024 23:20:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BBNK8kw010552 for bugs@FreeBSD.org; Wed, 11 Dec 2024 23:20:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283273] bin/csh: tc.const.h depends on host, not target, headers Date: Wed, 11 Dec 2024 23:20:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283273 Bug ID: 283273 Summary: bin/csh: tc.const.h depends on host, not target, headers Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org On my laptop I have WIP that has TIOCSTI removed. tcsh supports this (with `#ifdef TIOCSTI` in its source). However, buildworld failed in tcsh: .../contrib/tcsh/sh.set.c:761:15: error: use of undeclared identifier 'STRfilec' 761 | if (adrof(STRfilec) =3D=3D 0) | ^ tc.const.h is generated via (bin/csh/Makefile): tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h ${BUILD_TOOLS_META} @rm -f ${.TARGET} @echo '/* Do not edit this file, make creates it. */' > ${.TARGET} @echo '#ifndef _h_tc_const' >> ${.TARGET} @echo '#define _h_tc_const' >> ${.TARGET} ${CC:N${CCACHE_BIN}} -E ${CFLAGS:C/-DHAVE_ICONV//} ${.ALLSRC} -D_h_tc_const | \ grep 'Char STR' | \ sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \ sort >> ${.TARGET} @echo '#endif /* _h_tc_const */' >> ${.TARGET} This uses the host's headers which in my case do not define TIOCSTI, and as= a result there's no definition for STRfilec (comparing stock build on ref14-amd64.freebsd with one on my machine): $ diff -purw bin/csh/ref-obj/ bin/csh/obj/ | egrep -v 'Only in|Binary files' diff -purw bin/csh/ref-obj/tc.const.h bin/csh/obj/tc.const.h --- bin/csh/ref-obj/tc.const.h 2024-12-11 17:17:29.000000000 -0500 +++ bin/csh/obj/tc.const.h 2024-12-11 18:13:33.439537000 -0500 @@ -122,7 +122,6 @@ extern Char STRfignore[]; extern Char STRfakecom1[]; extern Char STRfakecom[]; extern Char STRfignore[]; -extern Char STRfilec[]; extern Char STRgid[]; extern Char STRglobdot[]; extern Char STRglobstar[]; --=20 You are receiving this mail because: You are the assignee for the bug.=