You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bill Karwin <bi...@karwin.com> on 2009/11/19 03:55:04 UTC

APR::Request gets Symbol Not Found

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/APR/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/APR/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

Posted by Bill Karwin <bi...@karwin.com>.


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.


Re: APR::Request gets Symbol Not Found

Posted by Joe Schaefer <jo...@yahoo.com>.
Did you remember to load mod_apreq2 into httpd?
Typically requires a LoadModule apreq_module modules/mod_apreq2.so



----- Original Message ----
> From: Bill Karwin <bi...@karwin.com>
> 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/APR/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/APR/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

Posted by Bill Karwin <bi...@karwin.com>.


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/APR/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/APR/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

Posted by Perrin Harkins <ph...@gmail.com>.
On Wed, Nov 18, 2009 at 9:55 PM, Bill Karwin <bi...@karwin.com> 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/APR/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/APR/Request/Request.bundle
>  Expected in: dynamic lookup
>  at - 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