Ken Williams wrote:
> Hi,
> 
> I used to be able to compile mod_perl pretty easily on Mac OS X, but now 
> for some reason (upgrades of modules?  OS upgrades?) I'm having a lot of 
> trouble getting past 'make test'.  Here's what happens (no matter 
> whether I compile statically with just EVERYTHING=1, or as a DSO as per 
> http://david.wheeler.net/osx.html):
> 
> 
> ====================================================================
> [junior:~/Downloads/perl/mod_perl-1.26] ken% make test
> cp t/conf/mod_perl_srm.conf t/conf/srm.conf
> /usr/local/src/apache_1.3.23/src/httpd -f `pwd`/t/conf/httpd.conf -X -d 
> `pwd`/t &
> httpd listening on port 8529
> will write error_log to: t/logs/error_log
> letting apache warm up...\c
> [Sun Apr 28 12:29:28 2002] [error] Insecure $ENV{PATH} while running 
> with -T switch at /System/Library/Perl/Cwd.pm line 92.
> BEGIN failed--compilation aborted at 
> /System/Library/Perl/ExtUtils/testlib.pm line 6.
> Compilation failed in require at 
> /Users/ken/Downloads/perl/mod_perl-1.26/t//docs/startup.pl line 9.
> BEGIN failed--compilation aborted at 
> /Users/ken/Downloads/perl/mod_perl-1.26/t//docs/startup.pl line 9.
> Compilation failed in require at (eval 1) line 1.
> <....>
> ====================================================================
> 
> It's possible that it might have something to do with 
> ExtUtils::MakeMaker and its seedy friends, because I've been helping 
> work on that and installing betas from time to time.  But I'm not sure 
> where to start looking at that.  I'm currently using EU::MM 5.91_01.
> 
> Any suggestions?

Ken, CWD.pm, has always suffered from taint problems. This problem has 
been fixed in the bleadperl, try this patch:

--- /tmp/Cwd.pm Sun Apr 28 11:44:38 2002
+++ /home/stas/perl.org/perl-5.6.1/lib/Cwd.pm   Fri Sep 14 17:09:10 2001
@@ -89,7 +89,6 @@
  # The 'natural and safe form' for UNIX (pwd may be setuid root)

  sub _backtick_pwd {
-    local @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)};
      my $cwd = `pwd`;
      # `pwd` may fail e.g. if the disk is full
      chomp($cwd) if defined $cwd;

and if it works for you consider submitting it to Sarathy for 5.6.2.

__________________________________________________________________
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


Reply via email to