From nobody Sun May 21 09:14:02 2023 X-Original-To: x11@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 4QPFJC13w9z4CHLX for ; Sun, 21 May 2023 09:14:03 +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 4QPFJB5Sdfz3y33 for ; Sun, 21 May 2023 09:14:02 +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=1684660442; 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: in-reply-to:in-reply-to:references:references; bh=UXUKn+cIACqcuW+FLOrgnHib8eznvS0Pv3a0/QS80vw=; b=ewp4shenmvc5SwrqZuE3pC0GXjDEw+CwTPn8Nm90bxK/aLQ3lR7UEgXn4Ahr6/OLPQ3Rt8 grKnX4qI1nFlVQ+i7WIlK5h3zlUG5Pnr+OBRAatLZp/QqExmrw0JqbbcJuZS6cAMMzllgd oT/Vsco8RT/yTrY+H/je7X38RXKliPgfxBm3nCnMFqBdKd6cNp9Zn0iUPXIqqjYr0+GNR6 26HgNJ9z21RkOZ3b/0+TFW+JbOi90aXScXmwP77MxMlENvfG3NqotPib/ghO/q+6lwJUDK I/OH/s6Mlwms6bKDdFSBaSW9C3VDnPizUa/XkL9NgIHFgkcFTIH1RcYK4V6tuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684660442; a=rsa-sha256; cv=none; b=WZvrjRUTjcRKmXA977AAZRXPXfhAcPbUgw9ee3oNq3gZhhnQOLYG3j/GXHzfoQTNbD8GDa V7rRKCLZJoo/rXk7zq6JLOUD7s45ZKZKAhzFTqpouD1BuSosA25wLWrpHtbNb/O229jImg 5PBTp6BwDxnVlkbOqoqtgMuDFiD1wA2OXQ6dMOSb08wQXkk7e9vinsxyni9JWkxcAjYQeh qb4i5CRTHR4DSLLJZLBuEL4NPgr69DRVZ1kJTeNS10jW2EzIW754AShFqwb9CPjUDnmo2b ir+5OuNrxBag2XrGwVDJ5/w2stsVSB6dsj0zxFhzCGvyNTwRbvMZKsDs2Ewypw== 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 4QPFJB4XjJzm43 for ; Sun, 21 May 2023 09:14:02 +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 34L9E25P001633 for ; Sun, 21 May 2023 09:14:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34L9E2sN001632 for x11@FreeBSD.org; Sun, 21 May 2023 09:14:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 271533] x11/xorgproto: ensure Xos.h does not define index() as a macro Date: Sun, 21 May 2023 09:14:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271533 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3De5a0215417930a60ac8fbbc630fad6a= a354446e5 commit e5a0215417930a60ac8fbbc630fad6aa354446e5 Author: Dimitry Andric AuthorDate: 2023-05-20 15:15:41 +0000 Commit: Dimitry Andric CommitDate: 2023-05-21 09:12:30 +0000 x11/xorgproto: ensure Xos.h does not define index() as a macro During the exp-run for clang 16, it turned out that Xos.h defines index() and rindex() as preprocessor macros, and this causes many problems with libc++ headers [1]: /usr/include/c++/v1/variant:532:39: error: too few arguments provided= to function-like macro invocation return __at(__fmatrix, __vs.index()...)( ^ /usr/local/include/X11/Xos.h:67:12: note: macro 'index' defined here # define index(s,c) (strchr((s),(c))) ^ /usr/include/c++/v1/variant:813:18: error: too few arguments provided= to function-like macro invocation return index() =3D=3D variant_npos; ^ /usr/local/include/X11/Xos.h:67:12: note: macro 'index' defined here # define index(s,c) (strchr((s),(c))) ^ /usr/include/c++/v1/variant:817:25: error: expected ';' at end of declaration list constexpr size_t index() const noexcept { ^ /usr/include/c++/v1/variant:802:9: error: member initializer '__data' does not name a non-static data member or base class : __data(__tag), __index(__variant_npos<__index_t>) {} ^~~~~~~~~~~~~ /usr/include/c++/v1/variant:808:9: error: member initializer '__data' does not name a non-static data member or base class __data(in_place_index<_Ip>, _VSTD::forward<_Args>(__args)...), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/variant:920:23: error: too few arguments provided= to function-like macro invocation __rhs.index(), ^ /usr/local/include/X11/Xos.h:67:12: note: macro 'index' defined here # define index(s,c) (strchr((s),(c))) ^ Add defined(__FreeBSD__) to Xos.h's #if block to include instead, so it will get our regular index() and rindex() declarations instead. This has also been sent upstream [2]. [1] [2] PR: 271533 Approved by: manu (maintainer) MFH: 2023Q2 x11/xorgproto/Makefile | 1 + x11/xorgproto/files/patch-include_X11_Xos.h (new) | 11 +++++++++++ 2 files changed, 12 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=