Subject: | build error: 'want' undeclared (first use in this function) |
Date: | Fri, 24 Oct 2008 15:27:10 -0400 |
To: | bug-Set-Object [...] rt.cpan.org |
From: | "Christopher Grim" <christopher.grim [...] gmail.com> |
Building Set-Object-1.2.6 results in the following error:
Object.xs:345: error: 'want' undeclared (first use in this function)
Object.xs:345: error: (Each undeclared identifier is reported only once
Object.xs:345: error: for each function it appears in.)
This is with Perl 5.8.8 on CentOS 5.2 and SLES9.
The patch below seems to fix this (all tests pass).
Chris
diff --git a/Object.xs b/Object.xs
index 0deb20f..45b73cb 100644
--- a/Object.xs
+++ b/Object.xs
@@ -342,7 +342,7 @@ _dispel_magic(ISET* s, SV* sv) {
I32 i = AvFILLp(wand);
int c = 0;
- assert( SvTYPE(want) == SVt_PVAV );
+ assert( SvTYPE(wand) == SVt_PVAV );
while (i >= 0) {
if (svp[i] && SvIV(svp[i])) {