From nobody Sun Jul 31 18:39:06 2022 X-Original-To: dev-commits-ports-all@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 4Lwqm04vt9z4Y0vQ; Sun, 31 Jul 2022 18:39:12 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lwqm03nwLz3DcB; Sun, 31 Jul 2022 18:39:12 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659292752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sgu6IhNNl1SSxc5iG6QEWObmNEPyLiywg9PynHQPcZU=; b=CndRvAdiibWLwMtLydXMDRMVhMlD8igOM3kU24L5MlwJCuzszwasEn1b0Ah+7CjlVImbhe RzPnW52njLJKa11HZR0ui9wYHKOgaEjcF9VuVgyX0VWdJ9B1DtooCjad60OjyTfiL932Ze vxhZZkX3jwdb2zFzYymzUQ2bVWWoo+pDErgG0TQ6U3D3VKwr0uaq8IxYaIxsUQSjEjyQOA mmyLzO9HI6+VybTxeQU8+KRLyfc41o3EgXtcbQPhfHB3163ySTwq87tvooow20i1dRAcmD QhJmTyENVWNs1uT/oiM/2raRQhj0mKDGXyjzgXFvc3PEmZMHuzW1zRBjLaxUMQ== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 6D00C1DD85; Sun, 31 Jul 2022 18:39:12 +0000 (UTC) From: Jan Beich To: Dimitry Andric Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 4ba3797c9993 - main - graphics/png: fix build with clang 15 In-Reply-To: <202207311714.26VHEL73016804@gitrepo.freebsd.org> (Dimitry Andric's message of "Sun, 31 Jul 2022 17:14:21 GMT") References: <202207311714.26VHEL73016804@gitrepo.freebsd.org> Date: Sun, 31 Jul 2022 20:39:06 +0200 Message-ID: <5yjd-6sad-wny@FreeBSD.org> List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659292752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sgu6IhNNl1SSxc5iG6QEWObmNEPyLiywg9PynHQPcZU=; b=ZoguLqLq39BKxZ53Djn2iK3GtbtVRpgtYRGY2U4I1ILgT3S0mbJ8SM7tDeefhV1g3nS4zv hm9BeE4vjfpaTmV58AKGJUHi7R3Ib4zGMiD89Lzg9BjHZQCirU5CIetgsSUvKoApXdOSdl P5HkWt01fKTFGmQjfC1qw0+IzNgwO8scCZXoRHRojzMYxMvygpsx2kb548gLCHeJIAvBkx 5y3IW5k6MSsKHJc9aLGsnF3Dsut1aMaBkjNw7jWfLRAaA/4i2N5Vx6Cd9m+hbiaaoRsfp4 ZllzKdKTH2Y6tYEii5UB9BKUzdmQe7PkWVpGpN7flZ+m/dqttUyK9bBkm3YLKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659292752; a=rsa-sha256; cv=none; b=lyx02Px6ubHPKrWhACz+FMywgHKCDC2ylIwh/WcyLgbh2Ri5WunH2x36bVNumG+anCZKdK tw5VYu2IQPSBUjy6TFN+kVbLoS7Fb1l/XSVXNlA6ouQLzi8DNY+XC+tIWi+UZyhauNcBsE nWpQhGGjPrHrgRr5y7ITOahVn3sOxQR1TchP5mQ57N/lSvxvigzgBrBavtXSsGYmPBXnV3 IjYlmx8nEdkulpDNzHOv0peAPvvbpyXyQ78efAaSBPTYe7A7uqZC2XKhMSMUS3IjrJ9NHk gqV5gKktGex4lwUU6OmPz9gzKVpsj+Lrw5+L8D35ZNg2+gvj0Rlp5sY8Zy48mA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Dimitry Andric writes: > The branch main has been updated by dim (src committer): > > URL: https://cgit.FreeBSD.org/ports/commit/?id=4ba3797c9993a25a082ed767d4f44234b1f7dc04 > > commit 4ba3797c9993a25a082ed767d4f44234b1f7dc04 > Author: Dimitry Andric > AuthorDate: 2022-07-30 16:37:48 +0000 > Commit: Dimitry Andric > CommitDate: 2022-07-31 17:12:11 +0000 > > graphics/png: fix build with clang 15 > > Building png with clang 15 results in an error: > > contrib/libtests/pngvalid.c:11662:4: error: call to undeclared function 'feenableexcept'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW); > ^ > > This is because clang 15 introduced this new warning, and fenv.h only > declares feenableexcept() when compiling for C standards before C11. -Wimplicit-function-declaration is ancient, so Clang 15 made it fatal for C99 or later. feenableexcept() is under __BSD_VISIBLE, so hidden in _POSIX_SOURCE mode as used by libpng. Linux cheats via _GNU_SOURCE which is ignored on FreeBSD, so you get the above warning. Where did C11 come from? See also https://github.com/llvm/llvm-project/commit/7d644e1215b3