Re: Loading Index.pl as the Root File
Jeffrey W. Baker [EMAIL PROTECTED] writes: On Mon, 23 Apr 2001, Al Morgan wrote: I've been studying Slash to better understand mod_perl. I think I understand everything that happens in the config file, except for this: That is probably the single worst way to learn about mod_perl. Slash is the only program that makes me physically ill. It is the single worst piece of programming ever released upon the world. No, that would be Matt's Script Archive. Have you seen Slash 2.0? Even uses the Template Toolkit. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
CPAN Installation of Bundle::Apache failure
Sirs, System is AIX 4.3.2,Perl 5.6.1 When I try to install Bundle::Apache using CPAN it fails as follows: Running Mkbootstrap for Apache::Request () chmod 644 Request.bs rm -f ../blib/arch/auto/Apache/Request/Request.so LD_RUN_PATH=/usr/sys/inst.images/build/libapreq-0.31/Request/../blib/a ld: 0711-317 ERROR: Undefined symbol: .ap_table_get ld: 0711-317 ERROR: Undefined symbol: .mod_perl_tie_table ld: 0711-317 ERROR: Undefined symbol: ap_null_cleanup ld: 0711-317 ERROR: Undefined symbol: .ap_register_cleanup ld: 0711-317 ERROR: Undefined symbol: .ap_getword ld: 0711-317 ERROR: Undefined symbol: .ap_unescape_url ld: 0711-317 ERROR: Undefined symbol: .ap_table_add ld: 0711-317 ERROR: Undefined symbol: .ap_pstrndup ld: 0711-317 ERROR: Undefined symbol: .ap_push_array ld: 0711-317 ERROR: Undefined symbol: .ap_setup_client_block ld: 0711-317 ERROR: Undefined symbol: .ap_should_client_block ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. make: 1254-004 The error code from the last command is 8. Stop. make: 1254-004 The error code from the last command is 2. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Bundle summary: The following items in bundle Bundle::Apache had installation problems: Apache::DB Apache::Request Can you assist please. Thanks. Regards, Jim ___ BTcd Information Systems Engineering CORES Infrastructure Support * 0131-662 4724 * * [EMAIL PROTECTED] *pp HWP186 PO Box 234 (HOM-EH) Edinburgh Midlothian , EH12 9UR ___
template toolkit compile test problems
Hi, I d/l the Template Toolkit via CPAN on make test t/filter.t fails 19 of 126 tests with: make: *** [ test_dynamic ] Error 29 any idea's? also could someone send me an example of a working httpd.conf with the Template entries? Regards Nigel
Re: template toolkit compile test problems
Hi, Are you using Perl 5.6.x ? If not there are some known problems with the installation of certain plugins. See http://www.tt2.org/download.html for more details. IIRC, the tutorial has an example of a TT2 enabled httpd.conf, or at least the relevant bits. try perldoc Template::Tutorial. BTW - This might have been better posted to the TT mailing list. See http://www.template-toolkit.org/mailman/listinfo/templates HTH, Simon Wilcox. From Nigel Sollars [EMAIL PROTECTED] Date 24 April 2001 Hi, I d/l the Template Toolkit via CPAN on make test t/filter.t fails 19 of 126 tests with: make: *** [ test_dynamic ] Error 29 any idea's? also could someone send me an example of a working httpd.conf with the Template entries? Regards Nigel __ This document should only be read by those persons to whom it is addressed and is not intended to be relied upon by any person without subsequent written confirmation of its contents. Accordingly, our company disclaim all responsibility and accept no liability (including in negligence) for the consequences for any person acting, or refraining from acting, on such information prior to the receipt by those persons of subsequent written confirmation. If you have received this E-mail message in error, please notify us immediately by telephone. Please also destroy and delete the message from your computer. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this E-mail message is strictly prohibited.
RE: Cookies in PerlAccessHandlers
You may have a typo in the code provided. Also, you should probably start using mod_perl methods rather than perl built-in functions. In a PerlAccessHandler I have code similar to the following: sub handler { my $r = shift; my ($cgi, $cookie); use CGI; $cgi = new CGI; $cookie = $cgi-cookie(-name = 'test'); # For debugging only open(TEST, /tmp/accesstest); flock(TEST,2); print TEST cookie = $cookie; close(test); This should certainly be something like: my $log = $r-log(); $log-debug(cookie = $cookie); which would log to the apache error log (with LogLevel set to debug in httpd.conf). Did you mean to close TEST instead of test? # This if block is not included in the PerlHandler version if ($cookie eq '') { return FORBIDDEN; } Still need to return something here! return OK; } However, nothing is written to the log file and the forbidden screen is displayed. The exact same code works fine if its in a regular mod_perl module installed using PerlHandler. Why is the code working inside a PerlHandler module and not in PerlAccessHandler? PerlHandler's don't require a return value (although it's best to do so in case you want to chain several of them together). PerlAccessHandler's must return OK, FORBIDDEN or DECLINED. Hope that helps, Chris
FW: Tomcat or WebLogic's WebServer?
Hi modperl guys, Anybody can confirm about this performance issue? PC -Original Message- From: Suresh Parmar [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 8:10 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat or WebLogic's WebServer? Hi, This is very interesting. The 30% degradation of performance with this set-up is a lot. What would you recommend as an ideal situation. Cheers. Suresh. - Original Message - From: Eoin Woods [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 23, 2001 5:20 PM Subject: Re: Tomcat or WebLogic's WebServer? Hi Marc-Antoine, It was actually me that found the 30% slowdown. Thanks for confirming this - that's most useful. Cheers, Eoin. -Original Message- From: CHARPENTIER Marc-Antoine [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 3:00 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat or WebLogic's WebServer? Hello Filip, my personal experience after testing both tomcat and apache in front of tomcat for a web application using servlet/jsp and java classes, is that the ajp protocol used by apache (written in C) and tomcat (written in java) for the servlet to handle the HTTP requests, is slowing down the performances, for something like 30% like you said. hope this helps. -Message d'origine- De: Eoin Woods [SMTP:[EMAIL PROTECTED]] Date: dimanche 22 avril 2001 20:27 À:[EMAIL PROTECTED] Objet:Re: Tomcat or WebLogic's WebServer? Filip Hanik wrote: Tomcat is not a web server, it is a servlet/jsp engine. it does have a built in web server, not very good though. use apache (or netscape) httpd in front of weblogic for best performance Hi Filip, I'm interested to hear you say that. I can see why you might put Apache in front of Tomcat for reliability or security reasons. Why would you put it there for performance reasons? I don't have exact figures to hand, but when we tested this recently I think we found that putting Apache in front of Tomcat slowed things down by about 30%. What is your experience with this? Cheers, Eoin. -- ~~ ~ Eoin Woods, Platform Development Group ~ InterTrust Technologies, Santa Clara, CA ~ Mobile: +1-408-674-2671 ; Office: +1-408-855-0246 ~ Email: [EMAIL PROTECTED] == = To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff J2EE-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff J2EE-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff J2EE-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff J2EE-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
Re: FW: Tomcat or WebLogic's WebServer?
On Tue, 24 Apr 2001, Wang, Pin-Chieh wrote: Hi modperl guys, Anybody can confirm about this performance issue? Sorry to sound rude, but why would we care? This is a Java issue, nothing to do with mod_perl. -- Matt/ /||** Founder and CTO ** ** http://axkit.com/ ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** mod_perl news and resources: http://take23.org ** \\// //\\ // \\
Re: Perl Directive Undefined
Hi, I have been trying to run perl scripts on apache using mod_perl. I initially had perl5.6.0 which came with the Redhat. I then configured my apache and got simple per scripts running. Then i realised that most of the perl scripts which will eventually run on my machine are wirtten in Activeperl, i installed activeperl ( for linux). but then when i tried running perl scripts which used modules such as Date::Calc, i get errors such as Cant find loadabel object module I am sure that i have installed the modules correctly using the ppm. Someone suggested me that the mod_perl is built using different perl (perl5) and the perl which is running on my machine is different (Active perl). Hence it is causing problem. So i removed the perl5 completely from my machine and tried building mod_perl again. But when i tried bulding mod_perl again, i gave me and error saying that it need perl5.6.0 Does Active perl does not work properly with mod_perl? If yes, can you tell me where exactly am i making mistake. I have been stuck with this problem for more than 2 weeks now, and any help will be greatly appreciated. yours truely, Abhishek _ The reward for working hard is more hard work. MESG «(`P_BE On Tue, 24 Apr 2001 13:34:49 Stas Bekman wrote: At least two people responded to my last message telling me that they didn't like Slash much; it was a horrible piece of code. Are you refering to it as a general piece of Perl code, or how it deals with mod_perl? If the latter, where I can find some good code to look it? Once you do something not very cleanly people will remember for a long time. I didn't check the latest versions of it, I suppose it's much much better now. It's rewritten by different people too. Also, Apache can't recognize the Perl directive; it gives me the following error: Invalid command 'Perl', perhaps mis-spelled or defined by a module not included in the server configuration Please read the documentation before posting. e.g. see: http://perl.apache.org/guide/config.html#Enabling mod_perl.c seems to be installed. 'httpd -l' shows it listed at the bottom. I've added the directive 'AddModule mod_perl.c' to httpd.conf, and it doesn't throw an error, so I know /something/ is being loaded, but the Perl directive still doesn't work. Am I missing something? see above _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
mod_perl help
Hi, I have been trying to run perl scripts on apache using mod_perl. I initially had perl5.6.0 which came with the Redhat. I then configured my apache and got simple per scripts running. Then i realised that most of the perl scripts which will eventually run on my machine are wirtten in Activeperl, i installed activeperl ( for linux). but then when i tried running perl scripts which used modules such as Date::Calc, i get errors such as Cant find loadabel object module I am sure that i have installed the modules correctly using the ppm. Someone suggested me that the mod_perl is built using different perl (perl5) and the perl which is running on my machine is different (Active perl). Hence it is causing problem. So i removed the perl5 completely from my machine and tried building mod_perl again. But when i tried bulding mod_perl again, i gave me and error saying that it need perl5.6.0 Does Active perl does not work properly with mod_perl? If yes, can you tell me where exactly am i making mistake. I have been stuck with this problem for more than 2 weeks now, and any help will be greatly appreciated. yours truely, Abhishek _ The reward for working hard is more hard work. MESG «(`P_BE On Tue, 24 Apr 2001 13:34:49 Stas Bekman wrote: At least two people responded to my last message telling me that they didn't like Slash much; it was a horrible piece of code. Are you refering to it as a general piece of Perl code, or how it deals with mod_perl? If the latter, where I can find some good code to look it? Once you do something not very cleanly people will remember for a long time. I didn't check the latest versions of it, I suppose it's much much better now. It's rewritten by different people too. Also, Apache can't recognize the Perl directive; it gives me the following error: Invalid command 'Perl', perhaps mis-spelled or defined by a module not included in the server configuration Please read the documentation before posting. e.g. see: http://perl.apache.org/guide/config.html#Enabling mod_perl.c seems to be installed. 'httpd -l' shows it listed at the bottom. I've added the directive 'AddModule mod_perl.c' to httpd.conf, and it doesn't throw an error, so I know /something/ is being loaded, but the Perl directive still doesn't work. Am I missing something? see above _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
RE: mod_perl help
I'm not sure if mod_perl will work with activeperl -Original Message- From: abhishek agrawal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 11:50 To: [EMAIL PROTECTED] Subject: mod_perl help Hi, I have been trying to run perl scripts on apache using mod_perl. I initially had perl5.6.0 which came with the Redhat. I then configured my apache and got simple per scripts running. Then i realised that most of the perl scripts which will eventually run on my machine are wirtten in Activeperl, i installed activeperl ( for linux). but then when i tried running perl scripts which used modules such as Date::Calc, i get errors such as Cant find loadabel object module I am sure that i have installed the modules correctly using the ppm. Someone suggested me that the mod_perl is built using different perl (perl5) and the perl which is running on my machine is different (Active perl). Hence it is causing problem. So i removed the perl5 completely from my machine and tried building mod_perl again. But when i tried bulding mod_perl again, i gave me and error saying that it need perl5.6.0 Does Active perl does not work properly with mod_perl? If yes, can you tell me where exactly am i making mistake. I have been stuck with this problem for more than 2 weeks now, and any help will be greatly appreciated. yours truely, Abhishek _ The reward for working hard is more hard work. MESG «(`P_BE On Tue, 24 Apr 2001 13:34:49 Stas Bekman wrote: At least two people responded to my last message telling me that they didn't like Slash much; it was a horrible piece of code. Are you refering to it as a general piece of Perl code, or how it deals with mod_perl? If the latter, where I can find some good code to look it? Once you do something not very cleanly people will remember for a long time. I didn't check the latest versions of it, I suppose it's much much better now. It's rewritten by different people too. Also, Apache can't recognize the Perl directive; it gives me the following error: Invalid command 'Perl', perhaps mis-spelled or defined by a module not included in the server configuration Please read the documentation before posting. e.g. see: http://perl.apache.org/guide/config.html#Enabling mod_perl.c seems to be installed. 'httpd -l' shows it listed at the bottom. I've added the directive 'AddModule mod_perl.c' to httpd.conf, and it doesn't throw an error, so I know /something/ is being loaded, but the Perl directive still doesn't work. Am I missing something? see above _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
Problem building on Solaris 2.7
I am trying to build mod_perl 1.25 as a DSO on Solaris 2.7 and when I execute perl Makefile.PL, it says I will probably get core dumps and to upgrade to perl 5.6. I am running Perl 5.005_03, the latest considered stable on Solaris 2.7. I cannot upgrade to 5.6 due to heavy perl code already on this machine. Can anyone point me in the right direction? Thanks, CC
Re: Problem building on Solaris 2.7
Stead of DSO why don't you compile statically. On Tue, Apr 24, 2001 at 02:47:55PM -0700, Mod-Perl List wrote: I am trying to build mod_perl 1.25 as a DSO on Solaris 2.7 and when I execute perl Makefile.PL, it says I will probably get core dumps and to upgrade to perl 5.6. I am running Perl 5.005_03, the latest considered stable on Solaris 2.7. I cannot upgrade to 5.6 due to heavy perl code already on this machine. Can anyone point me in the right direction? Thanks, CC
Tracking down taint problems
I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in the current module that's being run. Is there a way that I could get mod_perl to fess up where the problem is? Jamie Krasnoo [EMAIL PROTECTED]
Re: Tracking down taint problems
On Tue, 24 Apr 2001, Jamie Krasnoo wrote: I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in the current module that's being run. Is there a way that I could get mod_perl to fess up where the problem is? You could try to use Carp with $SIG{__(DIE|WARN)__}. But mainly read the perlsec manpage. Also see: http://perl.apache.org/guide/perl.html#Exception_Handling_for_mod_perl regarding the catching of exceptions. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
cvs commit: modperl-2.0/pod modperl_dev.pod
sbekman 01/04/24 19:44:35 Modified:pod modperl_dev.pod Log: to make a full test LWP is required, adding a note about it Revision ChangesPath 1.18 +10 -0 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod === RCS file: /home/cvs/modperl-2.0/pod/modperl_dev.pod,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- modperl_dev.pod 2001/04/24 05:50:28 1.17 +++ modperl_dev.pod 2001/04/25 02:44:34 1.18 @@ -29,6 +29,16 @@ % ./Configure -des -Dprefix=$HOME/bleedperl \ -Dusethreads -Doptimize='-g' -Dusedevel % make make test make install + % ln -s $HOME/bleedperl/bin/perl5.x.x $HOME/bleedperl/bin/perl + +You'll also want to install (at least) LWP into the bleedperl/lib +directory if you want to fully test mod_perl, because normally a +privately installed bleedperl won't find libraries installed in the +normal places; it only looks in it's own lib tree. You can install LWP +with CPAN.pm shell: + + % $HOME/bleedperl/bin/perl -MCPAN -e 'install(LWP)' + =head1 Compiling
cvs commit: modperl-2.0/lib/ModPerl Config.pm
dougm 01/04/24 20:14:44 Modified:lib/ModPerl Config.pm Log: want httpd -V not -v Revision ChangesPath 1.3 +1 -1 modperl-2.0/lib/ModPerl/Config.pm Index: Config.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Config.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Config.pm 2001/04/20 18:25:45 1.2 +++ Config.pm 2001/04/25 03:14:44 1.3 @@ -20,7 +20,7 @@ my $test_config = Apache::TestConfig-new; my $httpd = $test_config-{vars}-{httpd}; -my $command = $httpd -v; +my $command = $httpd -V; $cfg .= \n\n*** $command\n; $cfg .= qx{$command};
cvs commit: modperl Makefile.PL
sbekman 01/04/24 21:18:24 Modified:.Makefile.PL Log: adding PERL_SSI PERL_SECTIONS to MyConfig generator Revision ChangesPath 1.182 +4 -3 modperl/Makefile.PL Index: Makefile.PL === RCS file: /home/cvs/modperl/Makefile.PL,v retrieving revision 1.181 retrieving revision 1.182 diff -u -r1.181 -r1.182 --- Makefile.PL 2001/04/17 22:42:03 1.181 +++ Makefile.PL 2001/04/25 04:18:22 1.182 @@ -1981,9 +1981,10 @@ # preparing and writing Configuration to Apache::MyConfig my %my_config = %callback_hooks; my @other_hooks = qw(APACHE_SRC SSL_BASE APXS PERL_USELARGEFILES - PERL_TRACE PERL_DEBUG APACI_ARGS APACHE_PREFIX - DO_HTTPD NO_HTTPD PREP_HTTPD USE_APACI - APACHE_HEADER_INSTALL PERL_STATIC_EXTS ); + PERL_TRACE PERL_DEBUG APACI_ARGS + APACHE_PREFIX DO_HTTPD NO_HTTPD PREP_HTTPD + USE_APACI APACHE_HEADER_INSTALL + PERL_STATIC_EXTS PERL_SSI PERL_SECTIONS); { no strict 'refs'; $my_config{$_} = ${$_} for @other_hooks;
cvs commit: modperl-2.0/Apache-Test/lib/Apache TestConfigParse.pm
dougm 01/04/24 21:35:21 Modified:Apache-Test/lib/Apache TestConfigParse.pm Log: save some more info from httpd -V Revision ChangesPath 1.3 +10 -4 modperl-2.0/Apache-Test/lib/Apache/TestConfigParse.pm Index: TestConfigParse.pm === RCS file: /home/cvs/modperl-2.0/Apache-Test/lib/Apache/TestConfigParse.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TestConfigParse.pm2001/04/13 00:28:46 1.2 +++ TestConfigParse.pm2001/04/25 04:35:20 1.3 @@ -192,11 +192,17 @@ open my $proc, '-|', $cmd or die $cmd failed: $!; while ($proc) { -next unless s/^\s*-D\s*//; -s/\s+$//; chomp; -my($key, $val) = split '=', $_, 2; -$self-{httpd_defines}-{$key} = $val ? strip_quotes($val) : 1; +if( s/^\s*-D\s*//) { +s/\s+$//; +my($key, $val) = split '=', $_, 2; +$self-{httpd_defines}-{$key} = $val ? strip_quotes($val) : 1; +} +elsif (/(version|built|module magic number):\s+(.*)/i) { +my $val = $2; +(my $key = uc $1) =~ s/\s/_/g; +$self-{httpd_info}-{$key} = $val; +} } close $proc;
cvs commit: modperl-2.0/pod modperl_dev.pod
sbekman 01/04/24 22:26:27 Modified:pod modperl_dev.pod Log: documenting my latest build experience based on Doug's helpful notes: * always run 'make testclean' in httpd-2.0 source after cvs up * notes to debug 'make test' * raise the priority of using util/config.pl versus manual approach Revision ChangesPath 1.19 +31 -8 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod === RCS file: /home/cvs/modperl-2.0/pod/modperl_dev.pod,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- modperl_dev.pod 2001/04/25 02:44:34 1.18 +++ modperl_dev.pod 2001/04/25 05:26:27 1.19 @@ -22,6 +22,16 @@ --with-mpm=threaded --enable-so % make make install +Once extracted, whenever you want to sync with the latest httpd-2.0 +version and rebuild, run: + + % cd httpd-2.0 + % cvs up + % make testclean ./buildconf + % ./configure --prefix=$HOME/apache-2.0 \ + --with-mpm=threaded --enable-so + % make make install + For bleeding edge Perl: % rsync -auvz rsync://ftp.linux.activestate.com/perl-current/ perl-current @@ -118,8 +128,6 @@ =back - - Options can also be specified in the file Cmakepl_args.mod_perl2. Command line options override those from Cmakepl_args_mod_perl2 and those from MP_OPTIONS_FILE. @@ -151,9 +159,12 @@ =head1 Support Discussion of mod_perl-2.0 currently takes place on the [EMAIL PROTECTED] list. -Any problems/questions should be report to that list, be sure to -include: [EMAIL PROTECTED] list. Any problems/questions should be report to +that list, be sure to include the output of: + + % perl util/config.pl + +which generates the output from: =over 4 @@ -165,11 +176,23 @@ =back -hint: +You can also use Iutil/bugreport.pl. - % perl util/config.pl +=head1 'make test' Debug + +mod_perl-2.0 provides built in 'make test' debug facility. So in case +you get a core dump during make test, or just for fun, run in one shell: + + % t/TEST -debug + +in another shell: + + % t/TEST -run + +then the I-debug shell will have a (gdb) prompt, type 'where' for +stacktrace. + -will generate this requested information. =head1 mod_perl configuration directives
cvs commit: modperl-2.0/src/modules/perl modperl_interp.c modperl_util.c modperl_util.h
dougm 01/04/24 22:27:17 Modified:src/modules/perl modperl_interp.c modperl_util.c modperl_util.h Log: use apr_os_dso_handle_put/apr_dso_unload rather than the unportable dlclose() Revision ChangesPath 1.32 +1 -1 modperl-2.0/src/modules/perl/modperl_interp.c Index: modperl_interp.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_interp.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- modperl_interp.c 2001/04/09 23:57:22 1.31 +++ modperl_interp.c 2001/04/25 05:27:17 1.32 @@ -98,7 +98,7 @@ perl_free(interp-perl); if (handles) { -modperl_xs_dl_handles_close(handles); +modperl_xs_dl_handles_close(p, handles); } apr_pool_destroy(p); 1.9 +8 -5 modperl-2.0/src/modules/perl/modperl_util.c Index: modperl_util.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- modperl_util.c2001/04/25 03:13:59 1.8 +++ modperl_util.c2001/04/25 05:27:17 1.9 @@ -162,7 +162,7 @@ return handles; } -void modperl_xs_dl_handles_close(apr_array_header_t *handles) +void modperl_xs_dl_handles_close(apr_pool_t *p, apr_array_header_t *handles) { int i; @@ -171,10 +171,13 @@ } for (i=0; i handles-nelts; i++) { - void *handle = ((void **)handles-elts)[i]; - MP_TRACE_g(MP_FUNC, close 0x%lx\n, - (unsigned long)handle); - dlclose(handle); /*XXX*/ +apr_dso_handle_t *dso = NULL; +void *handle = ((void **)handles-elts)[i]; + +MP_TRACE_g(MP_FUNC, close 0x%lx\n, (unsigned long)handle); + +apr_os_dso_handle_put(dso, (apr_os_dso_handle_t )handle, p); +apr_dso_unload(dso); } } 1.10 +1 -1 modperl-2.0/src/modules/perl/modperl_util.h Index: modperl_util.h === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- modperl_util.h2001/04/25 03:13:59 1.9 +++ modperl_util.h2001/04/25 05:27:17 1.10 @@ -35,7 +35,7 @@ apr_array_header_t *modperl_xs_dl_handles_get(pTHX_ apr_pool_t *p); -void modperl_xs_dl_handles_close(apr_array_header_t *handles); +void modperl_xs_dl_handles_close(apr_pool_t *p, apr_array_header_t *handles); modperl_cleanup_data_t *modperl_cleanup_data_new(apr_pool_t *p, void *data);
cvs commit: modperl-2.0/pod modperl_dev.pod
dougm 01/04/24 22:38:41 Modified:pod modperl_dev.pod Log: fixo Revision ChangesPath 1.20 +2 -2 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod === RCS file: /home/cvs/modperl-2.0/pod/modperl_dev.pod,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- modperl_dev.pod 2001/04/25 05:26:27 1.19 +++ modperl_dev.pod 2001/04/25 05:38:41 1.20 @@ -26,8 +26,8 @@ version and rebuild, run: % cd httpd-2.0 - % cvs up - % make testclean ./buildconf + % cvs up -dP + % make distclean ./buildconf % ./configure --prefix=$HOME/apache-2.0 \ --with-mpm=threaded --enable-so % make make install
cvs commit: modperl-2.0/pod modperl_dev.pod
sbekman 01/04/24 22:54:57 Modified:pod modperl_dev.pod Log: another important note: cleanup in the Perl source Revision ChangesPath 1.21 +6 -0 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod === RCS file: /home/cvs/modperl-2.0/pod/modperl_dev.pod,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- modperl_dev.pod 2001/04/25 05:38:41 1.20 +++ modperl_dev.pod 2001/04/25 05:54:54 1.21 @@ -41,6 +41,12 @@ % make make test make install % ln -s $HOME/bleedperl/bin/perl5.x.x $HOME/bleedperl/bin/perl +If you are re-building Perl after cvs update, make sure to cleanup: + + % make distclean + +before running C./Configure. + You'll also want to install (at least) LWP into the bleedperl/lib directory if you want to fully test mod_perl, because normally a privately installed bleedperl won't find libraries installed in the
cvs commit: modperl-2.0/pod modperl_dev.pod
dougm 01/04/24 23:10:07 Modified:pod modperl_dev.pod Log: Perl does not use cvs Revision ChangesPath 1.22 +1 -1 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod === RCS file: /home/cvs/modperl-2.0/pod/modperl_dev.pod,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- modperl_dev.pod 2001/04/25 05:54:54 1.21 +++ modperl_dev.pod 2001/04/25 06:10:05 1.22 @@ -41,7 +41,7 @@ % make make test make install % ln -s $HOME/bleedperl/bin/perl5.x.x $HOME/bleedperl/bin/perl -If you are re-building Perl after cvs update, make sure to cleanup: +If you are re-building Perl after rsync-ing, make sure to cleanup: % make distclean