Subject: | [PATCH] Fix build with dtrace and Perl < 5.13.8 |
The build of Data::Alias fails on dtrace/systemtap enabled builds on
perl < 5.13.8 because prior to that version, the RETURN_PROBE macro had
three parameters rather than the four specified in Alias.xs (the commit
adding the extra parameter was
http://perl5.git.perl.org/perl.git/commitdiff/3e2413e5f999573e5bcccfb506d8a449a3ab690b).
A sample failure can be found here:
http://www.cpantesters.org/cpan/report/8084d84a-11ac-11e1-8250-a0fc2756887d
Attached patch fixes this.
Subject: | Data-Alias-1.16-dtrace.patch |
Prior to Perl 5.13.8, ENTRY_PROBE and RETURN_PROBE had 3 arguments each, not 4.
http://perl5.git.perl.org/perl.git/commitdiff/3e2413e5f999573e5bcccfb506d8a449a3ab690b
--- Data-Alias-1.16/Alias.xs
+++ Data-Alias-1.16/Alias.xs
@@ -28,9 +28,14 @@
#if defined(USE_DTRACE) && defined(PERL_CORE)
#undef ENTRY_PROBE
#undef RETURN_PROBE
+#if (PERL_COMBI_VERSION < 5013008)
+#define ENTRY_PROBE(func, file, line)
+#define RETURN_PROBE(func, file, line)
+#else
#define ENTRY_PROBE(func, file, line, stash)
#define RETURN_PROBE(func, file, line, stash)
#endif
+#endif
#if defined(PERL_CORE) && defined(MULTIPLICITY) && \
(PERL_COMBI_VERSION < 5013006)