You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Peram, Sudhakara" <Su...@pfizer.com> on 2010/12/29 01:56:58 UTC

Constant subroutine redefined at Apache/PerlRun.pm line 360

Hi All

 

I am migrating Perl 5.005 to 5.12.2, Apache 1.3.9 to 1.3.42 and mod_perl
1.21 to 1.31. But I am getting following warnings in error_log file. 

 

Message in error_log:

 

Constant subroutine Apache::ROOT::xxxxxx redefined at
~/lib/perl5/site_perl/5.12.2/sun4-solaris-64int/Apache/PerlRun.pm line
360.

 

Can anyone let me know how to get rid of above warning messages.

 

Thanks in advance for your help!

 

 

 

Regards

Sudhakar

 


RE: Constant subroutine redefined at Apache/PerlRun.pm line 360

Posted by "Peram, Sudhakara" <Su...@pfizer.com>.
Thank you Fred Moyer!



-----Original Message-----
From: Fred Moyer [mailto:fred@redhotpenguin.com] 
Sent: Tuesday, December 28, 2010 8:25 PM
To: Peram, Sudhakara
Cc: modperl@perl.apache.org
Subject: Re: Constant subroutine redefined at Apache/PerlRun.pm line 360

On Tue, Dec 28, 2010 at 5:19 PM, Peram, Sudhakara
<Su...@pfizer.com> wrote:
> As per our application architecture we need to ENV variables from perl
> script to another perl script and the same feature is disabled in Apache2 &
> mod_perl2. Because of this reason we are stick to mod_perl1. Before sticking
> to mod_per1, I tried with mod_perl2 also and I am getting same messages in
> error_log.

The warning itself looks fairly harmless, it is probably occurring
because the interpreter is reloading your script.

I'm not that knowledgeable on using PerlRun, but this presentation has
some examples you may find helpful:

http://ectoplasm.org/Talks/mod_perl-2.0-from-cgi-fast.pdf

You can probably also put the following statement at the top of your
script after use warnings:

no warnings 'undefined';

I would need to see the relevant code and httpd.conf sections to be of
any more help.

>
>
>
> Can you please help me to get rid of this.
>
>
>
>
>
> Regards
>
> Sudhakar
>
>
>
> -----Original Message-----
> From: Fred Moyer [mailto:fred@redhotpenguin.com]
> Sent: Tuesday, December 28, 2010 8:15 PM
> To: Peram, Sudhakara
> Cc: modperl@perl.apache.org
> Subject: Re: Constant subroutine redefined at Apache/PerlRun.pm line 360
>
>
>
> On Tue, Dec 28, 2010 at 4:56 PM, Peram, Sudhakara
>
> <Su...@pfizer.com> wrote:
>
>> Hi All
>
>>
>
>>
>
>>
>
>> I am migrating Perl 5.005 to 5.12.2, Apache 1.3.9 to 1.3.42 and mod_perl
>
>> 1.21 to 1.31. But I am getting following warnings in error_log file.
>
>
>
> For what it is worth, you may want to upgrade to Apache 2.2.x and
>
> mod_perl 2.0.4 instead.  The Apache 1.xx version line has been end of
>
> lifed for almost a year now.  This doesn't mean you won't get help
>
> from this list for mod_perl1, but if you are going to upgrade now,
>
> consider mod_perl2 instead.
>
>
>
> http://httpd.apache.org/
>
>
>
> "Apache httpd 1.3.42 is the final stable version of the 1.3 series,
>
> which was released and declared end of life on February 2nd, 2010. No
>
> further development or maintenance will occur for the 1.3 series."
>
>
>
>>
>
>>
>
>>
>
>> Message in error_log:
>
>>
>
>>
>
>>
>
>> Constant subroutine Apache::ROOT::xxxxxx redefined at
>
>> ~/lib/perl5/site_perl/5.12.2/sun4-solaris-64int/Apache/PerlRun.pm line
>> 360.
>
>>
>
>>
>
>>
>
>> Can anyone let me know how to get rid of above warning messages.
>
>>
>
>>
>
>>
>
>> Thanks in advance for your help!
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> Regards
>
>>
>
>> Sudhakar
>
>>
>
>>

Re: Constant subroutine redefined at Apache/PerlRun.pm line 360

Posted by Fred Moyer <fr...@redhotpenguin.com>.
On Tue, Dec 28, 2010 at 5:19 PM, Peram, Sudhakara
<Su...@pfizer.com> wrote:
> As per our application architecture we need to ENV variables from perl
> script to another perl script and the same feature is disabled in Apache2 &
> mod_perl2. Because of this reason we are stick to mod_perl1. Before sticking
> to mod_per1, I tried with mod_perl2 also and I am getting same messages in
> error_log.

The warning itself looks fairly harmless, it is probably occurring
because the interpreter is reloading your script.

I'm not that knowledgeable on using PerlRun, but this presentation has
some examples you may find helpful:

http://ectoplasm.org/Talks/mod_perl-2.0-from-cgi-fast.pdf

You can probably also put the following statement at the top of your
script after use warnings:

no warnings 'undefined';

I would need to see the relevant code and httpd.conf sections to be of
any more help.

