On Wed, Apr 07, 2004 at 12:39:33AM -0700, Stas Bekman wrote:
William, why do you check a binary, which is not the one that you get the error from? You need to check /usr/local/apache/bin/httpd instead. (of course it could be the same binary, but still...)
Because I thought it was the same one being installed... Will check the actual location instead.
It's quite possible, but we can't know that. Hence I suggested that you check that.
...Also please show us the output of:
ldd /usr/local/apache/bin/httpd
# ldd /usr/local/apache/bin/httpd
libperl.so => /usr/lib/libperl.so (0x4006c000)
And that's your problem. It picks the wrong perl library. Move it somewhere out of /usr/lib and rebuild again, and it'll probably be fine. What is that libperl.so?
Your real libperl.so if any that you build mod_perl with lives under: /usr/local/lib/perl5/5.8.3/
and if it links to libperl.so that would be your problem, since your perl is statically linked.
I see the 'useshrplib=false' in the perl -V output. Is this how you know
that my perl is statically linked?
Yes. And httpd should not be linked against libperl.so in that case.
So what do I do in this case? Searching the docs at perl.apache.org, I see that you recommend building Perl dynamically for the `PL_perl_destruct_level' error. Is this also your recommendation for this error?
I'm surprised that my Perl didn't get built dynamically since the INSTALL doc says this is the default if the system supports it. I would think Linux would be pretty widely supported so guess there must be other factors involved. Is there more discussion I can read about when to build statically vs. dynamically? FWIW, here's the command I ran to compile Perl:
sh Configure -Dotherlibdirs=/usr/share/perl5/ -des
I think you have more than one perl installed and that's why everything is messed up.
Having libperl.so in /usr/lib/ is a great reason for lots of obscure problems, when you have one more perl installed elsewhere. That's why perl puts its libperl.so under its private tree. But some distros play it smart...
Finally show us the commands you used to build apache/mp1.
I used the example you showed in the docs:
perl Makefile.PL APACHE_SRC=../apache_1.3.xx/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 make make test (fails b/c server cannot start due to PL_nowarn issue) make install
and what's:
% which perl
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html