You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by "Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov> on 2005/02/02 01:38:08 UTC

"make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

I'm trying to build my just checked out copy of httpd-apreq-2. using Perl
5.8.6, Apache 2.0.52, mod_perl-2.0.0-RC4, libtool 1.4.2, autoconf 2.59, on
Red Hat Linux 7.3. Maybe my libtool or autoconf is out of date? But buildconf
didn't say so....

> which perl
/usr1/local/perl5/5.8.6/bin/perl
> perl Makefile.PL --with-apache2-apxs=/usr/wwwserver/apache.2.0.52/bin/apxs
'--WITH-APACHE2-APXS' is not a known MakeMaker parameter name.
perl: 5.8.6 ok
mod_perl: 1.999021 ok
Apache::Test: 1.21 ok
ExtUtils::MakeMaker: 6.17 ok
ExtUtils::XSBuilder: 0.27 ok
Test::More: 0.54 ok
./configure --enable-perl-glue --with-apache2-apxs=/usr/wwwserver/apache.2.0.52/bin/apxs --with-perl=/software/linux/usr1/local/perl5/5.8.6/bin/perl5.8.6
[...]
cd env; make test
make[1]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env'
make  test_cgi
make[2]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env'
make[2]: `test_cgi' is up to date.
make[2]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env'
/software/linux/usr1/local/perl5/5.8.6/bin/perl5.8.6 -MApache::TestMM -e 'package Apache::TestMM; filter_args(); generate_script("t/TEST")' -- -apxs /usr/wwwserver/apache.2.0.52/bin/apxs
[   info] generating script t/TEST
cp -f test_cgi t/cgi-bin
cp -Rp .libs t
MAKE=make /software/linux/usr1/local/perl5/5.8.6/bin/perl5.8.6 t/TEST
[warning] setting ulimit to allow core files
ulimit -c unlimited; /software/linux/usr1/local/perl5/5.8.6/bin/perl5.8.6 /Home/home2/sabol/work/httpd-apreq-2/env/t/TEST
sh: ulimit: cannot modify core file size limit: Operation not permitted
[  debug] loading custom config data from: '/home2/sabol/.apache-test/Apache/TestConfigData.pm'
[  debug] overlaying custom config data
[  debug] configuring httpd
[  debug] Using httpd: /usr/wwwserver/apache.2.0.52/bin/httpd
[  debug] isolated httpd_info VERSION = Apache/2.0.52
[  debug] isolated httpd_info BUILT = Jan 31 2005 10:56:49
[  debug] isolated httpd_info MODULE_MAGIC_NUMBER = 20020903:9
[  debug] isolated httpd_defines APACHE_MPM_DIR = server/mpm/prefork
[  debug] isolated httpd_defines APR_HAS_SENDFILE = 1
[  debug] isolated httpd_defines APR_HAS_MMAP = 1
[  debug] isolated httpd_defines APR_HAVE_IPV6 (IPv4-mapped addresses enabled) = 1
[  debug] isolated httpd_defines APR_USE_SYSVSEM_SERIALIZE = 1
[  debug] isolated httpd_defines APR_USE_PTHREAD_SERIALIZE = 1
[  debug] isolated httpd_defines SINGLE_LISTEN_UNSERIALIZED_ACCEPT = 1
[  debug] isolated httpd_defines APR_HAS_OTHER_CHILD = 1
[  debug] isolated httpd_defines AP_HAVE_RELIABLE_PIPED_LOGS = 1
[  debug] isolated httpd_defines HTTPD_ROOT = /usr/wwwserver/apache.2.0.52
[  debug] isolated httpd_defines SUEXEC_BIN = /usr/wwwserver/apache.2.0.52/bin/suexec
[  debug] isolated httpd_defines DEFAULT_PIDLOG = logs/httpd.pid
[  debug] isolated httpd_defines DEFAULT_SCOREBOARD = logs/apache_runtime_status
[  debug] isolated httpd_defines DEFAULT_LOCKFILE = logs/accept.lock
[  debug] isolated httpd_defines DEFAULT_ERRORLOG = logs/error_log
[  debug] isolated httpd_defines AP_TYPES_CONFIG_FILE = conf/mime.types
[  debug] isolated httpd_defines SERVER_CONFIG_FILE = conf/httpd.conf
[  debug] inheriting config file: /usr/wwwserver/apache.2.0.52/conf/httpd.conf
[  debug] using httpd.conf inherited ServerRoot to resolve conf/ssl.conf
[  debug] conf/ssl.conf successfully resolved to existing file /usr/wwwserver/apache.2.0.52/conf/ssl.conf
[  debug] inheriting config file: /usr/wwwserver/apache.2.0.52/conf/ssl.conf
[  debug] using httpd.conf inherited ServerRoot to resolve conf/mime.types
[  debug] conf/mime.types successfully resolved to existing file /usr/wwwserver/apache.2.0.52/conf/mime.types
[  debug] Matched Apache revision Apache/2.0.52 2
[  debug] generating ../c-modules/apache_httpd_test.h
[  debug] WRITING /Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_request_test/Makefile for mod_apreq_request_test
[  debug] WRITING /Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_cookie_test/Makefile for mod_apreq_cookie_test
[  debug] WRITING /Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_big_request_test/Makefile for mod_apreq_big_request_test
[  debug] WRITING /Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_access_test/Makefile for mod_apreq_access_test
[  debug] WRITING /Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_redirect_test/Makefile for mod_apreq_redirect_test
[  debug] WRITING /Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_output_filter_test/Makefile for mod_apreq_output_filter_test
[  debug] cd /Home/home2/sabol/work/httpd-apreq-2/env/c-modules && make all
make[2]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules'
cd apreq_request_test && make .libs/mod_apreq_request_test.so
make[3]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_request_test'
/usr/wwwserver/apache.2.0.52/bin/apxs -L../../../src -I../../../src -lapreq2 -D APACHE2 -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -c mod_apreq_request_test.c
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/wwwserver/apache.2.0.52/include  -I/usr/wwwserver/apache.2.0.52/include   -I/usr/wwwserver/apache.2.0.52/include  -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -c -o mod_apreq_request_test.lo mod_apreq_request_test.c && touch mod_apreq_request_test.slo
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=link gcc -o mod_apreq_request_test.la -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -L../../../src -lapreq2 -rpath /usr/wwwserver/apache.2.0.52/modules -module -avoid-version    mod_apreq_request_test.lo
libtool: link: warning: `/usr/lib//libgdbm.la' seems to be moved
make[3]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_request_test'
cd apreq_cookie_test && make .libs/mod_apreq_cookie_test.so
make[3]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_cookie_test'
/usr/wwwserver/apache.2.0.52/bin/apxs -L../../../src -I../../../src -lapreq2 -D APACHE2 -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -c mod_apreq_cookie_test.c
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/wwwserver/apache.2.0.52/include  -I/usr/wwwserver/apache.2.0.52/include   -I/usr/wwwserver/apache.2.0.52/include  -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -c -o mod_apreq_cookie_test.lo mod_apreq_cookie_test.c && touch mod_apreq_cookie_test.slo
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=link gcc -o mod_apreq_cookie_test.la -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -L../../../src -lapreq2 -rpath /usr/wwwserver/apache.2.0.52/modules -module -avoid-version    mod_apreq_cookie_test.lo
libtool: link: warning: `/usr/lib//libgdbm.la' seems to be moved
make[3]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_cookie_test'
cd apreq_big_request_test && make .libs/mod_apreq_big_request_test.so
make[3]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_big_request_test'
/usr/wwwserver/apache.2.0.52/bin/apxs -L../../../src -I../../../src -lapreq2 -D APACHE2 -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -c mod_apreq_big_request_test.c
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/wwwserver/apache.2.0.52/include  -I/usr/wwwserver/apache.2.0.52/include   -I/usr/wwwserver/apache.2.0.52/include  -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -c -o mod_apreq_big_request_test.lo mod_apreq_big_request_test.c && touch mod_apreq_big_request_test.slo
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=link gcc -o mod_apreq_big_request_test.la -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -L../../../src -lapreq2 -rpath /usr/wwwserver/apache.2.0.52/modules -module -avoid-version    mod_apreq_big_request_test.lo
libtool: link: warning: `/usr/lib//libgdbm.la' seems to be moved
make[3]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_big_request_test'
cd apreq_access_test && make .libs/mod_apreq_access_test.so
make[3]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_access_test'
/usr/wwwserver/apache.2.0.52/bin/apxs -L../../../src -I../../../src -lapreq2 -D APACHE2 -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -c mod_apreq_access_test.c
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/wwwserver/apache.2.0.52/include  -I/usr/wwwserver/apache.2.0.52/include   -I/usr/wwwserver/apache.2.0.52/include  -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -c -o mod_apreq_access_test.lo mod_apreq_access_test.c && touch mod_apreq_access_test.slo
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=link gcc -o mod_apreq_access_test.la -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -L../../../src -lapreq2 -rpath /usr/wwwserver/apache.2.0.52/modules -module -avoid-version    mod_apreq_access_test.lo
libtool: link: warning: `/usr/lib//libgdbm.la' seems to be moved
make[3]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_access_test'
cd apreq_redirect_test && make .libs/mod_apreq_redirect_test.so
make[3]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_redirect_test'
/usr/wwwserver/apache.2.0.52/bin/apxs -L../../../src -I../../../src -lapreq2 -D APACHE2 -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -c mod_apreq_redirect_test.c   
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/wwwserver/apache.2.0.52/include  -I/usr/wwwserver/apache.2.0.52/include   -I/usr/wwwserver/apache.2.0.52/include  -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -c -o mod_apreq_redirect_test.lo mod_apreq_redirect_test.c && touch mod_apreq_redirect_test.slo
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=link gcc -o mod_apreq_redirect_test.la -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -L../../../src -lapreq2 -rpath /usr/wwwserver/apache.2.0.52/modules -module -avoid-version    mod_apreq_redirect_test.lo
libtool: link: warning: `/usr/lib//libgdbm.la' seems to be moved
make[3]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_redirect_test'
cd apreq_output_filter_test && make .libs/mod_apreq_output_filter_test.so
make[3]: Entering directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_output_filter_test'
/usr/wwwserver/apache.2.0.52/bin/apxs -L../../../src -I../../../src -lapreq2 -D APACHE2 -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -c mod_apreq_output_filter_test.c
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=compile gcc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/wwwserver/apache.2.0.52/include  -I/usr/wwwserver/apache.2.0.52/include   -I/usr/wwwserver/apache.2.0.52/include  -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -c -o mod_apreq_output_filter_test.lo mod_apreq_output_filter_test.c && touch mod_apreq_output_filter_test.slo
/usr/wwwserver/apache.2.0.52/build/libtool --silent --mode=link gcc -o mod_apreq_output_filter_test.la -I../../../src -I/Home/home2/sabol/work/httpd-apreq-2/env/c-modules -DAPACHE2  -L../../../src -lapreq2 -rpath /usr/wwwserver/apache.2.0.52/modules -module -avoid-version    mod_apreq_output_filter_test.lo
libtool: link: warning: `/usr/lib//libgdbm.la' seems to be moved
make[3]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules/apreq_output_filter_test'
make[2]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env/c-modules'
[  debug] WRITING httpd.conf with mod_apreq_request_test, mod_apreq_cookie_test, mod_apreq_big_request_test, mod_apreq_access_test, mod_apreq_redirect_test, mod_apreq_output_filter_test
[  debug] generating htdocs/index.html
[  debug] Will 'Include' /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/ssl/ssl.conf config file
[  debug] Will 'Include' /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/extra.conf config file
[  debug] Will 'Include' /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/ssl/proxyssl.conf config file
[  debug] generating conf/ssl/ssl.conf from /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/ssl/ssl.conf.in
[  debug] generating conf/extra.conf from /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/extra.conf.in
[  debug] generating conf/ssl/proxyssl.conf from /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/ssl/proxyssl.conf.in
[  debug] generating conf/httpd.conf
[  debug] generating conf/apache_test_config.pm
[  debug] saving config data to apache_test_config.pm
/usr/wwwserver/apache.2.0.52/bin/httpd  -d /Home/home2/sabol/work/httpd-apreq-2/env/t -f /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/httpd.conf -D APACHE2
using Apache/2.0.52 (prefork MPM)

waiting 60 seconds for server to start: .Syntax error on line 12 of /Home/home2/sabol/work/httpd-apreq-2/env/t/conf/httpd.conf:
Cannot load /Home/home2/sabol/work/httpd-apreq-2/env/.libs/mod_apreq.so into server: /Home/home2/sabol/work/httpd-apreq-2/env/.libs/mod_apreq.so: cannot open shared object file: No such file or directory
[  error]   
server has died with status 255 (t/logs/error_log wasn't created, start the server in the debug mode)
make[1]: *** [run_tests] Error 143
make[1]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/env'
make: *** [env_test] Error 2


> find env -name "mod_apreq.*"
env/.svn/text-base/mod_apreq.c.svn-base
env/.svn/prop-base/mod_apreq.c.svn-base
env/.svn/props/mod_apreq.c.svn-work
env/.svn/wcprops/mod_apreq.c.svn-work
env/t/.libs/mod_apreq.a
env/t/.libs/mod_apreq.lai
env/t/.libs/mod_apreq.la
env/mod_apreq.c
env/.deps/mod_apreq.Plo
env/.libs/mod_apreq.a
env/.libs/mod_apreq.lai
env/.libs/mod_apreq.la
env/mod_apreq.o
env/mod_apreq.lo
env/mod_apreq.la

> ls env/t/.libs/
env/t/.libs:
mod_apreq*     mod_apreq.a    mod_apreq.la&  mod_apreq.lai  test_cgi*

> ls -l env/t/.libs/
total 244
-rwxr-xr-x    1 sabol    man         88623 Feb  1 19:15 mod_apreq*
-rw-r--r--    1 sabol    man         85438 Feb  1 19:15 mod_apreq.a
lrwxrwxrwx    1 sabol    man            15 Feb  1 19:15 mod_apreq.la -> ../mod_apreq.la
-rw-r--r--    1 sabol    man          1003 Feb  1 19:15 mod_apreq.lai
-rwxr-xr-x    1 sabol    man         59473 Feb  1 19:15 test_cgi*

Here's what I did:

I think that broken link for mod_apreq.la should point to ../../mod_apreq.la
instead? I fixed that.

Then, I made a sym link from mod_apreq to mod_apreq.so in env/t/.libs/.
Ditto for env/.libs. After making those, "make test" mostly succeeded.

server localhost.localdomain:8529 started
t/apreq/big_input....ok
t/apreq/cgi..........# Failed test 1 in t/apreq/cgi.t at line 61
t/apreq/cgi..........NOK 1# Failed test 2 in t/apreq/cgi.t at line 61 fail #2
t/apreq/cgi..........NOK 2# Failed test 3 in t/apreq/cgi.t at line 61 fail #3
t/apreq/cgi..........NOK 3# Failed test 4 in t/apreq/cgi.t at line 61 fail #4
t/apreq/cgi..........NOK 4# Failed test 5 in t/apreq/cgi.t at line 61 fail #5
t/apreq/cgi..........NOK 5# Failed test 6 in t/apreq/cgi.t at line 61 fail #6
t/apreq/cgi..........NOK 6# Failed test 7 in t/apreq/cgi.t at line 61 fail #7
t/apreq/cgi..........NOK 7# Failed test 8 in t/apreq/cgi.t at line 61 fail #8
t/apreq/cgi..........NOK 8# Failed test 9 in t/apreq/cgi.t at line 61 fail #9
t/apreq/cgi..........NOK 9# Failed test 10 in t/apreq/cgi.t at line 83
t/apreq/cgi..........NOK 10# Failed test 11 in t/apreq/cgi.t at line 83 fail #2
t/apreq/cgi..........NOK 12# Failed test 12 in t/apreq/cgi.t at line 83 fail #3
t/apreq/cgi..........NOK 13# Failed test 13 in t/apreq/cgi.t at line 83 fail #4
# Failed test 14 in t/apreq/cgi.t at line 83 fail #5
t/apreq/cgi..........NOK 15# Failed test 15 in t/apreq/cgi.t at line 83 fail #6
# Failed test 16 in t/apreq/cgi.t at line 83 fail #7
t/apreq/cgi..........NOK 16# Failed test 17 in t/apreq/cgi.t at line 83 fail #8
t/apreq/cgi..........NOK 17# Failed test 18 in t/apreq/cgi.t at line 83 fail #9
t/apreq/cgi..........NOK 18# Failed test 19 in t/apreq/cgi.t at line 83 fail #10
t/apreq/cgi..........NOK 19# Failed test 20 in t/apreq/cgi.t at line 83 fail #11
t/apreq/cgi..........NOK 20# Failed test 21 in t/apreq/cgi.t at line 83 fail #12
t/apreq/cgi..........NOK 21# Failed test 22 in t/apreq/cgi.t at line 90
t/apreq/cgi..........NOK 22# Failed test 23 in t/apreq/cgi.t at line 93
t/apreq/cgi..........NOK 23# Failed test 24 in t/apreq/cgi.t at line 98
t/apreq/cgi..........NOK 24# Failed test 25 in t/apreq/cgi.t at line 103
t/apreq/cgi..........NOK 25# Failed test 26 in t/apreq/cgi.t at line 107
t/apreq/cgi..........NOK 26# Failed test 27 in t/apreq/cgi.t at line 116
t/apreq/cgi..........NOK 27# Failed test 28 in t/apreq/cgi.t at line 125
t/apreq/cgi..........NOK 28# Failed test 29 in t/apreq/cgi.t at line 135
t/apreq/cgi..........NOK 29# Failed test 30 in t/apreq/cgi.t at line 146
t/apreq/cgi..........NOK 30# Failed test 31 in t/apreq/cgi.t at line 155
t/apreq/cgi..........NOK 31# Failed test 32 in t/apreq/cgi.t at line 190
t/apreq/cgi..........NOK 32# Failed test 33 in t/apreq/cgi.t at line 190 fail #2
t/apreq/cgi..........NOK 33# Failed test 34 in t/apreq/cgi.t at line 190 fail #3
t/apreq/cgi..........NOK 34# Failed test 35 in t/apreq/cgi.t at line 190 fail #4
t/apreq/cgi..........NOK 35# Failed test 36 in t/apreq/cgi.t at line 190 fail #5
t/apreq/cgi..........NOK 36# Failed test 37 in t/apreq/cgi.t at line 190 fail #6
t/apreq/cgi..........NOK 37# Failed test 38 in t/apreq/cgi.t at line 190 fail #7
t/apreq/cgi..........NOK 38# Failed test 39 in t/apreq/cgi.t at line 190 fail #8
t/apreq/cgi..........NOK 39# Failed test 40 in t/apreq/cgi.t at line 190 fail #9
t/apreq/cgi..........NOK 40# Failed test 41 in t/apreq/cgi.t at line 190 fail #10
t/apreq/cgi..........FAILED tests 1-41
        Failed 41/41 tests, 0.00% okay
t/apreq/cookie.......ok
t/apreq/inherit......ok
t/apreq/request......ok
t/apreq/upload.......ok
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/apreq/cgi.t               41   41 100.00%  1-41
Failed 1/6 test scripts, 83.33% okay. 41/111 subtests failed, 63.06% okay.
[warning] server localhost.localdomain:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)
make[1]: *** [run_tests] Error 1
make[1]: Leaving directory `/Home/home2/sabol/work/httpd-apreq-2/glue/perl'
make: *** [perl_test] Error 2

Any ideas?

Re: "make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

Posted by "Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov>.
Previously, I wrote:
> I'm trying to build my just checked out copy of httpd-apreq-2. using Perl
> 5.8.6, Apache 2.0.52, mod_perl-2.0.0-RC4, libtool 1.4.2, autoconf 2.59, on
> Red Hat Linux 7.3. Maybe my libtool or autoconf is out of date? But buildconf
> didn't say so....

Anyone? I presume there are others here who can successfuly "make test" with
apreq2 trunk on Linux? If so, as a reference point, could you *please* tell
which version of libtool, autoconf, and automake you are using that you know
works? Thanks. I'm willing to upgrade my libtool and/or autoconf and/or
automake installations to see if I can isolate the cause of the "make test"
failures...

Re: "make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

Posted by "Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov>.
> I'm trying to build my just checked out copy of httpd-apreq-2. using Perl
> 5.8.6, Apache 2.0.52, mod_perl-2.0.0-RC4, libtool 1.4.2, autoconf 2.59, on
> Red Hat Linux 7.3. Maybe my libtool or autoconf is out of date? But buildconf
> didn't say so....

FWIW, even though "make test" failed the t/apreq/cgi tests, once installed,
it seems to work with Mason. :-)

Re: "make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov> writes:

[...]

> In an attempt to find the minimum required version, I upgraded
> libtool from 1.4.2 to 1.4.3 (instead of the latest version) and
> "make test" works fine with libtool 1.4.3.

Thanks, applied.

-- 
Joe Schaefer


Re: "make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

Posted by "Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov>.
>> IIRC the prereqs we list for the auto|libtool stuff
>> are the minimum versions I've tested debian against 
>> at some point.  If you can find newer versions for
>> RedHat 7.3 that actually work for you, let us know 
>> and we should be able to bump the prereqs accordingly.
>
> Yeah, I'll try upgrading libtool and report back.
>
> FYI, the version of libtool (1.4.2) that I'm using is from /usr/bin, so this
> presumably should affect all Red Hat 7.3 users....

In an attempt to find the minimum required version, I upgraded libtool from
1.4.2 to 1.4.3 (instead of the latest version) and "make test" works fine
with libtool 1.4.3. Technically, you can "make install" with libtool 1.4.2,
but you can't "make test". I'm not sure if that's grounds for officially
making libtool 1.4.3 the minimum required version for buildconf or not? I
would say yes. Here's a trivial patch:

Index: build/version_check.pl
===================================================================
--- build/version_check.pl      (revision 151824)
+++ build/version_check.pl      (working copy)
@@ -42,7 +42,7 @@
 }
 
 my %svn = (
-                libtool => { version => "1.4.2",   test => \&gnu_version },
+                libtool => { version => "1.4.3",   test => \&gnu_version },
                autoconf => { version => "2.53",    test => \&gnu_version },
                automake => { version => "1.4.0",   test => \&gnu_version },
                 doxygen => { version => "1.2",     test => \&gnu_version },

Re: "make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

Posted by "Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov>.
>>> ls env/t/.libs/
>> env/t/.libs:
>> mod_apreq*     mod_apreq.a    mod_apreq.la&  mod_apreq.lai  test_cgi*

Joe Schaefer writes:
> Looks to me like a libtool issue on your box;  for 
> some reason the usual "mod_apreq.so" is being 
> created as "mod_apreq" (does it wind up getting 
> installed as mod_apreq.so?).

Yeah, it got installed just fine.

% ls -l /usr/wwwserver/apache/modules
total 1572
-rw-r--r--    1 root root          8440 Jan 31 10:56 httpd.exp
-rwxr-xr-x    1 root root        183414 Feb  2 16:46 mod_apreq.so*
-rwxr-xr-x    1 root root       1404374 Jan 31 16:29 mod_perl.so*

> I'm sure the cgi tests are failing for the same reason.

Yup! I went into env/t/.libs and made a sym link from mod_apreq to
mod_apreq.so. "make test" worked fine then.

> IIRC the prereqs we list for the auto|libtool stuff
> are the minimum versions I've tested debian against 
> at some point.  If you can find newer versions for
> RedHat 7.3 that actually work for you, let us know 
> and we should be able to bump the prereqs accordingly.

Yeah, I'll try upgrading libtool and report back.

FYI, the version of libtool (1.4.2) that I'm using is from /usr/bin, so this
presumably should affect all Red Hat 7.3 users....

Thanks,
Ed

Re: "make test" fails: missing mod_apreq.so and problems in t/apreq/cgi

Posted by Joe Schaefer <jo...@sunstarsys.com>.
"Edward J. Sabol" <sa...@alderaan.gsfc.nasa.gov> writes:


[...]

>> ls env/t/.libs/
> env/t/.libs:
> mod_apreq*     mod_apreq.a    mod_apreq.la&  mod_apreq.lai  test_cgi*

Looks to me like a libtool issue on your box;  for 
some reason the usual "mod_apreq.so" is being 
created as "mod_apreq" (does it wind up getting 
installed as mod_apreq.so?). I'm sure the cgi 
tests are failing for the same reason.

IIRC the prereqs we list for the auto|libtool stuff
are the minimum versions I've tested debian against 
at some point.  If you can find newer versions for
RedHat 7.3 that actually work for you, let us know 
and we should be able to bump the prereqs accordingly.

-- 
Joe Schaefer