make test fails - Solaris8, Perl5.8.0, mod_perl 1.99_08
Hello List, I am having a mysteriously difficult time getting mod_perl installed on Solaris 8. Perl 5.8.0 is installed and was compiled from source. No threads. Apache 2.0.44 is installed and was compiled from source. Here is the output from make test. Of course there is a core dump as well. myserver_root make test cd src/modules/perl make -f Makefile.modperl mksh: Warning: newline is not last character in file Makefile.modperl Current working directory /d01/download/perl/modules/mod_perl-1.99_08/src/modules/perl /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \ /usr/bin/perl -Iblib/arch -Iblib/lib \ t/TEST /usr/local/apache2/bin/httpd -d /d01/download/perl/modules/mod_perl-1.99_08/t -f /d01/download/perl/modules/mod_perl-1.99_08/t/conf/httpd.c onf -DAPACHE2 using Apache/2.0.44 (prefork MPM) waiting for server to start: .[Thu Mar 27 16:50:41 2003] [crit] [Thu Mar 27 16:50:41 2003] file vhost.c, line 232, assertion rv == APR_SUCCESS failed . waiting for server to start: giving up after 61 secs !!! server failed to start! (t/logs/error_log wasn't created, start the server in the debug mode) !!! oh rats, server dumped core !!! for stacktrace, run: gdb /usr/local/apache2/bin/httpd -core /d01/download/perl/modules/mod_perl-1.99_08/t/core *** Error code 1 make: Fatal error: Command failed for target `run_tests' I ran the gdb command, but the results do not make any sense to me. Basically, the make test can not run httpd with the test configuration file in the t/conf directory. But I have checked and apachectl brings up httpd just fine, and the pages are accessible. If anyone can help, please do. Any help is deeply appreciated! Thank you, Adrian Klingel
Re: make test fails - Solaris8, Perl5.8.0, mod_perl 1.99_08
Adrian Klingel wrote: [...] waiting for server to start: .[Thu Mar 27 16:50:41 2003] [crit] [Thu Mar 27 16:50:41 2003] file vhost.c, line 232, assertion rv == APR_SUCCESS failed [...] If anyone can help, please do. Any help is deeply appreciated! This is the relevant code in vhost.c (httpd-side): else if (strcasecmp(host, _default_) == 0 || strcmp(host, 255.255.255.255) == 0) { rv = apr_sockaddr_info_get(my_addr, 255.255.255.255, APR_INET, port, 0, p); ap_assert(rv == APR_SUCCESS); /* must be bug or out of storage */ } so apr_sockaddr_info_get() fails, is your system ipv6 by chance? it probably fails on the first VirtualHost _default_ entry. could you interactively start with gdb and see where it fails in apr_sockaddr_info_get? The following script may get it easier for you: /tmp/debug: file ~/httpd/prefork/bin/httpd tbreak main run -d `pwd`/t -f `pwd`/t/conf/httpd.conf -DONE_PROCESS -DNO_DETATCH -DAPACHE2 # run through all the way to after mod_perl is loaded b load_module continue b apr_sockaddr_info_get now: % cd modperl-2.0 % gdb -command=/tmp/debug p.s. I prefer using ddd which runs gdb underneath, if you use ddd, the syntax is the same: % ddd -command=/tmp/debug __ Stas BekmanJAm_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