With the following patch, Perl 5.40 successfully built (though I
didn't play with the Perl interpreter as I'm by no means a Perl guy):
# cat ${LOCALPATCHES}/lang/perl5/patch-infnan
--- builtin.c~jb 2024-12-31 11:11:52.361258111 +0000
+++ builtin.c 2024-12-31 11:14:00.911496537 +0000
With that, we can start guarding these pieces with d_double_style_vax, d_double_has_inf and d_double_has_nan. But maybe somebody else should work on that? Did anybody already open a bug report upstream? I'd like to not open multiple tickets, that won't help at all I guess...
I've built perl, too, with similar changes, so that package building can continue:
https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/vax/10.0_2024Q4/All/perl-5.40.0nb1.tgz However, I haven't filed an upstream ticket. Thanks, John