|Just another Perl shrine|
Static CGI.pm to mod_perl2 (not mod_perl)by hacker (Priest)
|on Aug 31, 2007 at 11:08 UTC||Need Help??|
hacker has asked for the
wisdom of the Perl Monks concerning the following question:
I have an existing website that was (until recently) running with mod_perl under Apache 1.3.x, and worked well.
I've migrated the servers to newer hardware and Apache 2..x, and had to "unroll" the site, because none of the same/similar constructs that worked with mod_perl worked with mod_perl2 (even the fallback of using Apache2::compat didn't seem to work.
Right now, I'm using the following:
This is currently taking the place of my previous $cgi->param('a') constructs. As I get more familiar with the Apache2::Request objects and methods, I'll add more of my code in.
Right now, its baby steps.
When I request the page using this code (with or without params), I receive:
perl: symbol lookup error: /usr/lib/perl5/auto/APR/Request/Apache2/Apache2.so: undefined symbol: modperl_xs_sv2request_rec
There is no other line number, error or warning.
I've Googled around without much luck. Lots of people with the error on BSD platforms, but I run Linux, and am using the upstream Debian Apache and libapreq2 packages.
Where other rock can I overturn to figure this out?
Update: I fetched the upstream source for libapreq2 and built it with the following params:
/usr/bin/perl Makefile.PL --with-apache2-apxs=/usr/bin/apxs2 --prefix=/usr --enable-perl-glue --with-perl=/usr/bin/perl
This compiles clean and all tests pass 100%, but I still receive the error above.