From nobody Sun May 14 18:49:44 2023 X-Original-To: ports-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 4QKBPj31BJz4C0rF for ; Sun, 14 May 2023 18:49:45 +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 4QKBPj21YCz3Nmw for ; Sun, 14 May 2023 18:49:45 +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=1684090185; 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=4y51tq/kdiGfPy8pqLNHZAdrZHYTpjsjx+OrgA9W8DI=; b=oCByqOPgCZycsZEncsMMzuLl/PZKMAgYlQmod1qEH0iELUAjd9h31gJMA7OWJnp2WSAD5O Qabmd+o00Z87eL8t55Lhvm8z2cmhv9To3YfF70vGjhIBFhp0k4B5+QXpFHDlVyTWfeeDUE nKpY2Iu3Q4gSnS1BtGqBVGkjCXhZmWqoH+QioqRLPVOTOAMdOicSTVyU9ExutmPsHDhszf PCZKLUOCxc2kdOViYEo48/mPHQe8FAVdjEAjo1rTCDD9rnDAzExT+M8qQ8YJRGPGGq+91m yr/S++9ChCl1vSeK9q7Sp1bzaTa0qzcO8uqXqoFsvTyDibLtaZqmZdTGCOLD/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684090185; a=rsa-sha256; cv=none; b=IkEJwCtxQMRY6ac7kBkeaAy9jXvPVTeQE6iSYGkgAZaA7OeP1h1xxwmydPV4D33PSK04wb yL9Xm6iMe5bW+vIpayhxv2JqZv2BGAa57VzXz1sWSRx4aRbPjWEBtNVAJHZiWoa9D0uqcJ Cqss6fDAAL1FJLKRsEHQULYv56YYsDAXDqO6Z7oJBVoqgBzZsSa8FFIcSQo2GvkM9eDVoZ 5UKrw9cxlQ97zrGJ99mTTJEnErC0YXk6sX90YrHtWevfuarI1LCfG2Cy4et98h3lUZik/A K8svoNGmQN8JpAMMlpuqNymrKS+jejPG2fl/Ru13O5FSgRdvxmEL0sGJPJnKpg== 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 4QKBPj0j5yz18bM for ; Sun, 14 May 2023 18:49:45 +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 34EInjGg092184 for ; Sun, 14 May 2023 18:49:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34EInj7k092182 for ports-bugs@FreeBSD.org; Sun, 14 May 2023 18:49:45 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: ports-bugs@FreeBSD.org Subject: [Bug 271424] graphics/ufraw: fix build with clang 16 Date: Sun, 14 May 2023 18:49:44 +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: rodrigo@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 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271424 Bug ID: 271424 Summary: graphics/ufraw: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: rodrigo@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(rodrigo@FreeBSD.org) Assignee: rodrigo@FreeBSD.org graphics/ufraw: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because graphics/ufraw's configure scripts and Makefiles do not explicitly set the C++ standard, this leads to several errors: /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 Ou= t[], ^~~~~~~~~~~~ /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 ^ Specifically for lcms2.h, adding -DCMS_NO_REGISTER_KEYWORD to CPPFLAGS would be enough, but graphics/ufraw also pulls in exiv2 headers which make use of std::auto_ptr, another construct that has been removed from C++17. Add USE_CXXSTD=3Dgnu++98 to compile for C++98 with GNU extensions instead. --=20 You are receiving this mail because: You are the assignee for the bug.=