Matt Sergeant wrote:
> 
> I've snipped the lengthy explanation. Here's a few things you can check:
> 
> There's no old version of your module in the ordinary perl lib directory,
> rather than the i386-foo/ directory.

Interesting thought, so I checked it.  My module is actually under the
Apache server root ($SERVER_ROOT/lib/perl/Apache/module.pm), but the
linux system I'm using (Caldera 2.3) was loaded with an earlier version
of perl from the installer.  But, nope, that didn't pan out.  No
duplicates anywhere.  Everything is 5.6.

> That you use DynaLoader.

Yep.  When I tried commenting DynaLoader out just to see what would
happen, Apache complained to STDERR directly and not the error_log
file.  In the failure mode I'm dealing with,apache returns an exit code
of '0' on startup, and apachectl reports that the daemon is started. 
That much I can see in the strace.  The last thing it does is fork a
detached copy of itself, and it's that first forked copy that's failing.

BTW: when I strace with the '-f' option (follow the child), the first
thing that the child process appears to do is go looking for a
DESTROY.al module in a subdirectory under my module name which it does
not find, following the order in @INC.  I'm not yet sufficiently
familiar with all the bits and bytes or what goes on behind the scenes
using objects, so I'm not sure if that's a clue or not.  After that, the
child opens httpd.conf and looks for each LoadModule and then dies with
the invalid directive error. 

> That you define $VERSION before the bootstrap line.
> 

As below:

$VERSION = '0.9b';

if ( $ENV{'MOD_PERL'} ) {
  no strict;
  @ISA = qw(DynaLoader);
  __PACKAGE__->bootstrap($VERSION);
}


# Configuration Processing Callbacks

sub MirrorWiseKeyFile ($$$) {
  my($cfg, $parms, $keyfile) = @_;
  print "MirrorWiseKeyFile: $keyfile\n";
  $cfg->{'MirrorWiseKeyFile'} = $keyfile;
}


> --
> <Matt/>
> 
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org http://xml.sergeant.org


-- Rob


       _ _ _ _           _    _ _ _ _ _
      /\_\_\_\_\        /\_\ /\_\_\_\_\_\
     /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
    /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_/    /\/_/
  /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)
  
  Rob Tanner
  McMinnville, Oregon
  [EMAIL PROTECTED]

Reply via email to