-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
I had the following problems building mod_perl 1.99_9 on AIX 4.3.3: A. The download from perl.apache.org/download/ was named "mod_perl-2.0-current.tar.tar". I think it should have been *.gz. B. While running make, there was a conflict in the definition of "__attribute__" between .../perl5/5.8.0/aix/CORE/config.h line 41 and .../apache2/include/apr.h line 98. I commented out the definition in config.h to get it to compile. C. Also while running make, there was a syntax error in modperl_perl_global.c at line 317. Apparanantly, the AIX compiler (xlc_r) doesn't like the trailing comma at the end of the enum list. D. The "make test" went south from there. The output is appended at the end of this email. BTW, I upgraded the compiler yesterday from IBM's latest. The Perl and Apache builds were from scratch using the upgraded complier. I'd appreciate any help. Let me know what I can do. Thanks! Denny 2. Used Components and their Configuration: *** using /usr/local/mod_perl-1.99_09/t/../lib/Apache/BuildConfig.pm *** Makefile.PL options: MP_AP_PREFIX => /usr/local/apache2 MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 MP_USE_STATIC => 1 *** /usr/local/apache2/bin/httpd -V Server version: Apache/2.0.46 Server built: Jul 1 2003 08:26:42 Server's Module Magic Number: 20020903:3 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" *** /usr/local/mw/bin/perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=aix, osvers=4.3.3.0, archname=aix uname='aix sodo 3 4 000157df4c00 ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='xlc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -I/usr/loc al/include -q32 -D_LARGE_FILES -qlonglong', optimize='-O', cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -I/usr/local/include' ccversion='5.0.2.7', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='ld', ldflags =' -brtl -L/usr/local/lib -b32' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lbind -lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW perllibs=-lbind -lnsl -ldl -lld -lm -lc -lcrypt -lbsd -lPW libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -bE:/usr/local/mw/lib/perl5/5.8.0/aix/CORE/perl.exp' cccdlflags=' ', lddlflags=' -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lc -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under aix Compiled at Jun 30 2003 14:31:41 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /usr/local/mw/lib/perl5/5.8.0/aix /usr/local/mw/lib/perl5/5.8.0 /usr/local/mw/lib/perl5/site_perl/5.8.0/aix /usr/local/mw/lib/perl5/site_perl/5.8.0 /usr/local/mw/lib/perl5/site_perl/5.6.1 /usr/local/mw/lib/perl5/site_perl . 3. This is the core dump trace: (if you get a core dump): [CORE TRACE COMES HERE] This report was generated by ./REPORT on Tue Jul 1 17:42:07 2003 GMT. -------------8<---------- End Bug Report --------------8<---------- [EMAIL PROTECTED]> make test cd "src/modules/perl" && make -f Makefile.modperl /usr/local/mod_perl-1.99_09/src/modules/perl Target "all" is up to date. /usr/local/mod_perl-1.99_09/Apache-Test /usr/local/mod_perl-1.99_09/ModPerl-Registry /usr/local/mod_perl-1.99_09/WrapXS /usr/local/mod_perl-1.99_09/WrapXS/APR /usr/local/mod_perl-1.99_09/WrapXS/APR/Base64 /usr/local/mod_perl-1.99_09/WrapXS/APR/Brigade /usr/local/mod_perl-1.99_09/WrapXS/APR/Bucket /usr/local/mod_perl-1.99_09/WrapXS/APR/Date /usr/local/mod_perl-1.99_09/WrapXS/APR/NetLib /usr/local/mod_perl-1.99_09/WrapXS/APR/OS /usr/local/mod_perl-1.99_09/WrapXS/APR/Pool /usr/local/mod_perl-1.99_09/WrapXS/APR/SockAddr /usr/local/mod_perl-1.99_09/WrapXS/APR/Socket /usr/local/mod_perl-1.99_09/WrapXS/APR/String /usr/local/mod_perl-1.99_09/WrapXS/APR/Table /usr/local/mod_perl-1.99_09/WrapXS/APR/ThreadMutex /usr/local/mod_perl-1.99_09/WrapXS/APR/URI /usr/local/mod_perl-1.99_09/WrapXS/APR/UUID /usr/local/mod_perl-1.99_09/WrapXS/APR/Util /usr/local/mod_perl-1.99_09/WrapXS/Apache /usr/local/mod_perl-1.99_09/WrapXS/Apache/Access /usr/local/mod_perl-1.99_09/WrapXS/Apache/CmdParms /usr/local/mod_perl-1.99_09/WrapXS/Apache/Command /usr/local/mod_perl-1.99_09/WrapXS/Apache/Connection /usr/local/mod_perl-1.99_09/WrapXS/Apache/Directive /usr/local/mod_perl-1.99_09/WrapXS/Apache/Filter /usr/local/mod_perl-1.99_09/WrapXS/Apache/FilterRec /usr/local/mod_perl-1.99_09/WrapXS/Apache/HookRun /usr/local/mod_perl-1.99_09/WrapXS/Apache/Log /usr/local/mod_perl-1.99_09/WrapXS/Apache/Module /usr/local/mod_perl-1.99_09/WrapXS/Apache/Process /usr/local/mod_perl-1.99_09/WrapXS/Apache/RequestIO /usr/local/mod_perl-1.99_09/WrapXS/Apache/RequestRec /usr/local/mod_perl-1.99_09/WrapXS/Apache/RequestUtil /usr/local/mod_perl-1.99_09/WrapXS/Apache/Response /usr/local/mod_perl-1.99_09/WrapXS/Apache/Server /usr/local/mod_perl-1.99_09/WrapXS/Apache/ServerUtil /usr/local/mod_perl-1.99_09/WrapXS/Apache/SubProcess /usr/local/mod_perl-1.99_09/WrapXS/Apache/SubRequest /usr/local/mod_perl-1.99_09/WrapXS/Apache/URI /usr/local/mod_perl-1.99_09/WrapXS/Apache/Util /usr/local/mod_perl-1.99_09/WrapXS/ModPerl /usr/local/mod_perl-1.99_09/WrapXS/ModPerl/Global /usr/local/mod_perl-1.99_09/WrapXS/ModPerl/Util /usr/local/mod_perl-1.99_09/xs /usr/local/mod_perl-1.99_09/xs/APR /usr/local/mod_perl-1.99_09/xs/APR/APR /usr/local/mod_perl-1.99_09/xs/APR/Const /usr/local/mod_perl-1.99_09/xs/APR/PerlIO /usr/local/mod_perl-1.99_09/xs/Apache /usr/local/mod_perl-1.99_09/xs/Apache/Const /usr/local/mod_perl-1.99_09/xs/ModPerl /usr/local/mod_perl-1.99_09/xs/ModPerl/Const /usr/bin/perl -Iblib/arch -Iblib/lib t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean consider removing an old /usr/local/mod_perl-1.99_09/t/core file before running tests an old core file has been found: /usr/local/mod_perl-1.99_09/t/core APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= /usr/bin/perl -Iblib/arch -Iblib/lib t/TEST -verbose=0 *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -verbose=0 consider removing an old /usr/local/mod_perl-1.99_09/t/core file before running tests *** root mode: changing the fs ownership to 'nobody' (4294967294:4294967294) /usr/local/apache2/bin/httpd -d /usr/local/mod_perl-1.99_09/t -f /usr/local/mod_perl-1.99_09/t/conf/httpd.conf -DAPACHE2 using Apache/2.0.46 (prefork MPM) waiting for server to start: ..[Tue Jul 01 11:05:08 2003] [info] 19 Apache:: modules loaded [Tue Jul 01 11:05:08 2003] [info] 3 APR:: modules loaded [Tue Jul 01 11:05:08 2003] [info] base server + 8 vhosts ready to run tests .... waiting for server to start: ok (waited 5 secs) server localhost:8529 started server localhost:8530 listening (TestProtocol::echo_filter) server localhost:8531 listening (TestProtocol::echo) server localhost:8532 listening (TestPreConnection::note) server localhost:8533 listening (TestFilter::in_str_msg) server localhost:8534 listening (TestFilter__both_str_con_add) server localhost:8535 listening (TestFilter::in_bbs_msg) server localhost:8536 listening (TestDirective::perlmodule) server localhost:8537 listening (TestDirective::perlrequire) server localhost:8538 listening (TestDirective::perlloadmodule4) server localhost:8539 listening (TestDirective::perlloadmodule5) server localhost:8540 listening (TestDirective::perlloadmodule3) server localhost:8541 listening (TestDirective::perlloadmodule6) apache/add_config..............ok apache/cgihandler..............ok apache/conftree................ok apache/constants...............ok apache/post....................ok apache/read....................ok apache/scanhdrs................ok apache/scanhdrs2...............dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-5 Failed 5/5 tests, 0.00% okay apache/send_cgi_header.........ok apache/subprocess..............skipped all skipped: cannot find module 'APR::PerlIO' apache/write...................ok api/access.....................ok api/aplog......................ok api/conn_rec...................ok api/lookup_uri.................ok api/lookup_uri2................ok api/module.....................ok api/r_subclass.................ok api/request_rec................ok api/response...................ok api/rutil......................ok api/sendfile...................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED test 3 Failed 1/3 tests, 66.67% okay api/server_rec.................ok api/server_util................ok api/uri........................ok apr/base64.....................ok apr/constants..................ok apr/date.......................ok apr/netlib.....................ok apr/os.........................ok apr/pool.......................ok apr/socket.....................ok apr/string.....................ok apr/table......................ok apr/threadmutex................skipped all skipped: Perl was not built with 'ithreads' enabled apr/util.......................ok apr/uuid.......................ok compat/apache..................ok compat/apache_file.............ok compat/apache_table............ok compat/apache_uri..............ok compat/apache_util.............ok compat/conn_authen.............dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay compat/request.................ok compat/request_body............ok compat/send_fd.................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED test 3 Failed 1/3 tests, 66.67% okay directive/env..................ok directive/perl.................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay directive/perldo...............ok directive/perlloadmodule.......ok directive/perlloadmodule2......ok directive/perlloadmodule3......ok directive/perlloadmodule4......ok directive/perlloadmodule5......ok directive/perlloadmodule6......ok directive/perlmodule...........ok directive/perlrequire..........ok directive/pod..................ok directive/setupenv.............ok error/api......................ok error/runtime..................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay error/syntax...................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay filter/both_str_con_add........ok filter/both_str_req_add........ok filter/in_bbs_body.............ok filter/in_bbs_msg..............ok filter/in_init_basic...........ok filter/in_str_consume..........ok filter/in_str_declined.........ok filter/in_str_lc...............ok filter/in_str_msg..............ok filter/in_str_sandwich.........ok filter/out_bbs_basic...........ok filter/out_bbs_ctx.............ok filter/out_init_basic..........ok filter/out_str_api.............ok filter/out_str_ctx.............ok filter/out_str_declined........ok filter/out_str_lc..............ok filter/out_str_remove..........ok filter/out_str_req_eos.........ok filter/out_str_reverse.........ok hooks/access...................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay hooks/authen...................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay hooks/authz....................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay hooks/cleanup..................ok hooks/fixup....................ok hooks/headerparser.............ok hooks/init.....................ok hooks/push_handlers............ok hooks/stacked_handlers.........ok hooks/trans....................dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay modperl/current_callback.......ok modperl/dir_config.............ok modperl/endav..................ok modperl/env....................ok modperl/exit...................ok modperl/getc...................ok modperl/method.................ok modperl/methodname.............ok modperl/methodobj..............ok modperl/perl...................ok modperl/pnotes.................ok modperl/print..................ok modperl/printf.................ok modperl/readline...............ok modperl/request_rec_tie_api....ok 1/3 unexpectedly succeeded modperl/sameinterp.............ok modperl/setauth................ok modperl/subenv.................ok modperl/taint..................ok modules/cgi....................ok modules/cgiupload..............ok modules/include................ok modules/include2...............dubious Test returned status -1 (wstat 139, 0x8b) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay preconnection/note.............ok protocol/echo..................ok protocol/echo_filter...........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------ ------- apache/scanhdrs2.t -1 139 5 5 100.00% 1-5 api/sendfile.t -1 139 3 1 33.33% 3 compat/conn_authen.t -1 139 1 1 100.00% 1 compat/send_fd.t -1 139 3 1 33.33% 3 directive/perl.t -1 139 4 4 100.00% 1-4 error/runtime.t -1 139 1 1 100.00% 1 error/syntax.t -1 139 1 1 100.00% 1 hooks/access.t -1 139 4 4 100.00% 1-4 hooks/authen.t -1 139 4 4 100.00% 1-4 hooks/authz.t -1 139 4 4 100.00% 1-4 hooks/trans.t -1 139 3 3 100.00% 1-3 modules/include2.t -1 139 4 4 100.00% 1-4 (1 subtest UNEXPECTEDLY SUCCEEDED), 2 tests skipped. *** server localhost:8529 shutdown !!! error running tests (please examine t/logs/error_log) !!! oh golly, server dumped core !!! for stacktrace, run: gdb /usr/local/apache2/bin/httpd -core /usr/local/mod_perl-1.99_09/t/core make: 1254-004 The error code from the last command is 1. [EMAIL PROTECTED]> cat error_log END in modperl_extra.pl, pid=27096 [Tue Jul 01 11:05:12 2003] [notice] Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 configured -- resuming normal operations [Tue Jul 01 11:05:12 2003] [info] Server built: Jul 1 2003 08:26:42 [Tue Jul 01 11:05:12 2003] [debug] prefork.c(1039): AcceptMutex: sysvsem (default: sysvsem) [Tue Jul 01 11:05:13 2003] [error] server reached MaxClients setting, consider raising the MaxClients setting [Tue Jul 01 11:05:40 2003] [info] [client 127.0.0.1] TestAPI::aplog test in progress [Tue Jul 01 11:05:40 2003] [debug] /usr/local/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(43): log_serror test ok [Tue Jul 01 11:05:40 2003] [debug] /usr/local/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(46): (20007)No time was provided and one was required.: log_serror test 2 ok [Tue Jul 01 11:05:40 2003] [debug] /usr/local/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(49): [client 127.0.0.1] (20007)No time wa s provided and one was required.: log_rerror test ok [Tue Jul 01 11:05:40 2003] [error] $r->log_error test ok [Tue Jul 01 11:05:40 2003] [error] $s->log_error test ok [Tue Jul 01 11:05:40 2003] [debug] /usr/local/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(63): TestAPI::aplog test done [Tue Jul 01 11:05:40 2003] [warn] ApacheApache->warn test ok [Tue Jul 01 11:05:40 2003] [warn] $s->warn test ok [Tue Jul 01 11:06:27 2003] [error] Apache::log_error test ok *** The following error entry is expected and it is harmless *** [Tue Jul 01 11:07:15 2003] [error] [client 127.0.0.1] Undefined subroutine &TestError::runtime::no_such_func called at /usr/local/mo d_perl-1.99_09/t/response/TestError/runtime.pm line 19. *** The following error entry is expected and it is harmless *** [Tue Jul 01 11:07:18 2003] [error] failed to resolve handler `TestError::syntax' [Tue Jul 01 11:07:18 2003] [error] [client 127.0.0.1] syntax error at /usr/local/mod_perl-1.99_09/t/response/TestError/syntax.pm lin e 22, near "\;" Compilation failed in require at (eval 120) line 3. [echo_filter] get_brigade: Error 0 *** The following error entry is expected and it is harmless *** [Tue Jul 01 11:08:20 2003] [error] [client 127.0.0.1] File does not exist: /usr/local/mod_perl-1.99_09/t/htdocs/nope *** The following error entry is expected and it is harmless *** [Tue Jul 01 11:08:54 2003] [error] [client 127.0.0.1] need AuthName: /TestModperl__setauth [Tue Jul 01 11:09:14 2003] [info] Child process pid=27098 is exiting [Tue Jul 01 11:09:14 2003] [info] removed PID file /usr/local/mod_perl-1.99_09/t/logs/httpd.pid (pid=14452) [Tue Jul 01 11:09:14 2003] [notice] caught SIGTERM, shutting down END in modperl_extra.pl, pid=14452 [EMAIL PROTECTED]> gdb /usr/local/apache2/bin/httpd -core /usr/local/mod_perl-1.99_09/t/core GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-ibm-aix4.3.3.0"... warning: core file may not match specified executable file. Core was generated by `perl'. Program terminated with signal 11, Segmentation fault. #0 0xd0bfb4d4 in boot_HTML__Parser () from /usr/local/mw/lib/perl5/site_perl/5.6.1/aix/auto/HTML/Parser/Parser.so (gdb) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]