CC: | srezic [...] cpan.org |
Subject: | bleadperl failing compilation |
Patch 24817 to bleadperl made sv_upgrade a void function. Since then gcc
does not compile CDB_File.
I made a patch available on CPAN as
ANDK/patches/CDB_File-0.95-ANDK-01.patch.gz
that makes it compile with bleadperl@2481[67]. As it is short, I paste
it here as well:
--- CDB_File-0.95-4Bn4X7/CDB_File.xs~ 2006-07-28 04:34:14.000000000 +0200
+++ CDB_File-0.95-4Bn4X7/CDB_File.xs 2006-12-19 10:42:14.000000000 +0100
@@ -475,7 +475,8 @@ cdb_FETCH(this, k)
if ((found != 0) && (found != 1)) readerror();
}
ST(0) = sv_newmortal();
- if (found && sv_upgrade(ST(0), SVt_PV)) {
+ if (found) {
+ sv_upgrade(ST(0), SVt_PV);
U32 dlen = cdb_datalen(this);
(void)SvPOK_only(ST(0));
Thanks!