[CC'ing Michael Schroeder who submitted a related patch to p5p http://www.gossamer-threads.com/lists/perl/porters/187753]
Tim Evans wrote:
so at the moment the solution is to recompile perl with -DPERL_USE_SAFE_PUTENV
Does not work.
Michael, do you have any other solutions for Tim? He seems to have the same problem as you had with mod_perl/mod_php, but the suggestion to
recompile perl with -DPERL_USE_SAFE_PUTENV suggested at the URL:
http://www.phpbuilder.com/lists/php-install/2003092/0018.php
doesn't seem to work.
[EMAIL PROTECTED] apache_1.3.33]# perl -V:cppflags cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm';[...]
Fresh build of PHP 4.3.9; config.status has:
./configure --with-apxs=/usr/local/apache/bin/apxs
Loads Apache HTML example page ok; simple test.php script runs w/o error showing PHP config
Rebuilt mod_perl with:
perl Makefile.PL USE_DSO=1
Let it build apache for me; apache's config.status says:
CC="cc" \
CFLAGS=" -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm" \
LDFLAGS_SHLIB_EXPORT="-Wl,-E" \
./configure \
"--with-layout=Apache" \
"--disable-rule=EXPAT" \
"--with-perl=/usr/local/bin/perl" \
"$@"
make test (all ok) make install
Apache's httpd.conf has:
LoadModule php4_module libexec/libphp4.so LoadModule perl_module libexec/libperl.so
Restart apache.
Seg faults on simple test.php page. Error log says (same as before):
[Thu Nov 18 20:48:17 2004] [notice] child pid 22818 exit signal Segmentation fault (11)
At this point, my client has instructed me to stop burning billable hours on this project--initial goal was to get an application called Request Tracker (http://www.bestpractical.com/rt/) running. I cannot disable PHP for this project, and can't use mod_perl either.
-- __________________________________________________________________ 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