perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Bozrikov <b...@fgm.com.cy>
Subject Re[3]: mod_perl2 1.99_14 and httpd 2.0.49 - gmake test fails (cannot start apache)
Date Thu, 29 Jul 2004 07:24:38 GMT
Just applied all 'latest and greatest' patches, everything builds OK,
while same result during tests:

[quote]
powerpc bozy: /home/bozy/src/modperl-2.0 $ t/TEST -verbose -debug -apxs
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl /home/bozy/src/modperl-2.0/t/TEST -verbose -debug
-apxs
GNU gdb 6.1
Copyright 2004 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-aix5.1.0.0"...
[Thu Jul 29 10:05:05 2004] [info] 27 Apache:: modules loaded
[Thu Jul 29 10:05:05 2004] [info] 9 APR:: modules loaded
[Thu Jul 29 10:05:05 2004] [info] base server + 21 vhosts ready to run tests

Program exited with code 01.
(gdb) q
powerpc bozy: /home/bozy/src/modperl-2.0 $ cat t/logs/error_log 
END in modperl_extra.pl, pid=18076
[Thu Jul 29 10:12:58 2004] [info] 27 Apache:: modules loaded
[Thu Jul 29 10:12:58 2004] [info] 9 APR:: modules loaded
[Thu Jul 29 10:12:58 2004] [info] base server + 6 vhosts ready to run tests
[Thu Jul 29 10:12:58 2004] [error] Can't locate TestModperl__request_rec_Key_set_in_Base in
@INC (@INC contains: /home/bozy/src/modperl-2.0/t/lib /home/bozy/src/modperl-2.0/Apache-Test/lib
/home/bozy/src/modperl-2.0/t/response /home/bozy/src/modperl-2.0/t/protocol /home/bozy/src/modperl-2.0/t/preconnection
/home/bozy/src/modperl-2.0/t/hooks /home/bozy/src/modperl-2.0/t/filter /home/bozy/src/modperl-2.0/t
/home/bozy/src/modperl-2.0/t/htdocs/testdirective/main /home/bozy/src/modperl-2.0/t/htdocs/testdirective/perlmodule-vh
/home/bozy/src/modperl-2.0/t/ /home/bozy/src/modperl-2.0/t/lib/perl /home/bozy/src/modperl-2.0/blib/lib
/home/bozy/src/modperl-2.0/blib/arch /usr/local/lib/perl5/5.8.4/aix /usr/local/lib/perl5/5.8.4
/usr/local/lib/perl5/site_perl/5.8.4/aix /usr/local/lib/perl5/site_perl/5.8.4 /usr/local/lib/perl5/site_perl)
at (eval 15) line 1.\n
[Thu Jul 29 10:12:58 2004] [error] Can't load Perl file: TestModperl__request_rec_Key_set_in_Base
for server :8529, exiting...
[Thu Jul 29 10:12:58 2004] [error] $s->add_config() has failed: init mod_perl vhost failed
during global destruction.\nCompilation failed in require at /home/bozy/src/modperl-2.0/t/conf/modperl_startup.pl
line 17 during global destruction.\n\t...propagated at (null) line 94.\nBEGIN failed--compilation
aborted at /home/bozy/src/modperl-2.0/t/conf/modperl_startup.pl line 20.\nCompilation failed
in require at (eval 2) line 1.\n
[Thu Jul 29 10:12:58 2004] [error] Can't load Perl file: /home/bozy/src/modperl-2.0/t/conf/modperl_startup.pl
for server localhost:8529, exiting...
[unquote]

