Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 53493
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: m.nooning [...] comcast.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.26
Fixed in: (no value)



Subject: Log4Perl errors out because it redefines many routines
Try either of the two lines below.             
      perl -we "use Log::Log4Perl;"
      perl -MLog::Log4Perl -e "print \"$Log::Log4Perl::VERSION\n\""

I get a long list of errors of the form
     Subroutine "the sub name" redefined at C:/Perl/site/lib/Log/Log4Perl.pm line "the line number".

A typical one is:
Subroutine import redefined at C:/Perl/site/lib/Log/Log4Perl.pm line 67.
From: m.nooning [...] comcast.net
I am using Windows XP, ActiveState Perl 5.10.1<br />
Subject: Re: [rt.cpan.org #53493] AutoReply: Log4Perl errors out because it redefines many routines
Date: Thu, 07 Jan 2010 15:01:09 -0500
To: bug-Log-Log4perl [...] rt.cpan.org
From: Malcolm Nooning <m.nooning [...] comcast.net>
I am using the latest Log-Log4perl. However, I used ppm to install it, so I decided to try to reinstall it by hand. As you can see by the output further below, t/059Prototyped.t is missing from the distribution, and requests that the author be informed. The tests all passed, so I reinstalled it. No help. I still get all of the "redefines" messages. C:\temp\Log-Log4perl-1.26>perl Makefile.PL Checking if your kit is complete... Warning: the following files are missing in your kit: t/059Prototyped.t Please inform the author. Writing Makefile for Log::Log4perl C:\temp\Log-Log4perl-1.26> Bugs in Log-Log4perl via RT wrote: Show quoted text
> Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Log4Perl errors out because it redefines many routines", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #53493]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=53493 > > Please include the string: > > [rt.cpan.org #53493] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > > Thank you, > bug-Log-Log4perl@rt.cpan.org > > ------------------------------------------------------------------------- > Try either of the two lines below. > perl -we "use Log::Log4Perl;" > perl -MLog::Log4Perl -e "print \"$Log::Log4Perl::VERSION\n\"" > > I get a long list of errors of the form > Subroutine "the sub name" redefined at C:/Perl/site/lib/Log/Log4Perl.pm line > "the line number". > > A typical one is: > Subroutine import redefined at C:/Perl/site/lib/Log/Log4Perl.pm line 67. > > >
Subject: Re: [rt.cpan.org #53493] AutoReply: Log4Perl errors out because it redefines many routines
Date: Fri, 08 Jan 2010 11:00:14 -0500
To: bug-Log-Log4perl [...] rt.cpan.org
From: Malcolm Nooning <m.nooning [...] comcast.net>
I found the solution in the FAQ at http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#7d198 Namely, in my perl script, I need to state use Log::Log4perl; instead of use Log::Log4Perl; (Bad upper case P) Please close this bug out now. Thanks Bugs in Log-Log4perl via RT wrote: Show quoted text
> Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Log4Perl errors out because it redefines many routines", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #53493]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=53493 > > Please include the string: > > [rt.cpan.org #53493] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > > Thank you, > bug-Log-Log4perl@rt.cpan.org > > ------------------------------------------------------------------------- > Try either of the two lines below. > perl -we "use Log::Log4Perl;" > perl -MLog::Log4Perl -e "print \"$Log::Log4Perl::VERSION\n\"" > > I get a long list of errors of the form > Subroutine "the sub name" redefined at C:/Perl/site/lib/Log/Log4Perl.pm line > "the line number". > > A typical one is: > Subroutine import redefined at C:/Perl/site/lib/Log/Log4Perl.pm line 67. > > >
Glad you found the solution yourself! Regarding the manifest glitch (t/059Prototype.t missing), that's gonna be addressed in 1.27, coming soon. Thanks for your report!

-- Mike