Markus Wichitill wrote:
Stas Bekman wrote:

Markus Wichitill wrote:

With current SVN, t/modperl/util hangs on Linux when run alone or as part of the whole test suite. On Win32/Apache 2.0.52/Perl 5.8.6 and ActivePerl 5.8.4, this test and all others pass.

error_log:
/usr/local/apache2/bin/httpd: relocation error: /usr/src/modperl-2.0/blib/arch/auto/ModPerl/Util/Util.so: undefined symbol: newSVpvf


$ nm /usr/src/modperl-2.0/blib/arch/auto/ModPerl/Util/Util.so | grep newSVpvf
U newSVpvf
$ nm /usr/local/perl/lib/CORE/libperl.so | grep newSVpvf
000a4ae0 T Perl_newSVpvf
000a4a90 T Perl_newSVpvf_nocontext
000a4b20 T Perl_vnewSVpvf


Markus, please post:

ldd /usr/src/modperl-2.0/blib/arch/auto/ModPerl/Util/Util.so
ldd src/module/perl/mod_perl.so
nm src/module/perl/mod_perl.so | grep newSVpvf


$ ldd blib/arch/auto/ModPerl/Util/Util.so
  libc.so.6 => /lib/i686/libc.so.6 (0x40013000)
  /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

$ ldd src/modules/perl/mod_perl.so
  libperl.so => /usr/local/perl/lib/CORE/libperl.so (0x40030000)

So mod_perl.so has loaded the right libperl.so which has Perl_newSVpvf resolved, Util.so shouldn't complain then, no? It doesn't for me (linux here too).


Is it possible that somehow Apache tries to load by itself? (httpd.conf?)
/usr/src/modperl-2.0/blib/arch/auto/ModPerl/Util/Util.so
Otherwise it should be a Dynaloader reporting the failure and not httpd

I see though that the test is broken. Does this make any difference?

-- Index: t/response/TestModperl/util.pm
===================================================================
--- t/response/TestModperl/util.pm      (revision 111732)
+++ t/response/TestModperl/util.pm      (working copy)
@@ -8,8 +8,7 @@
 use Apache::Test;
 use Apache::TestUtil;

-use Apache::RequestIO ();
-use Apache::RequestUtil ();
+use ModPerl::Util ();

 use Apache::Const -compile => 'OK';

__________________________________________________________________
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to