Now, during build I've noticed that static version of mod_perl could be
built as well (LINKTYPE appeared during `make'). How this could be done?
I just want to make sure it's not a compiler problem, cause if static
build test fails - then most probably incorrect code is generated.

Oh, and I've ordered IBM stock C compiler (Visual Age C 6.0) but that won't
be available earlier than in 3 weeks.

In the meantime I've made a parallel build on another machine with gcc 2.9
(supplied by IBM as part of linux compatibility package) with Apache
2.0.50 and perl 5.8.5 (these were latest stable versions) and got
somewhat different results, although in the same ServerRec*whatever
stuff :
[quote]
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-aix5.1.0.0"...
[Thu Jul 29 08:56:29 2004] [info] 27 Apache:: modules loaded
[Thu Jul 29 08:56:29 2004] [info] 9 APR:: modules loaded
[Thu Jul 29 08:56:29 2004] [info] base server + 21 vhosts ready to run tests

Program received signal SIGSEGV, Segmentation fault.
0xd2eb29f8 in XS_Apache__ServerRec_next (cv=0x2057ad2c) at ServerRec.xs:65519
65519   ServerRec.xs: No such file or directory.
(gdb) bt
#0  0xd2eb29f8 in XS_Apache__ServerRec_next (cv=0x2057ad2c) at ServerRec.xs:65519
#1  0xd2d58800 in Perl_pp_entersub ()
#2  0xd2dd47f8 in Perl_runops_standard ()
#3  0xd2d9a33c in S_call_body ()
#4  0xd2d99ff8 in Perl_call_sv ()
#5  0xd2d9e764 in S_call_list_body ()
#6  0xd2d9e350 in Perl_call_list ()
#7  0xd2d730f8 in Perl_newATTRSUB ()
#8  0xd2dc5038 in Perl_yyparse ()
#9  0xd2db91c4 in S_doeval ()
#10 0xd2dbaa7c in Perl_pp_require ()
#11 0xd2e2e034 in modperl_pp_require () at modperl_perl_pp.c:69
#12 0xd2dd47f8 in Perl_runops_standard ()
#13 0xd2d9a33c in S_call_body ()
#14 0xd2d9a538 in Perl_eval_sv ()
#15 0xd2d9aa54 in Perl_require_pv ()
#16 0xd2d1bb8c in modperl_require_file (pv=0x203c45f0 "/home/bozy/src/modperl-2.0/t/conf/modperl_startup.pl",

    logfailure=1) at modperl_util.c:45
#17 0xd2e0bba0 in modperl_config_apply_PerlRequire (s=0x2022b900, scfg=0x2027d860, perl=0x2025ad88,
p=0x20229b60)
    at modperl_config.c:466
#18 0xd2e1b540 in modperl_startup (s=0x2022b900, p=0x20229b60) at mod_perl.c:276
#19 0xd2e1b2a0 in modperl_startup (s=0x2022b900, p=0x20229b60) at mod_perl.c:179
#20 0xd2e1c4b0 in modperl_init (base_server=0x2022b900, p=0x20229b60) at mod_perl.c:407
#21 0xd2e1c790 in modperl_hook_init (pconf=0x20229b60, plog=0x0, ptemp=0x0, s=0x2022b900)
at mod_perl.c:542
#22 0xd2e1c81c in modperl_run () at mod_perl.c:553
#23 0xd2e1fa30 in modperl_cmd_load_module (parms=0x2ff22870, mconfig=0x2027df38, 
    arg=0x203a87c8 "TestDirective::perlloadmodule") at modperl_cmd.c:632
#24 0x1001087c in invoke_cmd ()
#25 0x100120fc in ap_walk_config_sub ()
#26 0x10012210 in ap_walk_config ()
#27 0x10013864 in ap_process_config_tree ()
#28 0x1000168c in main ()
#29 0x100001dc in __start ()
(gdb) q

[unquote]


regards

Alexey

RK> On Wed, 28 Jul 2004, Alexey Bozrikov wrote:

>> I did apply the patch, got following results during gmake:
>>
>> [quote]
>> cd "src/modules/perl" && gmake -f Makefile.modperl
>> gmake[1]: Entering directory
>> `/home/bozy/src/modperl-2.0/src/modules/perl'
>> gmake[1]: Nothing to be done for `all'.
>> gmake[1]: Leaving directory
>> `/home/bozy/src/modperl-2.0/src/modules/perl'
>> cd "xs/APR/libaprext" && gmake all LIB="" LIBPERL_A="libperl.a"
>> LINKTYPE="dynamic" PREFIX="" OPTIMIZE="" PASTHRU_DEFINE=""
>> PASTHRU_INC="" PERL="/usr/local/bin/perl" DEFINE="-DMP_HAVE_APR_LIBS"
>> /bin/sh: xs/APR/libaprext:  not found.
>> gmake: *** [aprext] Error 1
>> [unquote]
>>
>> seems to be a typo somewhere, should be xs/APR/aprext instead of
>> xs/APR/libaprext
>>
>> Regards
>>
>> Alexey

RK> Sorry about that - this should be fixed at
RK>   http://www.apache.org/~randyk/mp_aix.patch
RK> This time I tested it on my linux box (by redefining some of
RK> the constants to mimic AIX), and it worked OK, so hopefully
RK> this is close ...





** Never go into a hug off balance.


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message