Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 23831
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: jdhedden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.53



Subject: gv_efullname is a mathom
The function Perl_gv_efullname has been moved into mathoms.c for Perl 5.8.9. As such, DBI will not build if Perl is compiled with -DNO_MATHOMS. The attached patch fixes this.
Subject: dbi.patch
diff -urN DBI-1.53/DBI.xs DBI-patched/DBI.xs --- DBI-1.53/DBI.xs 2006-10-31 06:59:02.000000000 -0500 +++ DBI-patched/DBI.xs 2006-12-06 15:27:24.000000000 -0500 @@ -2367,7 +2367,11 @@ /* just using SvPV_nolen(method) sometimes causes an error: */ /* "Can't coerce GLOB to string" so we use gv_efullname() */ SV *tmpsv = sv_2mortal(newSVpv("",0)); +#if (PERL_VERSION < 6) gv_efullname(tmpsv, (GV*)method); +#else + gv_efullname4(tmpsv, (GV*)method, "", TRUE); +#endif p = SvPV_nolen(tmpsv); if (*p == '*') ++p; /* skip past leading '*' glob sigil */ }
Patch applied. Thanks!