It looks like most (all?) perl XS packages ('C' implementations of Perl
functions) are FTBFS with GCC 15. I'm trying to fix perl-Term-ReadLine-Gnu to
be C23-compatible. The workaround is to add -std=gnu17 to the CFLAGS which can
be done via OPTIMIZE for MakeMaker builds like this:
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS
-std=gnu17" NO_PACKLIST=1 NO_PERLLOCAL=1
but I don't really know how to fix these the "right" way:
>From https://kojipkgs.fedoraproject.org//work/tasks/4096/128054096/build.log:
Gnu.xs:625:5: error: initialization of ‘int (**)(void)’ from incompatible
pointer type ‘int (**)(FILE *)’ [-Wincompatible-pointer-types]
625 | { &rl_getc_function, rl_getc, getc_function_wrapper, NULL }, /* 2 */
| ^
Gnu.xs:625:5: note: (near initialization for ‘fn_tbl[2].rlfuncp’)
Gnu.xs:625:25: error: initialization of ‘int (*)(void)’ from incompatible
pointer type ‘int (*)(FILE *)’ [-Wincompatible-pointer-types]
625 | { &rl_getc_function, rl_getc, getc_function_wrapper, NULL }, /* 2 */
| ^~~~~~~
Gnu.xs:625:25: note: (near initialization for ‘fn_tbl[2].defaultfn’)
In file included from Gnu.xs:29:
/usr/include/readline/readline.h:450:12: note: ‘rl_getc’ declared here
450 | extern int rl_getc (FILE *);
| ^~~~~~~
Gnu.xs:625:34: error: initialization of ‘int (*)(void)’ from incompatible
pointer type ‘int (*)(PerlIOl **)’ {aka ‘int (*)(struct _PerlIO **)’}
[-Wincompatible-pointer-types]
625 | { &rl_getc_function, rl_getc, getc_function_wrapper, NULL }, /* 2 */
| ^~~~~~~~~~~~~~~~~~~~~
Gnu.xs:625:34: note: (near initialization for ‘fn_tbl[2].wrapper’)
Gnu.xs:583:12: note: ‘getc_function_wrapper’ declared here
583 | static int getc_function_wrapper (PerlIO *);
| ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:354: Gnu.o] Error 1
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue