[Bug 281226] devel/efivar: Fails to build with GCC 14: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration]
Date: Tue, 03 Sep 2024 12:48:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281226 Bug ID: 281226 Summary: devel/efivar: Fails to build with GCC 14: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration] Product: Ports & Packages Version: Latest Hardware: Any URL: https://pkg-status.freebsd.org/gohan04/data/140amd64-d efault-foo/2024-08-29_19h57m48s/logs/errors/efivar-0.1 5_9.log OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: salvadore@freebsd.org Blocks: 281091 Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14. gcc14 -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc14 -isystem /usr/local/include -fno-strict-aliasing -Wall -Wsign-compare -std=gnu11 -fshort-wchar -fPIC -D_GNU_SOURCE -I/wrkdirs/usr/ports/devel/efivar/work/efivar-0.15/src/ -isystem /usr/local/include -c -o efivar.o efivar.c efivar.c: In function 'show_variable': efivar.c:166:29: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration] 166 | if (isprint(data[index])) | ^~~~~~~ efivar.c:31:1: note: include '<ctype.h>' or provide a declaration of 'isprint' 30 | #include "guid.h" +++ |+#include <ctype.h> 31 | gmake[1]: *** [/wrkdirs/usr/ports/devel/efivar/work/efivar-0.15/Make.rules:14: efivar.o] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/devel/efivar/work/efivar-0.15/src' gmake: *** [Makefile:9: src] Error 2 *** Error code 1 Stop. Full log: https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29_19h57m48s/logs/errors/efivar-0.15_9.log Useful link: https://gcc.gnu.org/gcc-14/porting_to.html Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281091 [Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc. -- You are receiving this mail because: You are the assignee for the bug.