From nobody Sun May 14 18:00:47 2023 X-Original-To: office@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 4QK9KC6XQWz4Bxkp for ; Sun, 14 May 2023 18:00:47 +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 4QK9KC45jyz3JCG for ; Sun, 14 May 2023 18:00:47 +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=1684087247; 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=IRrTAGkZf1X2b7IWJxBcbOqpPXVEboM7pldBaPGBSgs=; b=WanH4LfeClFG8B4t3suG07xtuiesBAj2JBaN51kxkvwJly8D+uDtJcDtjLBB7vfBq17eJg fdPJo1TecAWy9nxg9tRE4II0ieTr/tjWtIGBVSPuw+eVUcuysBtw6gFLypOH3OmyoEdIF5 p6Udy1RwCII3hL1q8aP/q4wRkDYfw3R7kF/8jVERHBznLgJuakU0yC5vtx6unPt7elVB5D uqPdglL4OMnvMmNPNE4aq70EGERp8YWLkX7K8o+E1vw34kOuRYS5WJieXgBPwqpAWy2tuw tX/9HRnaBG74frro7v4hs/bCbiCF78tjJKz+9mtdfhdcF9wB6vBxWJI1mstUfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684087247; a=rsa-sha256; cv=none; b=gaGP0rKYJcPaztoKT84+KGVSi7mP1XH/3hTEviiLP+xdHsUu1Aqb8+r7R+2G+PPSnSI8gj ZnxfUgUwluRVkXH2cXUuIGuj8r98ikkhbIWJ54OkJD5mnRVgle6ssYepschRH4SdY9TCiT dvmxfRT3om8ZzVY+IFj45Dx21wzHfHgxsqrdr6JJi3JRhn1lkRP07hMLha+8IJm/HNkBTq TZQqheWjuH8NdexvEV3WwyOWgqv8ugY3FICcPN8V0ZZx37ZJPbW2dnwtHyTEdxqqiA5Pv/ rENUhD1XnwnJeoP8rmxrkw0bYGvqceeUlM6PS0thpkBfPipHRfeVUOjNBUlIAw== 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 4QK9KC399Qz17bn for ; Sun, 14 May 2023 18:00:47 +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 34EI0lrf022027 for ; Sun, 14 May 2023 18:00:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34EI0lnk022026 for office@FreeBSD.org; Sun, 14 May 2023 18:00:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: maintainer-feedback requested: [Bug 271421] graphics/libfreehand: fix build with clang 16 Date: Sun, 14 May 2023 18:00:47 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Office applications on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-office List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-office@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked FreeBSD Office Team for maintainer-feedback: Bug 271421: graphics/libfreehand: fix build with clang 16 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271421 --- Description --- Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because multimedia/smpeg's configure scripts and Makefiles do not explicitly set the C++ standard, this leads to several errors: In file included from FreeHandDocument.cpp:14: In file included from ./FHParser.h:15: /usr/local/include/lcms2.h:1291:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] typedef cmsInt32Number (* cmsSAMPLER16) (CMSREGISTER const cmsUInt16Num= ber In[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1292:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER cmsUInt16Number Out[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1293:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER void * Cargo); ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1295:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] typedef cmsInt32Number (* cmsSAMPLERFLOAT)(CMSREGISTER const cmsFloat32Nu= mber In[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1296:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER cmsFloat32Number Out[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1297:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER void * Cargo); ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ Add -D CMS_NO_REGISTER_KEYWORD to CPPFLAGS, to avoid lcms2.h using register keywords in its declarations.