Source: libmarpa-r2-perl
Version: 12.000000-1
Severity: important
Forwarded: https://github.com/jeffreykegler/Marpa--R2/pull/299
Tags: ftbfs fixed-upstream
User: [email protected]
Usertags: perl-5.44-transition

As of Perl 5.44.0 (currently in experimental), Perl headers now require C99
features. This makes libmarpa-r2-perl fail to build.

  x86_64-linux-gnu-gcc -I/usr/lib/x86_64-linux-gnu/perl/5.44/CORE 
'-DVERSION="12.000000"' '-DXS_VERSION="12.000000"' -fPIC -c -D_REENTRANT 
-D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64' -I 
/build/libmarpa-r2-perl-5mtTJ8/libmarpa-r2-perl-12.000000/libmarpa_build -I xs 
-Wall -W -Wpointer-arith -Wstrict-prototypes -Wwrite-strings 
-Wmissing-declarations -ansi -Wdeclaration-after-statement -g -O2 
'-Werror=implicit-function-declaration' 
'-ffile-prefix-map=/build/libmarpa-r2-perl-5mtTJ8/libmarpa-r2-perl-12.000000=.' 
-fstack-protector-strong -fstack-clash-protection -Wformat 
'-Werror=format-security' -fcf-protection -g -O2 
'-Werror=implicit-function-declaration' 
'-ffile-prefix-map=/build/libmarpa-r2-perl-5mtTJ8/libmarpa-r2-perl-12.000000=.' 
-fstack-protector-strong -fstack-clash-protection -Wformat 
'-Werror=format-security' -fcf-protection -Wdate-time '-D_FORTIFY_SOURCE=2' -o 
lib/Marpa/R2.o lib/Marpa/R2.c
  In file included from lib/Marpa/R2.xs:24:
  /usr/lib/x86_64-linux-gnu/perl/5.44/CORE/perl.h:5436:1: warning: function 
declaration isn’t a prototype [-Wstrict-prototypes]
   5436 | typedef void (*shutdown_proc_t)();
        | ^~~~~~~
  In file included from /usr/lib/x86_64-linux-gnu/perl/5.44/CORE/perl.h:8004:
  /usr/lib/x86_64-linux-gnu/perl/5.44/CORE/inline.h: In function 
‘Perl_av_store_simple’:
  /usr/lib/x86_64-linux-gnu/perl/5.44/CORE/inline.h:101:5: warning: ISO C90 
forbids mixed declarations and code [-Wdeclaration-after-statement]
    101 |     SV** ary;
        |     ^~
[...]
  /usr/lib/x86_64-linux-gnu/perl/5.44/CORE/inline.h:4357:9: error: ‘for’ loop 
initial declarations are only allowed in C99 or C11 mode
   4357 |         for (SV **svp = cx->blk_loop.itervar_u.svp + 1; how_many; 
svp++, how_many--) {
        |         ^~~
  /usr/lib/x86_64-linux-gnu/perl/5.44/CORE/inline.h:4357:9: note: use option 
‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code

This is fixed upstream in 14.000000 according to its change log.

A full build log is at

  
https://perl.debian.net/rebuild-logs/perl-5.44/libmarpa-r2-perl_12.000000-1/libmarpa-r2-perl_12.000000-1+b2_amd64-2026-09-07T19:08:02Z.build

If you want to test changes against Perl 5.44 in experimental and run
into uninstallability problems, there is a test repository of rebuilt
Debian sid packages for amd64 available at <https://perl.debian.net/>.
-- 
Niko Tyni       [email protected]

Reply via email to