>
>
>
> Can you please help me to get rid of this.
>
>
>
>
>
> Regards
>
> Sudhakar
>
>
>
> -----Original Message-----
> From: Fred Moyer [mailto:fred@redhotpenguin.com]
> Sent: Tuesday, December 28, 2010 8:15 PM
> To: Peram, Sudhakara
> Cc: modperl@perl.apache.org
> Subject: Re: Constant subroutine redefined at Apache/PerlRun.pm line 360
>
>
>
> On Tue, Dec 28, 2010 at 4:56 PM, Peram, Sudhakara
>
> <Su...@pfizer.com> wrote:
>
>> Hi All
>
>>
>
>>
>
>>
>
>> I am migrating Perl 5.005 to 5.12.2, Apache 1.3.9 to 1.3.42 and mod_perl
>
>> 1.21 to 1.31. But I am getting following warnings in error_log file.
>
>
>
> For what it is worth, you may want to upgrade to Apache 2.2.x and
>
> mod_perl 2.0.4 instead.  The Apache 1.xx version line has been end of
>
> lifed for almost a year now.  This doesn't mean you won't get help
>
> from this list for mod_perl1, but if you are going to upgrade now,
>
> consider mod_perl2 instead.
>
>
>
> http://httpd.apache.org/
>
>
>
> "Apache httpd 1.3.42 is the final stable version of the 1.3 series,
>
> which was released and declared end of life on February 2nd, 2010. No
>
> further development or maintenance will occur for the 1.3 series."
>
>
>
>>
>
>>
>
>>
>
>> Message in error_log:
>
>>
>
>>
>
>>
>
>> Constant subroutine Apache::ROOT::xxxxxx redefined at
>
>> ~/lib/perl5/site_perl/5.12.2/sun4-solaris-64int/Apache/PerlRun.pm line
>> 360.
>
>>
>
>>
>
>>
>
>> Can anyone let me know how to get rid of above warning messages.
>
>>
>
>>
>
>>
>
>> Thanks in advance for your help!
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> Regards
>
>>
>
>> Sudhakar
>
>>
>
>>

RE: Constant subroutine redefined at Apache/PerlRun.pm line 360

Posted by "Peram, Sudhakara" <Su...@pfizer.com>.
Thank you Fred Moyer for your response.

 

As per our application architecture we need to ENV variables from perl
script to another perl script and the same feature is disabled in
Apache2 & mod_perl2. Because of this reason we are stick to mod_perl1.
Before sticking to mod_per1, I tried with mod_perl2 also and I am
getting same messages in error_log.

 

Can you please help me to get rid of this.

 

 

Regards

Sudhakar

 

-----Original Message-----
From: Fred Moyer [mailto:fred@redhotpenguin.com] 
Sent: Tuesday, December 28, 2010 8:15 PM
To: Peram, Sudhakara
Cc: modperl@perl.apache.org
Subject: Re: Constant subroutine redefined at Apache/PerlRun.pm line 360

 

On Tue, Dec 28, 2010 at 4:56 PM, Peram, Sudhakara

<Su...@pfizer.com> wrote:

> Hi All

> 

> 

> 

> I am migrating Perl 5.005 to 5.12.2, Apache 1.3.9 to 1.3.42 and
mod_perl

> 1.21 to 1.31. But I am getting following warnings in error_log file.

 

For what it is worth, you may want to upgrade to Apache 2.2.x and

mod_perl 2.0.4 instead.  The Apache 1.xx version line has been end of

lifed for almost a year now.  This doesn't mean you won't get help

from this list for mod_perl1, but if you are going to upgrade now,

consider mod_perl2 instead.

 

http://httpd.apache.org/

 

"Apache httpd 1.3.42 is the final stable version of the 1.3 series,

which was released and declared end of life on February 2nd, 2010. No

further development or maintenance will occur for the 1.3 series."

 

> 

> 

> 

> Message in error_log:

> 

> 

> 

> Constant subroutine Apache::ROOT::xxxxxx redefined at

> ~/lib/perl5/site_perl/5.12.2/sun4-solaris-64int/Apache/PerlRun.pm line
360.

> 

> 

> 

> Can anyone let me know how to get rid of above warning messages.

> 

> 

> 

> Thanks in advance for your help!

> 

> 

> 

> 

> 

> 

> 

> Regards

> 

> Sudhakar

> 

> 


Re: Constant subroutine redefined at Apache/PerlRun.pm line 360

Posted by Fred Moyer <fr...@redhotpenguin.com>.
On Tue, Dec 28, 2010 at 4:56 PM, Peram, Sudhakara
<Su...@pfizer.com> wrote:
> Hi All
>
>
>
> I am migrating Perl 5.005 to 5.12.2, Apache 1.3.9 to 1.3.42 and mod_perl
> 1.21 to 1.31. But I am getting following warnings in error_log file.

For what it is worth, you may want to upgrade to Apache 2.2.x and
mod_perl 2.0.4 instead.  The Apache 1.xx version line has been end of
lifed for almost a year now.  This doesn't mean you won't get help
from this list for mod_perl1, but if you are going to upgrade now,
consider mod_perl2 instead.

http://httpd.apache.org/

"Apache httpd 1.3.42 is the final stable version of the 1.3 series,
which was released and declared end of life on February 2nd, 2010. No
further development or maintenance will occur for the 1.3 series."

>
>
>
> Message in error_log:
>
>
>
> Constant subroutine Apache::ROOT::xxxxxx redefined at
> ~/lib/perl5/site_perl/5.12.2/sun4-solaris-64int/Apache/PerlRun.pm line 360.
>
>
>
> Can anyone let me know how to get rid of above warning messages.
>
>
>
> Thanks in advance for your help!
>
>
>
>
>
>
>
> Regards
>
> Sudhakar
>
>