APR::Request gets Symbol Not Found
APR::Request gets Symbol Not Found
am 19.11.2009 03:55:04 von Bill Karwin
I'm on Mac OS X 10.5 (Leopard). I have Apache 2.2.14 and mod_perl2 version
2.0.4.0 installed and working. They are installed via macports.
Then I installed libapreq2, and it also seemed to install without error.
Version 2.12.0, also via macports.
However when I try to test that I can load the module:
$ perl -MAPR::Request -e true
Can't load
'/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/A PR/Request/Request.bundle'
for module APR::Request:
dlopen(/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/ auto/APR/Request/Request.bundle,
1):
Symbol not found: _apreq_hook_disable_uploads
Referenced from:
/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/AP R/Request/Request.bundle
Expected in: dynamic lookup
at - line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
Can anyone offer any suggestions to help me troubleshoot this?
Regards,
Bill Karwin
--
View this message in context: http://old.nabble.com/APR%3A%3ARequest-gets-Symbol-Not-Found -tp26419579p26419579.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: APR::Request gets Symbol Not Found
am 19.11.2009 04:02:40 von Perrin Harkins
On Wed, Nov 18, 2009 at 9:55 PM, Bill Karwin wrote:
> However when I try to test that I can load the module:
>
> $ perl -MAPR::Request -e true
> Can't load
> '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/A PR/Request/Re=
quest.bundle'
> for module APR::Request:
> dlopen(/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/ auto/APR/Requ=
est/Request.bundle,
> 1):
> Symbol not found: _apreq_hook_disable_uploads
> =A0Referenced from:
> /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/AP R/Request/Req=
uest.bundle
> =A0Expected in: dynamic lookup
> =A0at - line 0
> Compilation failed in require.
> BEGIN failed--compilation aborted.
Hi Bill,
You can't load some of the Apache:: modules from the command-line.
They depend on the apache environment to run. Try loading it from
your httpd.conf instead.
- Perrin
Re: APR::Request gets Symbol Not Found
am 21.11.2009 19:27:31 von Bill Karwin
Perrin Harkins-3 wrote:
>
> You can't load some of the Apache:: modules from the command-line.
> They depend on the apache environment to run. Try loading it from
> your httpd.conf instead.
>
Hi Perrin, thanks for your quick reply. I tried your suggestion but I got a
similar error as I got from the command line.
I added this in httpd-vhosts.conf:
PerlModule APR::Request
I tried restarting Apache and this appeared in my Apache error_log:
[Fri Nov 20 23:22:36 2009] [error]
Can't load
'/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/A PR/Request/Request.bundle'
for module APR::Request:
dlopen(/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/ auto/APR/Request/Request.bundle,
1):
Symbol not found: _apreq_hook_disable_uploads\n
Referenced from:
/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/AP R/Request/Request.bundle\n
Expected in: dynamic lookup\n at (eval 2) line 3\nCompilation failed in
require at (eval 2) line 3.\n
Regards,
Bill Karwin
--
View this message in context: http://old.nabble.com/APR%3A%3ARequest-gets-Symbol-Not-Found -tp26419579p26459073.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: APR::Request gets Symbol Not Found
am 21.11.2009 19:42:00 von Joe Schaefer
Did you remember to load mod_apreq2 into httpd?
Typically requires a LoadModule apreq_module modules/mod_apreq2.so
----- Original Message ----
> From: Bill Karwin
> To: modperl@perl.apache.org
> Sent: Sat, November 21, 2009 1:27:31 PM
> Subject: Re: APR::Request gets Symbol Not Found
>
>
>
>
> Perrin Harkins-3 wrote:
> >
> > You can't load some of the Apache:: modules from the command-line.
> > They depend on the apache environment to run. Try loading it from
> > your httpd.conf instead.
> >
>
> Hi Perrin, thanks for your quick reply. I tried your suggestion but I got a
> similar error as I got from the command line.
>
> I added this in httpd-vhosts.conf:
>
> PerlModule APR::Request
>
> I tried restarting Apache and this appeared in my Apache error_log:
>
> [Fri Nov 20 23:22:36 2009] [error]
> Can't load
> '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/A PR/Request/Request.bundle'
>
> for module APR::Request:
> dlopen(/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/ auto/APR/Request/Request.bundle,
> 1):
> Symbol not found: _apreq_hook_disable_uploads\n
> Referenced from:
> /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/AP R/Request/Request.bundle\n
>
> Expected in: dynamic lookup\n at (eval 2) line 3\nCompilation failed in
> require at (eval 2) line 3.\n
>
> Regards,
> Bill Karwin
>
> --
> View this message in context:
> http://old.nabble.com/APR%3A%3ARequest-gets-Symbol-Not-Found -tp26419579p26459073.html
> Sent from the mod_perl - General mailing list archive at Nabble.com.
Re: APR::Request gets Symbol Not Found
am 21.11.2009 21:45:30 von Bill Karwin
Joe Schaefer-6 wrote:
>
> Did you remember to load mod_apreq2 into httpd?
> Typically requires a LoadModule apreq_module modules/mod_apreq2.so
>
That did it! Thanks very much. I now can start Apache with mod_perl and
mod_apreq2, and I believe server-info confirms it:
Apache/2.2.14 (Unix) DAV/2 PHP/5.3.0 mod_fastcgi/2.4.6
mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.8.9 Server at
local.karwin.com Port 80
Regards,
Bill Karwin
--
View this message in context: http://old.nabble.com/APR%3A%3ARequest-gets-Symbol-Not-Found -tp26419579p26459979.html
Sent from the mod_perl - General mailing list archive at Nabble.com.