This queue is for tickets about the Net-CIDR-Compare CPAN distribution.

Report information
The Basics
Id:
32069
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
cub.uanic [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: DESTROY is not a valid Net::CIDR::Compare macro
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1199394017-19959-0"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 451
Great module, thanks! Unfortunately, just before finishing my program get following error: (in cleanup) DESTROY is not a valid Net::CIDR::Compare macro at ./aggregate_nets line 0 Versions that I use: Gentoo Linux 2.6.23-gentoo-r3, profiles/default-linux/x86/2007.0 perl v5.8.8 Net::CIDR v0.11 Net::CIDR::Compare v0.03 Net::Netmask v1.9015 My program is simple networks aggregation (see in attached file).
Subject: aggregate_nets
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1199393749-19965-0"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: application/octet-stream; name="aggregate_nets"
Content-Disposition: inline; filename="aggregate_nets"
Content-Transfer-Encoding: base64
Content-Length: 403

Message body not shown because it is not plain text.

Subject: tst
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1199393899-19942-0"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: application/octet-stream; name="tst"
Content-Disposition: inline; filename="tst"
Content-Transfer-Encoding: base64
Content-Length: 201

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-19942-1199394616-1715.32069-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 225
Moreover.... cub@tux ~ % cat q #!/usr/bin/perl -w use Net::CIDR::Compare; my $nets = Net::CIDR::Compare->new(); cub@tux ~ % perl q (in cleanup) DESTROY is not a valid Net::CIDR::Compare macro at q line 0 cub@tux ~ %
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-19942-1199394995-1193.32069-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 387
Adding empty destructor solves problem, and all works as expected. cub@tux ~ % diff -u Compare.pm.orig Compare.pm --- Compare.pm.orig 2008-01-03 23:13:25.000000000 +0200 +++ Compare.pm 2008-01-03 23:12:47.000000000 +0200 @@ -305,6 +305,8 @@ return \@result; } +sub DESTROY { +} # Autoload methods go after =cut, and are processed by the autosplit program. cub@tux ~ %
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_SIGNED,HTML_MESSAGE
In-Reply-To: <rt-3.6.HEAD-19942-1199394995-1193.32069-5-0@rt.cpan.org>
References: <RT-Ticket-32069@rt.cpan.org> <rt-3.6.HEAD-19942-1199394995-1193.32069-5-0@rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary="----=_Part_7908_23011470.1199396495887"
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 4444A4D804B for <bug-Net-CIDR-Compare@rt.cpan.org>; Thu, 3 Jan 2008 16:41:46 -0500 (EST)
Received: (qmail 23021 invoked from network); 3 Jan 2008 21:41:45 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 Jan 2008 21:41:45 -0000
Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.178) by 16.mx.develooper.com (qpsmtpd/0.40-dev) with ESMTP; Thu, 03 Jan 2008 13:41:42 -0800
Received: by wa-out-1112.google.com with SMTP id m28so10312333wag.13 for <bug-Net-CIDR-Compare@rt.cpan.org>; Thu, 03 Jan 2008 13:41:37 -0800 (PST)
Received: by 10.115.15.1 with SMTP id s1mr59355wai.0.1199396495899; Thu, 03 Jan 2008 13:41:35 -0800 (PST)
Received: by 10.114.59.7 with HTTP; Thu, 3 Jan 2008 13:41:35 -0800 (PST)
Delivered-To: cpan-bug+Net-CIDR-Compare@diesel.bestpractical.com
Subject: Re: [rt.cpan.org #32069] DESTROY is not a valid Net::CIDR::Compare macro
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=a4b5o2/ITJ3zjoLpLJFcI+8+lAGGSv6LMB9ugGiuPxdANIQSYEQprSyT65yqamcblX6RDOH7W2ui5MaRDHbbvUmYZxRvpnSTcfvhkgJioLzWAucZVvgxUmlBWaQ3DNJ0+xh47KfAlF6tXFksVbkpiJpqqLF79HyAAhMFKLO4gOA=
Return-Path: <grjones@gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=jmO09bP8VpmIRkE+RAt84RaCoW8M6Cgm8TnA5AoWh0o=; b=isQxGtY3PzigQg2YXVPQ9q8y0BACG8ggixZpI95UgL5GFtk2kmvJTMkIWeI283T7icyHfCIiBuBJlIvdcAy4BWooYkxoc/K4/A36qRSvWsE44vYjJ81NtIUmAsM5R0CvScYIROUn8gqpbTx93c4kKT2zEv+9Gc7/LCayOTwoe4o=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Net-CIDR-Compare@rt.cpan.org
Date: Thu, 3 Jan 2008 16:41:35 -0500
X-Spam-Level: *
Message-Id: <2ca78f1d0801031341t71acbbcbvca93b7afbc154e9@mail.gmail.com>
To: bug-Net-CIDR-Compare@rt.cpan.org
From: "Gregory Jones" <grjones@gmail.com>
RT-Message-ID: <rt-3.6.HEAD-19959-1199396523-1907.32069-0-0@rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: utf-8
Content-Length: 650
Content-Type: text/html; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: utf-8
Content-Length: 1205
I'll add it to the next version.  Thanks.

On Jan 3, 2008 4:16 PM, Kostyuk Oleg via RT <bug-Net-CIDR-Compare@rt.cpan.org> wrote:
Show quoted text

      Queue: Net-CIDR-Compare
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32069 >

Adding empty destructor solves problem, and all works as expected.

cub@tux ~ % diff -u Compare.pm.orig Compare.pm
--- Compare.pm.orig        2008-01-03 23:13:25.000000000 +0200
+++ Compare.pm     2008-01-03 23:12:47.000000000 +0200
@@ -305,6 +305,8 @@
  return \@result;
 }

+sub DESTROY {
+}

 # Autoload methods go after =cut, and are processed by the autosplit
program.

cub@tux ~ %

MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-19942-1199408372-1988.32069-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 342
I want to note that adding empty destructor - it's just dirty hack and not full decision. "DESTROY" should not be considered as "macro" in any way. I have no time to check all internals of your code, but I completely sure that code has some logical error. And I hope that you'll create proper patch instead of my hack. Thanks for your effort.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.