FreeBSD Bugzilla – Attachment 235561 Details for
Bug 265521
graphics/png: fix build with clang 15
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
graphics/png: fix build with clang 15
graphics__png-fix-clang15-build-1.diff (text/plain), 1.13 KB, created by
Dimitry Andric
on 2022-07-30 16:40:06 UTC
(
hide
)
Description:
graphics/png: fix build with clang 15
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2022-07-30 16:40:06 UTC
Size:
1.13 KB
patch
obsolete
>commit 4bd951b1724b6a8439fe22edf62a89f49a4cc3ae >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Sat Jul 30 18:37:48 2022 +0200 > > 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. > > The least disruptive way to solve this is to make the port build with > USE_CSTD=gnu89. > >diff --git a/graphics/png/Makefile b/graphics/png/Makefile >index 18f0accd5f9f..d157f7187248 100644 >--- a/graphics/png/Makefile >+++ b/graphics/png/Makefile >@@ -16,6 +16,7 @@ LICENSE_NAME= libpng License > LICENSE_FILE= ${WRKSRC}/LICENSE > LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept > >+USE_CSTD= gnu89 > USES= cpe libtool tar:xz > CPE_PRODUCT= libpng > GNU_CONFIGURE= yes
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265521
: 235561