You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by mo...@thewrittenword.com on 2000/03/21 01:49:32 UTC

Compilation of mod_perl-1.21_03 on IRIX 6.2, Digital UNIX 4.0D

I tried compiling mod_perl 1.21_03 on IRIX 6.2 and Digital UNIX 4.0D
and ran into:
  % perl Makefile.PL USE_APXS=1 WITH_APXS=apxs EVERYTHING=1
  Will configure via APXS (apxs=/opt/TWWfsw/apache1312/bin/apxs)
  PerlDispatchHandler.........enabled
  ...
  PerlSSI.....................enabled
  Will run tests as User: 'china' Group: 'china'
  Can't locate Apache/MyConfig.pm in @INC (@INC contains: ./lib
  /opt/TWWfsw/perl5005/lib/5.00503/IP22-irix
  /opt/TWWfsw/perl5005/lib/5.00503
  /opt/TWWfsw/perl5005p/lib/5.005/IP22-irix
  /opt/TWWfsw/perl5005p/lib/5.005 .) at lib/Apache/src.pm line 23.

So, I did some digging:
  init_tests_and_config() is called before write_my_config
  magic_number() is called inside init_tests_and_config()
  magic_number() calls Apache::src->module_magic_number()
  Apache::src->module_magic_number() calls Apache::src->asrc()
  Apache::src->asrc() calls Apache::src->apxs()
  Apache::src->apxs executes "require Apache::MyConfig;" which
    probably causes the error

If this is really true, how does anyone configure mod_perl for the
first time?

My quick fix was to copy a dummy MyConfig.pm into one of the locations
perl was searching in.

BTW, anyone get mod_perl as a DSO to work on Digital UNIX 4.0D? It
core dumped on me (segmentation fault).

-- 
albert chin (china@thewrittenword.com)


Re: Compilation of mod_perl-1.21_03 on IRIX 6.2, Digital UNIX 4.0D

Posted by Doug MacEachern <do...@covalent.net>.
On Mon, 20 Mar 2000 modperl@thewrittenword.com wrote:

> I tried compiling mod_perl 1.21_03 on IRIX 6.2 and Digital UNIX 4.0D

>   Can't locate Apache/MyConfig.pm in @INC (@INC contains: ./lib

this has been fixed in the cvs tree, MyConfig.pm was being generated after
Apache::src tried to require, whoops.
 
> BTW, anyone get mod_perl as a DSO to work on Digital UNIX 4.0D? It
> core dumped on me (segmentation fault).

with 1.21_03?  i've found that solaris+Perl-5.005_03+modperl-dso still
core dumps with the recent fix.  it happens on the first call to
perl_parse(), so it's unrelated to the current fix.  not sure what the
problem is, but mod_perl's Makefile.PL makes the following suggestions, do
they (the -Dusemymalloc or 5.005_56+) apply to your platform as well?

    if ($USE_DSO and $] < 5.005_56 and 
	$^O eq 'solaris' and $Config{'usemymalloc'} eq 'y') 
      {
	  phat_warn(<<EOF);
Your current configuration will most likely trigger core dumps,
suggestions:
   *) Do not configure mod_perl as a DSO
   *) Upgrade your Perl version to 5.005_56 or higher
   *) Configure Perl with -Uusemymalloc
   *) Switch to an os other than $^O
EOF
      }