Bug 2241708

Summary: perl-Data-Pond-0.005-22.fc40 FTBFS: lib/Data/Pond.xs:159:19: error: implicit declaration of function ‘uvuni_to_utf8_flags’
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Data-PondAssignee: Emmanuel Seyman <emmanuel>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: emmanuel, iarnell, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/perl-Data-Pond
Whiteboard:
Fixed In Version: perl-Data-Pond-0.005-22.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-12 14:46:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2231791    

Description Petr Pisar 2023-10-02 08:42:48 UTC
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,

Comment 1 Petr Pisar 2023-10-09 06:36:30 UTC
See <https://rt.cpan.org/Public/Bug/Display.html?id=149108> for the same bug and proposed fix in a different CPAN distribution.

Comment 2 Emmanuel Seyman 2023-11-12 14:46:28 UTC
Patched and built for rawhide:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2319515