Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 53391
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: taro.nishino [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: 0.93_03



Subject: Moose-0.93_01 compilation failure
 In Moose.xs, the structure type export_flag_vtbl with the tag named MGVTBL is used, and initialized 8 initializers. While the MGVTBL of mg.h in Perl5.10.1 has 8 components, that in Perl5.8.8 has no more than 7 components.
As such, the compilation ends in failure using MSVC under Perl5.8.8.
May I ask you a favor? could you apply the following patch?

--- Moose.xs.orig Tue Jan  5 05:08:57 2010
+++ Moose.xs Tue Jan  5 08:53:06 2010
@@ -5,6 +5,17 @@
 
 STATIC int unset_export_flag (pTHX_ SV *sv, MAGIC *mg);
 
+#if PERL_REVISION == 5 && PERL_VERSION == 8 && PERL_SUBVERSION >= 8
+STATIC MGVTBL export_flag_vtbl = {
+    NULL, /* get */
+    unset_export_flag, /* set */
+    NULL, /* len */
+    NULL, /* clear */
+    NULL, /* free */
+    NULL, /* copy */
+    NULL, /* dup */
+};
+#else
 STATIC MGVTBL export_flag_vtbl = {
     NULL, /* get */
     unset_export_flag, /* set */
@@ -15,6 +26,7 @@
     NULL, /* dup */
     NULL, /* local */
 };
+#endif
 
 STATIC bool
 export_flag_is_set (pTHX_ SV *sv)


Best regards,
Taro Nishino