Subject: | Fails to build with Perl >= 5.31.6 due to Sighandler_t changes |
Hi,
as seen in for instance
http://www.cpantesters.org/cpan/report/17cbd852-1b45-11ea-972b-ef706694f557
Apache-DB fails to build with recent Perl versions with
cc -c -pthread -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -DPIC -fPIC "-I/home/vegeta/perl5/perlbrew/perls/perl-blead/lib/5.31.7/OpenBSD.amd64-openbsd-thread-multi/CORE" DB.c
DB.xs:46:47: error: too many arguments to function call, expected 1, have 3
if (ApacheSIGINT) (*ApacheSIGINT)(SIGINT, NULL, NULL);
This is probably due to this change in 5.31.6 (quoting perl5136delta.pod):
* The OS-level signal handlers and type (Sighandler_t) used by the
perl core were declared as having three parameters, but the OS was
always told to call them with one argument. This has been fixed by
declaring them to have one parameter. See the merge commit
"v5.31.5-346-g116e19abbf" for full details.
--
Niko Tyni
ntyni@debian.org