Hi,
On 23/11/2023 14:39, Jude DaShiell wrote:
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -Wall -Wno-unused
-D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -c -o fetchmail.o
fetchmail.c
fetchmail.c: In function ‘scanFolder’:
fetchmail.c:859:51: error: format not a string literal and no format
arguments [-Werror=format-security]
859 | if(!isInteractive) printf(inputline);
| ^~~~~~~~~
fetchmail.c:1016:59: error: format not a string literal and no format
arguments [-Werror=format-security]
1016 | if(!isInteractive)
printf(inputline);
|
^~~~~~~~~
fetchmail.c:1081:51: error: format not a string literal and no format
arguments [-Werror=format-security]
1081 | if(!isInteractive) printf(inputline);
| ^~~~~~~~~
Bad advice:
[jelle@t14s][~/projects/cockpit/main]%grep "Werror=format-security"
/etc/makepkg.conf
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
Change that, but it will affect all packages build locally of course
which is undesired.
Better advice:
export CFLAGS="${CFLAGS} -Wno-format-security" in the PKGBUILD
Best advice:
Report this issue upstream, it should be a trivial patch to write.