Can't 'use Apache::Request'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapache-request-perl (Debian) |
Fix Released
|
Unknown
|
|||
libapache-request-perl (Ubuntu) |
Fix Released
|
Medium
|
MOTU |
Bug Description
When I attempt to use Apache::Request from my Apache config, I get the following error:
Can't load '/usr/lib/
at /usr/lib/
Compilation failed in require at /etc/apache-
BEGIN failed--compilation aborted at /etc/apache-
Here's an example which works under Debian Sarge. Save these lines in a file called /etc/apache-
<Perl>
package ModPerl::Time;
use Apache::Constants qw(:common);
use Apache::Request ();
sub handler {
my $r = shift;
my $apr = Apache:
print "Content-type: text/plain\n\n";
print "The time is now: " . localtime . "\n";
return OK;
}
</Perl>
<Location /time>
SetHandler perl-script
PerlHandler ModPerl::Time
PerlSendH
</Location>
If the lines referring to Apache request are removed, the code works via the url http://
$ ls -l /usr/lib/
-rw-r--r-- 1 root root 35452 2004-08-14 03:37 /usr/lib/
-rw-r--r-- 1 root root 17984 2004-08-14 03:37 /usr/lib/
$
Changed in libapache-request-perl: | |
assignee: | nobody → motu |
Changed in libapache-request-perl: | |
status: | Unconfirmed → Confirmed |
Hi,
You'll have to forgive my initial incredulity here, but this
patch appears to be some 2+ years old. Why exactly has no one
run into this and/or reported it before now?
thanks,
Ron
On Wed, Aug 10, 2005 at 10:34:26AM -0700, Jeffrey W. Baker wrote: request- perl perl5/auto/ Apache/ Request/ Request. so' for module perl/5. 8/DynaLoader. pm line 225.\n at perl5/mod_ perl.pm line 14 ======= ======= ======= ======= ======= ======= ======= ======= ==== httpd-apreq/ Cookie/ Makefile. PL,v ======= ======= ======= ======= ======= ======= ======= ======= ==== httpd-apreq/ Request/ Makefile. PL,v SP1_BRANCH_ 200411111445489 1_lustre. 1.4.0smp ANSI_X3. 4-1968) request- perl depends on: request- perl recommends no packages.
> Package: libapache-
> Version: 1.1-0.1
> Severity: grave
> Tags: patch
> Justification: renders package unusable
>
>
> The package is unusable because it is linked incorrectly. The error
> message is:
>
> Can't load '/usr/lib/
> Apache::Request: libapreq.so: cannot open shared object file: No such
> file or directory at /usr/lib/
> /usr/lib/
>
> Here is a patch:
>
> Index: Cookie/Makefile.PL
> =======
> RCS file: /home/cvs/
> retrieving revision 1.5
> diff -u -r1.5 Makefile.PL
> --- Cookie/Makefile.PL 3 Apr 2001 19:24:08 -0000 1.5
> +++ Cookie/Makefile.PL 31 Jul 2003 11:31:06 -0000
> @@ -27,7 +27,7 @@
> @mm_args,
> 'INC' => "-I../c ". $src->inc,
> 'TYPEMAPS' => $src->typemaps,
> - 'LIBS' => "-L$root -lapreq",
> + 'OBJECT' => "Cookie.o $root/libapreq.a",
> 'dynamic_lib' => {
> 'OTHERLDFLAGS' => $src->otherldflags,
> },
> Index: Request/Makefile.PL
> =======
> RCS file: /home/cvs/
> retrieving revision 1.5
> diff -u -r1.5 Makefile.PL
> --- Request/Makefile.PL 3 Apr 2001 19:24:09 -0000 1.5
> +++ Request/Makefile.PL 31 Jul 2003 11:31:06 -0000
> @@ -27,7 +27,7 @@
> @mm_args,
> 'INC' => "-I../c ". $src->inc,
> 'TYPEMAPS' => $src->typemaps,
> - 'LIBS' => "-L$root -lapreq",
> + 'OBJECT' => "Request.o $root/libapreq.a",
> 'dynamic_lib' => {
> 'OTHERLDFLAGS' => $src->otherldflags,
> },
>
> -- System Information:
> Debian Release: 3.1
> APT prefers unstable
> APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> Shell: /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.5-SLES9_
> Locale: LANG=C, LC_CTYPE=C (charmap=
>
> Versions of packages libapache-
> ii libapache-mod-perl 1.29.0.3-7 integration of perl with the Apach
> ii perl 5.8.7-4 Larry Wall's Practical Extraction
> ii perl-base [perlapi-5.8.7] 5.8.7-4 The Pathologically Eclectic Rubbis
>
> libapache-
>
> -- no debconf information
>
>