RE: Make Test problems...
Ok; After a week to reinstall redhat, delete the perl, apache, and mod_perl RPM's, and downloading the source files on my dinky little 28.8 connection, I come again to building this package. I used the makepl_args.mod_perl file that was given to me earlier, and I am still getting the following error messages... snippet number=1 make[1]: Leaving directory `/home/ian/mod_perl-1.25/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 /snippet From the t/logs/error_log file... snippet number=2 Server is not starting !? Subroutine main::pid redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 103. Subroutine main::access redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 104. Subroutine Outside::code redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 108. Subroutine PerlTransHandler::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 114. Subroutine MyClass::method redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 121. Subroutine BaseClass::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 127. Subroutine My::child_init redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 145. Subroutine My::child_exit redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 155. Subroutine My::restart redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 159. Subroutine Apache::AuthenTest::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 167. Subroutine My::DirIndex::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 189. Subroutine My::ProxyTest::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 207. Subroutine handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 241. Subroutine new redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 263. Subroutine DESTROY redefined at /home/ian/mod_perl1.25/t//docs/startup.pl line 265. [notice] Destruction-DESTROY called for $global_object Subroutine handler redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line6. Subroutine one redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 14. Subroutine two redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 25. Subroutine three redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 31. Subroutine four redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 37. [Sun Jun 17 02:12:39 2001] [crit] (98)Address already in use: make_sock: could not bind to port 8529 Server is not starting !? Subroutine main::pid redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 103. Subroutine main::access redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 104. Subroutine Outside::code redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl /snippet I've tried make test port=12345 and it still errors out when I try to run make test. Any ideas where to look? Anyone else using RH6.1 having/had the same problems? Any General Ideas (as I try to RTFM?) Thanks... Ian -Original Message- From: Steven Lembark [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 11:08 AM To: Ged Haywood; Ian (the webguy) Cc: [EMAIL PROTECTED] Subject: Re: Make Test problems... snip file called makpl_args.mod_perl in the mod_perl directory. The best arrangement for the directories seems to be something like: snip Even easier, put .makepl_args.mod_perl into your home directory and you won't have to re-create it every time you go to re-build Apache.
RE: Make Test problems...
[parts of the message were snipped] On Sun, 17 Jun 2001, Ian (the webguy) wrote: I used the makepl_args.mod_perl file that was given to me earlier, and I am still getting the following error messages... snippet number=1 make[1]: Leaving directory `/home/ian/mod_perl-1.25/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 /snippet [Sun Jun 17 02:12:39 2001] [crit] (98)Address already in use: make_sock: could not bind to port 8529 Server is not starting !? you already have a server running, kill it first. $ killall httpd test that you've it killed $ ps auxc | grep httpd now try again. $ make test _ 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/
RE: Make Test problems...
Nope. I did a killall httpd as root then tried it again, but to no evail. snip [root@ian mod_perl-1.25]# killall httpd httpd: no process killed [root@ian mod_perl-1.25]# ps auxc | grep httpd [root@ian mod_perl-1.25]# make test (cd ../apache_1.3.9 PERL5LIB=/home/ian/mod_perl-1.25/lib make) make[1]: Entering directory `/home/ian/apache_1.3.9' === src make[2]: Entering directory `/home/ian/apache_1.3.9' make[3]: Entering directory `/home/ian/apache_1.3.9/src' === src/regex make[4]: Nothing to be done for `all'. === src/regex === src/os/unix make[4]: Nothing to be done for `all'. === src/os/unix === src/ap make[4]: Nothing to be done for `all'. === src/ap === src/main make[4]: Nothing to be done for `all'. === src/main === src/lib === src/lib === src/modules === src/modules/standard make[5]: Nothing to be done for `all'. === src/modules/standard === src/modules/proxy make[5]: Nothing to be done for `all'. === src/modules/proxy === src/modules/perl make[5]: Nothing to be done for `all'. === src/modules/perl === src/modules cc -c -I. -I/usr/lib/perl5/5.00503/i386-linux/CORE -I./os/unix -I./include -D INUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -D SE_HSREGEX `./apaci` modules.c cc -c -I. -I/usr/lib/perl5/5.00503/i386-linux/CORE -I./os/unix -I./include -D INUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -D SE_HSREGEX `./apaci` buildmark.c cc -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/ inc ude -DUSE_HSREGEX `./apaci`\ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/pro y/libproxy.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm -lcrypt -lndbm -rdynamic -L/usr/local/lib /usr/lib/perl /5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.00503/i3 86- inux/CORE -lperl -lnsl -ldl -lm -lc -lposix -lcrypt make[3]: Leaving directory `/home/ian/apache_1.3.9/src' make[2]: Leaving directory `/home/ian/apache_1.3.9' make[2]: Entering directory `/home/ian/apache_1.3.9' === src/support make[3]: Entering directory `/home/ian/apache_1.3.9/src/support' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/ian/apache_1.3.9/src/support' === src/support make[2]: Leaving directory `/home/ian/apache_1.3.9' === src make[1]: Leaving directory `/home/ian/apache_1.3.9' make[1]: Entering directory `/home/ian/mod_perl-1.25/Apache' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Apache' make[1]: Entering directory `/home/ian/mod_perl-1.25/Connection' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Connection' make[1]: Entering directory `/home/ian/mod_perl-1.25/Constants' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Constants' make[1]: Entering directory `/home/ian/mod_perl-1.25/File' make[1]: Leaving directory `/home/ian/mod_perl-1.25/File' make[1]: Entering directory `/home/ian/mod_perl-1.25/Leak' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Leak' make[1]: Entering directory `/home/ian/mod_perl-1.25/Log' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Log' make[1]: Entering directory `/home/ian/mod_perl-1.25/ModuleConfig' make[1]: Leaving directory `/home/ian/mod_perl-1.25/ModuleConfig' make[1]: Entering directory `/home/ian/mod_perl-1.25/PerlRunXS' make[1]: Leaving directory `/home/ian/mod_perl-1.25/PerlRunXS' make[1]: Entering directory `/home/ian/mod_perl-1.25/Server' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Server' make[1]: Entering directory `/home/ian/mod_perl-1.25/Symbol' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Symbol' make[1]: Entering directory `/home/ian/mod_perl-1.25/Table' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Table' make[1]: Entering directory `/home/ian/mod_perl-1.25/URI' make[1]: Leaving directory `/home/ian/mod_perl-1.25/URI' make[1]: Entering directory `/home/ian/mod_perl-1.25/Util' make[1]: Leaving directory `/home/ian/mod_perl-1.25/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 snipped Ian -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 2:47 AM To: Ian (the webguy) Cc: mod_perl list Subject: RE: Make Test problems... [parts of the message were snipped] On Sun, 17 Jun 2001, Ian (the webguy) wrote: I used the makepl_args.mod_perl file that was given to me earlier, and I am still getting the following error messages... snippet number=1 make[1]: Leaving directory `/home/ian/mod_perl-1.25/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.9/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t httpd listening on port 8529
RE: Make Test problems...
I did a killall httpd as root then tried it again, but to no evail. snip [root@ian mod_perl-1.25]# killall httpd httpd: no process killed [root@ian mod_perl-1.25]# ps auxc | grep httpd [root@ian mod_perl-1.25]# make test [..] ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 snipped what the error_log says Ian -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 2:47 AM To: Ian (the webguy) Cc: mod_perl list Subject: RE: Make Test problems... [parts of the message were snipped] On Sun, 17 Jun 2001, Ian (the webguy) wrote: I used the makepl_args.mod_perl file that was given to me earlier, and I am still getting the following error messages... snippet number=1 make[1]: Leaving directory `/home/ian/mod_perl-1.25/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 /snippet [Sun Jun 17 02:12:39 2001] [crit] (98)Address already in use: make_sock: could not bind to port 8529 Server is not starting !? you already have a server running, kill it first. $ killall httpd test that you've it killed $ ps auxc | grep httpd now try again. $ make test _ 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/ _ 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/
RE: Make Test problems...
Server is not starting !? Subroutine main::pid redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 103. Subroutine main::access redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 104. Subroutine Outside::code redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 108. Subroutine PerlTransHandler::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 114. Subroutine MyClass::method redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 121. Subroutine BaseClass::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 127. Subroutine My::child_init redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 145. Subroutine My::child_exit redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 155. Subroutine My::restart redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 159. Subroutine Apache::AuthenTest::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 167. Subroutine My::DirIndex::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 189. Subroutine My::ProxyTest::handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 207. Subroutine handler redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 241. Subroutine new redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 263. Subroutine DESTROY redefined at /home/ian/mod_perl-1.25/t//docs/startup.pl line 265. [notice] Destruction-DESTROY called for $global_object Subroutine handler redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 6. Subroutine one redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 14. Subroutine two redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 25. Subroutine three redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 31. Subroutine four redefined at /home/ian/mod_perl-1.25/t//docs/stacked.pl line 37. [Sun Jun 17 02:57:52 2001] [warn] pid file /home/ian/mod_perl-1.25/t/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [notice] Destruction-DESTROY called for $global_object [Sun Jun 17 02:57:55 2001] [warn] [notice] child_init for process 2497, report any problems to [no address given] ~Ian -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 3:07 AM To: Ian (the webguy) Cc: mod_perl list Subject: RE: Make Test problems... I did a killall httpd as root then tried it again, but to no evail. snip [root@ian mod_perl-1.25]# killall httpd httpd: no process killed [root@ian mod_perl-1.25]# ps auxc | grep httpd [root@ian mod_perl-1.25]# make test [..] ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 snipped what the error_log says Ian -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 17, 2001 2:47 AM To: Ian (the webguy) Cc: mod_perl list Subject: RE: Make Test problems... [parts of the message were snipped] On Sun, 17 Jun 2001, Ian (the webguy) wrote: I used the makepl_args.mod_perl file that was given to me earlier, and I am still getting the following error messages... snippet number=1 make[1]: Leaving directory `/home/ian/mod_perl-1.25/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.9/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 done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 /snippet [Sun Jun 17 02:12:39 2001] [crit] (98)Address already in use: make_sock: could not bind to port 8529 Server is not starting !? you already have a server running, kill it first. $ killall httpd test that you've it killed $ ps auxc | grep httpd now try again. $ make test _ 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/ _ 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/
RE: Make Test problems...
On Sun, 17 Jun 2001, Ian (the webguy) wrote: I did a killall httpd as root then tried it again, but to no evail. I don't think that httpd already being running was the problem. The test script is supposed to pick a port that's NOT in use for the purposes of the test, isn't it? still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 9 Do what it says. Examine the file called t/logs/error_log. It should be somewhere in the directory where you're compiling this stuff. If you don't understand the contents of the error log, try posting them here. -Philip Mak ([EMAIL PROTECTED])
RE: Make Test problems...
in this case delete the old error_log file before you start the test, you have all the mess from the previous run posted. /home/ian/mod_perl-1.25/t/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? It looks like it starts here: [notice] Destruction-DESTROY called for $global_object [Sun Jun 17 02:57:55 2001] [warn] [notice] child_init for process 2497, report any problems to [no address given] what happens when you run: ../apache_1.3.9/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t Do you get a core file dumped? I have missed the original problem post. Is this a static build or DSO? What 'perl -V' says? _ 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/
Re: Make Test problems...
On Sun, 10 Jun 2001, Ian (the webguy) wrote: ... I'm not sure what's causing this. When I telnet to port 8529 and try to get /test.html, I get snip !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN HTMLHEAD TITLE403 Forbidden/TITLE this is a bug in the test suite, permissions problem if you 'make' as root. if you can 'perl Makefile.PL ... make' as another user and 'make install' as root the test should work fine.
Re: Make Test problems...
On Sun, 10 Jun 2001, Ian (the webguy) wrote: I'm running RedHat 6.2 on an P5/300 with 128MB of RAM and 10GB of HDD. I've grabbed the latest stable versions of Apache (1.3.9), and mod_perl. [snip] I keep on running into problems with the make test portion of my installation. Snippets are below... snip of 'make test outfile (cd /root/apache_1.3.9 PERL5LIB=/home/ian/mod_perl-1.25/lib make) Start again. It's not a big deal to delete everything in the source directories, untar the archives and rebuild. I always like to put a file called makpl_args.mod_perl in the mod_perl directory. The best arrangement for the directories seems to be something like: /home/ian/src/apache_1.3.9 /home/ian/src/mod_perl-1.25 so makepl_args.mod_perl is in fact /home/ian/src/mod_perl-1.25/makepl_args.mod_perl Then all you have to do is: % cd /home/ian/src/mod_perl % make % make test % su root # make install Make sure you haven't got a copy of Apache already running when you start all this, RedHat has one already in there for you but I've never liked the way it starts things up - tries to do too much for you which is very confusing when you're new to it all. My makepl_args.mod_perl is below, don't include the ruled lines! You might want to tweak it a little. Come back if you have any trouble. When you put the machine on the net, make sure you upgrade ftpd, the version of ftpd which comes with RH6.2 has a nasty hole in it. You need the lreply-buffer-overflow-patch. 73, Ged. -- USE_APACI=1 APACHE_PREFIX=/usr/local APACHE_SRC=../apache_1.3.19/src DO_HTTPD=1 EVERYTHING=1 ALL_HOOKS=1 PERL_SSI=1 PERL_SECTIONS=1 ADD_MODULE=info,status,proxy APACI_ARGS=--sbindir=/usr/local/sbin/httpd_perl APACI_ARGS=--sysconfdir=/usr/local/apache/httpd_perl/conf APACI_ARGS=--runtimedir=/usr/local/apache/httpd_perl/run APACI_ARGS=--logfiledir=/usr/local/apache/httpd_perl/logs APACI_ARGS=--localstatedir=/usr/local/apache/httpd_perl/stat APACI_ARGS=--proxycachedir=/usr/local/apache/httpd_perl/proxy APACI_ARGS=--enable-module=rewrite APACI_ARGS=--enable-module=include APACI_ARGS=--enable-module=info --
Re: Make Test problems...
snip file called makpl_args.mod_perl in the mod_perl directory. The best arrangement for the directories seems to be something like: snip Even easier, put .makepl_args.mod_perl into your home directory and you won't have to re-create it every time you go to re-build Apache.