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 de...@asianet.co.th on 2007/05/03 06:57:20 UTC

Test fail on AIX 5.3

libapreq : 2.08
Apache : 2.0.53
Gcc : powerpc-ibm-aix5.2.0.0-gcc-3.3.2  or powerpc-ibm-aix5.3.0.0-gcc-4.1.1

Configure : Ok
Compilation : Ok

Tests: doesnt work (see below for detail)
Installation : Ok
Running :  apachectl or httpd core dump imediatly.


Configure :
./configure --with-apache2-apxs=/appli/apache/bin/apxs

checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... powerpc-ibm-aix5.3.0.0
checking host system type... powerpc-ibm-aix5.3.0.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 8192
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC...
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... aix5.3.0.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking for g++ option to produce PIC...
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... aix5.3.0.0 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC...
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... aix5.3.0.0 ld.so
checking how to hardcode library paths into programs... immediate
checking for ranlib... (cached) ranlib
checking for a BSD-compatible install... ./install-sh -c
checking whether ln -s works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for /appli/apache.2.052/bin/apr-config... yes
checking for /appli/apache.2.052/bin/apu-config... yes
Can't locate Apache/Test.pm in @INC (@INC contains: 
/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi 
/usr/opt/perl5/lib/site_perl/5.8.2 /usr/opt/perl5/lib/site_perl .) at 
build/version_check.pl line 27.
  setting APR_INCLUDES to " -I/appli/apache.2.052/include "
  setting APR_LTFLAGS to " /appli/apache.2.052/lib/libapr-0.la"
  adding "/appli/apache.2.052/lib/libaprutil-0.la" to APR_LTFLAGS
  setting APR_LIBS to " -lexpat -liconv"
  adding "-lm" to APR_LIBS
  adding "-lnsl" to APR_LIBS
  setting APR_LDFLAGS to " -L/appli/apache.2.052/lib -laprutil-0 
-L/appli/apache.2.052/lib"
  adding "-lapr-0" to APR_LDFLAGS
  adding "-Wl,-brtl" to APR_LDFLAGS
  adding "-fno-strict-aliasing" to CFLAGS
  setting CPPFLAGS to " -U__STR__ -D_THREAD_SAFE -D_USE_IRS"
libapreq2 Version: 2.6.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating library/Makefile
config.status: creating library/t/Makefile
config.status: creating module/Makefile
config.status: creating module/apache2/Makefile
config.status: creating glue/Makefile
config.status: creating build/doxygen.conf
config.status: creating include/groups.dox
config.status: creating apreq2-config
config.status: creating include/apreq_config.h
config.status: executing depfiles commands

Make runs ok ....

Make test :
perl -MTest::Harness -e 'runtests(@ARGV)' version.t cookie.t params.t 
parsers.t error.t util.t
version....ok                                                                

cookie.....ok                                                                

params.....dubious                                                           

        Test returned status -1 (wstat 139, 0x8b)
        test program seems to have generated a core
parsers....dubious                                                           

        Test returned status -1 (wstat 139, 0x8b)
        test program seems to have generated a core
error......ok                                                                

util.......FAILED tests 
36-37                                               
        Failed 2/89 tests, 97.75% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
params.t      -1   139    ??   ??       %  ??
parsers.t     -1   139    ??   ??       %  ??
util.t                    89    2   2.25%  36-37
Failed 3/6 test scripts, 50.00% okay. 2/138 subtests failed, 98.55% okay.




Re: Test fail on AIX 5.3

Posted by Joe Schaefer <jo...@sunstarsys.com>.
dektidty@asianet.co.th writes:

> I have experienced a bit more with the tests in library/t and for now
> I have found something weird in util.c
>
> in test_charset_divine it seems that expect should be defined as char
> expect[7] as apreq_decode use url_decode which seems to add an ending
> 0 to the destination char *. This 0 when expect is defined as char
> expect[6] seems to kill char src3[] which becomes empty and then the
> test fails. Im not 100% sure about that but it seems there is
> something weird here. If any dev could confirm and check it. I ll try
> now to look why library/t/params and library/t/parsers crash.

I concur with your analysis- great job!  I'll try to patch the source
soonish.

-- 
Joe Schaefer


Re: Test fail on AIX 5.3

Posted by de...@asianet.co.th.
Jonathan Vanasco wrote:
>
> On May 3, 2007, at 12:57 AM, dektidty@asianet.co.th wrote:
>> util.......FAILED tests 
>> 36-37                                                      Failed 
>> 2/89 tests, 97.75% okay
>> Failed Test Stat Wstat Total Fail  Failed  List of Failed
>
> interesting -- thats where OSX fails too.
>
> Joe wrote some suggestions about 1-2 weeks ago to try and get my os to 
> compile that correctly -- it didn't work for me, but it might work for 
> you.
>
>
Hi,

I have experienced a bit more with the tests in library/t and for now I 
have found something weird in util.c

in test_charset_divine it seems that expect should be defined as char 
expect[7] as apreq_decode use url_decode which seems to add an ending 0 
to the destination char *. This 0 when expect is defined as char 
expect[6] seems to kill char src3[] which becomes empty and then the 
test fails.
Im not 100% sure about that but it seems there is something weird here. 
If any dev could confirm and check it. I ll try now to look why 
library/t/params and library/t/parsers crash.

Thanks.

Re: Test fail on AIX 5.3

Posted by Jonathan Vanasco <mo...@2xlp.com>.
On May 3, 2007, at 12:57 AM, dektidty@asianet.co.th wrote:
> util.......FAILED tests  
> 36-37                                                      Failed  
> 2/89 tests, 97.75% okay
> Failed Test Stat Wstat Total Fail  Failed  List of Failed

interesting -- thats where OSX fails too.

Joe wrote some suggestions about 1-2 weeks ago to try and get my os  
to compile that correctly -- it didn't work for me, but it might work  
for you.