From nobody Wed Feb 09 13:27:25 2022 X-Original-To: tcltk@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 A0D9019B4409 for ; Wed, 9 Feb 2022 13:27:25 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jv0zd2Yr8z4Yqp for ; Wed, 9 Feb 2022 13:27:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 341125FFC for ; Wed, 9 Feb 2022 13:27:25 +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 219DRP8D078674 for ; Wed, 9 Feb 2022 13:27:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 219DRPif078672 for tcltk@FreeBSD.org; Wed, 9 Feb 2022 13:27:25 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: tcltk@FreeBSD.org Subject: [Bug 261829] lang/expect: fix build with only lang/tcl87 installed Date: Wed, 09 Feb 2022 13:27:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tcltk@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created 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: FreeBSD-specific Tcl/Tk discussions List-Archive: https://lists.freebsd.org/archives/freebsd-tcltk List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-tcltk@freebsd.org X-BeenThere: freebsd-tcltk@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644413245; 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=cy9FL2mXs8GYbmNDy5wDQ7yfG+T5HMy7HRanZTJnFAQ=; b=qJQamRKw/LyneahnlgVfZNe1XTcyBJot+BO5j84hOnVpir97uIhUET/xCansrXAH4s8gVz W3N80HZTHO7zNVN6pvK1uKqB5Bc7wNeVe5UFjk3GSygG5BCIevTvjEM1lmC1v0N1i48yWM iIV52YQpL5+img/5JGiPvRPrqeFSFx6zbJbBZ4tkZbEEWJ63KHdLqwYa6jezV3RL0xRYdO 06Zj5RjUR0gh+ZCLk4WLWHlx9nlY4jCUjvOmb2JEMe2muYTJH7EQ+JJk2zfkoIOgPOWoL1 fsa0u5Y9k72IYl01HhY4OPoX9rWxmPIpE9AGD+03Th4YGQ2StD8dnQb74i+LCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644413245; a=rsa-sha256; cv=none; b=k84Net3f8SoDDiuTG3PYaNOB8cwqrDxvKk1T7VkQMmYUG0zl94sDGb8kw67Qi7P8AIb8qf fv0bMZwu5GaWNye9/S9s3bCL0/jAhqeTneWGsF6tOVyDcSkXQEgD14Jf8yTK6p6p53lLcL 6oCvewgMVRHHQsy+FFqevo8U9SjnYTSbFsFJkEKxT1O29WTEJXZsq/KQhrDzTVpYqRRMQ3 S7HB0SrlxFUs3oO7zzYKmuY1Gq32KvmpmZpLefgjQpOeF9L2mzyZ8Xzb2Jdd1onjpUPFPj NI1opacJvH5Fw8BPIwuaBsrkSOlRB9H2vaa6kEl/IFzfn0nPTOqZwlQUPDarxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261829 Bug ID: 261829 Summary: lang/expect: fix build with only lang/tcl87 installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: tcltk@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: tcltk@FreeBSD.org Flags: maintainer-feedback?(tcltk@FreeBSD.org) Created attachment 231676 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231676&action= =3Dedit Replace CONST84 with CONST If you have DEFAULT_VERSIONS+=3Dtcltk=3D8.7 in your make.conf, and therefor= e only have lang/tcl87 installed, lang/expect does not compile, complaining about = an bad identifier "CONST84". With the older lang/tcl86 installed, this is defined in /usr/local/include/tcl8.6/tcl.h: #ifdef USE_NON_CONST # ifdef USE_COMPAT_CONST # error define at most one of USE_NON_CONST and USE_COMPAT_CONST # endif # define CONST84 # define CONST84_RETURN #else # ifdef USE_COMPAT_CONST # define CONST84 # define CONST84_RETURN const # else # define CONST84 const # define CONST84_RETURN const # endif #endif #ifndef CONST86 # define CONST86 CONST84 #endif Since we are now in the next millennium, we can assume const always works, = and replace the CONST84 macro with just CONST. --=20 You are receiving this mail because: You are the assignee for the bug.=