Bug#684290: Unable to use Apache2::SizeLimit

2013-05-13 Thread Ernesto Hernández-Novich
On Mon, 2013-05-06 at 09:01 -0430, Ernesto Hernández-Novich wrote:
 After upgrading from Squeeze to Wheezy, I'm unable to use my mod_perl
 based application again. Apache's error log shows
 
 [Mon May 06 08:36:18 2013] [error] [client 192.168.0.202] failed to
 resolve handler `Apache2::SizeLimit': You must install Linux::Pid for
 Apache::SizeLimit to work on your platform.
 at /usr/lib/perl5/Apache/SizeLimit/Core.pm line 128.\nBEGIN
 failed--compilation aborted at /usr/lib/perl5/Apache/SizeLimit/Core.pm
 line 171.\nCompilation failed in require
 at /usr/lib/perl5/Apache2/SizeLimit.pm line 48.\nBEGIN
 failed--compilation aborted at /usr/lib/perl5/Apache2/SizeLimit.pm line
 48.\nCompilation failed in require at (eval 1489) line 2.\n
 
 Application works fine after removing the reference to
 Apache2::SizeLimit in Apache's configuration file and restarting.
 Working without Apache2::SizeLimit makes it very hard to control the
 resource consumption of the mod_perl application, so it's not an
 acceptable workaround.

After installing Linux::Pid everything works.

Looking at /usr/lib/perl5/Apache/SizeLimit/Core.pm, there's a BEGIN
block (line 134) having 

elsif ($Config{'osname'} eq 'linux') {
  _load('Linux::Pid');

so it does use Linux::Pid. It also *tries* to use Linux::Smaps a couple
of lines after, but this time it's optional and doesn't fail if it isn't
there.

Neither Linux::Pid nor Linux::Smaps is available on Debian Wheezy nor
Sid, at the time of this writing. I believe Linux::Pid should've been a
part of Debian Wheezy for Apache2::SizeLimit to work properly.
-- 
Prof. Ernesto Hernández-Novich - MYS-220C - @iamemhn
Geek by nature, Linux by choice, Debian of course.
If you can't aptitude it, it isn't useful or doesn't exist.
GPG Key Fingerprint = 438C 49A2 A8C7 E7D7 1500 C507 96D6 A3D6 2F4C 85E3


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#684290: Unable to use Apache2::SizeLimit

2013-05-06 Thread Ernesto Hernández-Novich
After upgrading from Squeeze to Wheezy, I'm unable to use my mod_perl
based application again. Apache's error log shows

[Mon May 06 08:36:18 2013] [error] [client 192.168.0.202] failed to
resolve handler `Apache2::SizeLimit': You must install Linux::Pid for
Apache::SizeLimit to work on your platform.
at /usr/lib/perl5/Apache/SizeLimit/Core.pm line 128.\nBEGIN
failed--compilation aborted at /usr/lib/perl5/Apache/SizeLimit/Core.pm
line 171.\nCompilation failed in require
at /usr/lib/perl5/Apache2/SizeLimit.pm line 48.\nBEGIN
failed--compilation aborted at /usr/lib/perl5/Apache2/SizeLimit.pm line
48.\nCompilation failed in require at (eval 1489) line 2.\n

Application works fine after removing the reference to
Apache2::SizeLimit in Apache's configuration file and restarting.
Working without Apache2::SizeLimit makes it very hard to control the
resource consumption of the mod_perl application, so it's not an
acceptable workaround.
-- 
Prof. Ernesto Hernández-Novich - MYS-220C - @iamemhn
Geek by nature, Linux by choice, Debian of course.
If you can't aptitude it, it isn't useful or doesn't exist.
GPG Key Fingerprint = 438C 49A2 A8C7 E7D7 1500 C507 96D6 A3D6 2F4C 85E3


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org