perl-Data-Pond-0.005-22.fc40 fails to build in Fedora 40 because of missing function prototypes: gcc -I/usr/lib64/perl5/CORE '-DVERSION="0.005"' '-DXS_VERSION="0.005"' -fPIC -c -D_REENTRANT -D_GNU_SOURCE -O2 '-flto=auto' -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang '-Werror=format-security' '-Werror=implicit-function-declaration' '-Werror=implicit-int' '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3' -Wp,-D_GLIBCXX_ASSERTIONS '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' -fstack-protector-strong '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' -m64 '-mtune=generic' -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -O2 '-flto=auto' -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall '-Werror=format-security' '-Werror=implicit-function-declaration' '-Werror=implicit-int' '-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3' -Wp,-D_GLIBCXX_ASSERTIONS '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' -fstack-protector-strong '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' -m64 '-mtune=generic' -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -o lib/Data/Pond.o lib/Data/Pond.c lib/Data/Pond.xs:9: warning: "PERL_VERSION_GE" redefined 9 | #define PERL_VERSION_GE(r,v,s) \ | In file included from /usr/lib64/perl5/CORE/perl.h:3327, from lib/Data/Pond.xs:3: /usr/lib64/perl5/CORE/handy.h:578: note: this is the location of the previous definition 578 | # define PERL_VERSION_GE(j,n,p) (! PERL_VERSION_LT(j,n,p)) | lib/Data/Pond.xs: In function ‘THX_sv_cat_unichar’: lib/Data/Pond.xs:159:19: error: implicit declaration of function ‘uvuni_to_utf8_flags’; did you mean ‘uvchr_to_utf8_flags’? [-Werror=implicit-function-declaration] 159 | vnewend = uvuni_to_utf8_flags(voldend, val, UNICODE_ALLOW_ANY); | ^~~~~~~~~~~~~~~~~~~ | uvchr_to_utf8_flags This is triggered by upgrading redhat-rpm-config from 266-1.fc40 to 267-1.fc40 which added -Werror=implicit-function-declaration compiler option to prepare for stricter GCC 14,
See <https://rt.cpan.org/Public/Bug/Display.html?id=149108> for the same bug and proposed fix in a different CPAN distribution.
Patched and built for rawhide: https://koji.fedoraproject.org/koji/buildinfo?buildID=2319515