Also reported as the following Debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578800
Comment from the author of this patch:
"It seems simplest to pretend that SVt_RV still exists on the caml
side; attached patch will do just that."
static int
sv_type (SV *sv)
{
+#if PERL_VERSION >= 11
+ if (SvROK(sv)) return 4;
+#endif
switch (SvTYPE (sv))
{
case SVt_IV: return 1;
case SVt_NV: return 2;
case SVt_PV: return 3;
+#if PERL_VERSION < 11
case SVt_RV: return 4;
+#endif
case SVt_PVAV: return 5;
case SVt_PVHV: return 6;
case SVt_PVCV: return 7;
case SVt_IV:
case SVt_NV:
case SVt_PV:
+#if PERL_VERSION < 11
case SVt_RV:
+#endif
case SVt_PVMG:
break;
default: