perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darryl Miles <darryl-mailingli...@netbauds.net>
Subject MP2.0.2 + HTTPD 2.2.0 Linux test failures (libaprutil-1.so.0: cannot open shared object file)
Date Thu, 04 May 2006 12:55:01 GMT

I am auditing upgrading my development systems for HTTP 2.2.0 usage and 
thought I should bring your attention the failed test cases.  The host 
linux system does not have any apache 2.2.x installation and no system 
libaprutil-1 library, it does have a libaprutil-0 system library.  I do 
not think it is necessary to have to configure /etc/ld.so.conf to add 
the custom apache build location in order for ld.so to find the library.

I believe the problem can easily be corrected by instructing the test 
harness where to find and load the libaprutil-1.so.0 library from, as 
this library is installed within the standard apache2 file layout 
location of my customer apache 2.2 build.  So I think that the mod_perl2 
should as part of its 'make test' check that APR can be loaded and 
resolve the filesystem path and force the best candidate library to be 
loaded during the relevant tests.

Since the APR version and build is fairly tightly coupled with the HTTPD 
then I would expect my usage case to be the 'ideal' installation so even 
if I had a system wide libaprutil-1 library it would not get picked up, 
since I have the ideal instance under the apache2 file layout.

My HTTPD was configured with a prefix=/opt/apache2_prefork.


I configured MP2 with:

$ perl Makefile.PL MP_APXS=/opt/apache2_prefork/bin/apxs 
MP_APR_CONFIG=/opt/apache2_prefork/bin/apr-1-config


The basic error is with loading libaprutil-1.so.0 which I have as a file

$ make test
...SNIP...

t/apr-ext/base64........................Can't load '/data/testing/mod_perl-2.0.2/blib/arch/auto/APR/APR.so'
for module APR: libaprutil-1.so.0: cannot open shared object file: No such file or directory
at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
 at /data/testing/mod_perl-2.0.2/blib/lib/APR/Base64.pm line 23
Compilation failed in require at /data/testing/mod_perl-2.0.2/blib/lib/APR/Base64.pm line
23.
BEGIN failed--compilation aborted at /data/testing/mod_perl-2.0.2/blib/lib/APR/Base64.pm line
23.
Compilation failed in require at /data/testing/mod_perl-2.0.2/t/lib/TestAPRlib/base64.pm line
11.
BEGIN failed--compilation aborted at /data/testing/mod_perl-2.0.2/t/lib/TestAPRlib/base64.pm
line 11.
Compilation failed in require at t/apr-ext/base64.t line 7.
BEGIN failed--compilation aborted at t/apr-ext/base64.t line 7.
t/apr-ext/base64........................dubious
        Test returned status 255 (wstat 65280, 0xff00)


# ls -l /opt/apache2_prefork/lib/
total 1728
-rw-r--r--  1 root root   7656 May  4 02:25 apr.exp
-rw-r--r--  1 root root   3907 May  4 02:25 aprutil.exp
-rw-r--r--  1 root root 631184 May  4 02:25 libapr-1.a
-rwxr-xr-x  1 root root    844 May  4 02:25 libapr-1.la
lrwxrwxrwx  1 root root     17 May  4 02:25 libapr-1.so -> libapr-1.so.0.2.2
lrwxrwxrwx  1 root root     17 May  4 02:25 libapr-1.so.0 -> libapr-1.so.0.2.2
-rwxr-xr-x  1 root root 414904 May  4 02:25 libapr-1.so.0.2.2
-rw-r--r--  1 root root 401746 May  4 02:25 libaprutil-1.a
-rwxr-xr-x  1 root root    972 May  4 02:25 libaprutil-1.la
lrwxrwxrwx  1 root root     21 May  4 02:25 libaprutil-1.so -> libaprutil-1.so.0.2.2
lrwxrwxrwx  1 root root     21 May  4 02:25 libaprutil-1.so.0 -> libaprutil-1.so.0.2.2
-rwxr-xr-x  1 root root 269329 May  4 02:25 libaprutil-1.so.0.2.2
drwxr-xr-x  2 root root   4096 May  4 02:25 pkgconfig


Failure summary, all of these AFAICS are the same problem.

Failed Test             Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/apr-ext/base64.t       255 65280    ??   ??       %  ??
t/apr-ext/brigade.t      255 65280    ??   ??       %  ??
t/apr-ext/bucket.t       255 65280    ??   ??       %  ??
t/apr-ext/date.t         255 65280    ??   ??       %  ??
t/apr-ext/error.t        255 65280    ??   ??       %  ??
t/apr-ext/finfo.t        255 65280    ??   ??       %  ??
t/apr-ext/os.t           255 65280    ??   ??       %  ??
t/apr-ext/pool.t         255 65280    ??   ??       %  ??
t/apr-ext/status.t       255 65280    ??   ??       %  ??
t/apr-ext/string.t       255 65280    ??   ??       %  ??
t/apr-ext/table.t        255 65280    ??   ??       %  ??
t/apr-ext/threadmutex.t  255 65280    ??   ??       %  ??
t/apr-ext/uri.t          255 65280    ??   ??       %  ??
t/apr-ext/util.t         255 65280    ??   ??       %  ??
t/apr-ext/uuid.t         255 65280    ??   ??       %  ??
t/apr/constants.t        255 65280    ??   ??       %  ??
10 tests skipped.
Failed 16/231 test scripts, 93.07% okay. 0/2208 subtests failed, 100.00% okay.


Darryl



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message