Bug 2241708 - perl-Data-Pond-0.005-22.fc40 FTBFS: lib/Data/Pond.xs:159:19: error: implicit declaration of function ‘uvuni_to_utf8_flags’
Summary: perl-Data-Pond-0.005-22.fc40 FTBFS: lib/Data/Pond.xs:159:19: error: implicit ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Data-Pond
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F40FTBFS
TreeView+ depends on / blocked
 
Reported: 2023-10-02 08:42 UTC by Petr Pisar
Modified: 2023-11-12 14:46 UTC (History)
3 users (show)

Fixed In Version: perl-Data-Pond-0.005-22.fc40
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-12 14:46:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.