RE: make errors with mod_perl-1.99_08 on aix 4.3.3 5.1
Thanks. Compiles ok now, but I'm having trouble with 'make test'. Here's the output: root%make test cd src/modules/perl make -f Makefile.modperl Target all is up to date. /usr/bin/perl -Iblib/arch -Iblib/lib t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= /usr/bin/perl -Iblib/arch -Iblib/lib t/TEST *** setting ulimit to allow core files ulimit -c unlimited; t/TEST *** root mode: changing the fs ownership to 'nobody' (4294967294:4294967294) /usr/local/apache/bin/httpd -d /tmp/modperl-2.0/t -f /tmp/modperl-2.0/t/conf/httpd.conf -DAPACHE2 using Apache/2.1.0-dev (prefork MPM) waiting for server to start: .Syntax error on line 12 of /tmp/modperl-2.0/t/conf/httpd.conf: Cannot load /tmp/modperl-2.0/src/modules/perl/mod_perl.so into server: .. waiting for server to start: giving up after 61 secs !!! server failed to start! (t/logs/error_log wasn't created, start the server in the debug mode) make: 1254-004 The error code from the last command is 1. I tried with Apache 2.0.43, got the above messages, so I got the most recent CVS version and still have the problem. %perl -V:ld -V:cc ld='ld'; cc='cc';with the cc being vac.C 4.4.0.3 I'm not sure where to go from here? -Darryl -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 2:50 AM To: Justin Derrick Cc: Priest, Darryl - BALTO; '[EMAIL PROTECTED]' Subject: Re: make errors with mod_perl-1.99_08 on aix 4.3.3 5.1 I've applied some fixes for mod_perl to build on aix. I could only test with aix 5.1 on powerpc. Please test that things work on other configurations. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com The information contained in this communication may be confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message and any copy of it from your computer system. Thank you. For more information please visit us at http://www.piperrudnick.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3 5.1
Priest, Darryl - BALTO wrote: Thanks. Compiles ok now, but I'm having trouble with 'make test'. [...] waiting for server to start: .Syntax error on line 12 of /tmp/modperl-2.0/t/conf/httpd.conf: Cannot load /tmp/modperl-2.0/src/modules/perl/mod_perl.so into server: [...] I tried with Apache 2.0.43, got the above messages, so I got the most recent CVS version and still have the problem. Too bad, I guess my solution of using -berok to ignore the linking errors at ld time and resolving everything at run-time doesn't work everywhere, so I probably have to go back to the drawing board and get the ld-time resolving working. However if somebody can give me an access to a fast aix machine, I'll be much more productive. The machine that I have an access to is a way too slow (takes an hour and longer to build mod_perl). Meanwhile, can you please test whether you have the same problem with Apache 2.0.45-tobe, which you can get with: % cvs login (The password is anoncvs, without the quotation marks) % cvs checkout -d httpd-2.0 -r APACHE_2_0_BRANCH httpd-2.0 % ./buildconf % ./configure ... since that's the version I have tested with. Also is do you have this problem on 4.3.3 and 5.1 or only one of these, I couldn't find which one you have referred to in this report. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3 5.1
I've applied some fixes for mod_perl to build on aix. I could only test with aix 5.1 on powerpc. Please test that things work on other configurations. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3
Hello, I've been following the thread on AIX4.3.3 and mod_perl1.99_08 from Darryl Priest. I've been trying to install the mod_perl and by following the thread I was able to get to the point below by touching ./src/modules/perl/mod_perl.exp. I wasn't able to find any mod_perl.exp that was generated before. Before the error though I run into a lot of warnings like: ld: 0711-415 WARNING:Symbol perl_alloc is already exported. and ld: 0711-224 WARNING: Duplicate symbol: PL_patchlevel I know these are only warnings but is there something that's not quite right when you see all of those? LD_RUN_PATH= ld -bhalt:4 -bM:SRE -bI:/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/perl.exp -bE:Base64.exp -bnoentry -lc -L/usr/local/lib Base64.o -o .../../../blib/arch/auto/APR/Base64/Base64.so ld: 0711-317 ERROR: Undefined symbol: .apr_base64_encode_len ld: 0711-317 ERROR: Undefined symbol: .apr_base64_decode_len ld: 0711-317 ERROR: Undefined symbol: .apr_base64_decode_binary ld: 0711-317 ERROR: Undefined symbol: .apr_base64_encode_binary ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. Thanks! Todd O'Dell
RE: make errors with mod_perl-1.99_08 on aix 4.3.3
I got the new CVS version applied the patch and I got a bit further, but it's still dying with: cd src/modules/perl make -f Makefile.modperl rm -f mod_perl.so ld -bhalt:4 -bM:SRE -bI:/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/perl.exp -bE:mod_perl.exp -bnoentry -lc -L/usr/local/libmod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo -bE:/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/perl.exp -brtl -L/usr/local/lib -b32 /usr/local/perl5.8.0/lib/5.8.0/aix/auto/DynaLoader/DynaLoader.a -L/usr/local/perl5.8.0/lib/5.8.0/aix/CORE -lperl -lbind -lnsl -ldl -lld -lm -lc -lcrypt -lbsd -lPW -o mod_perl.so ld: 0706-004 Cannot find or read export file: mod_perl.exp ld:accessx(): A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 255. To get that far, in the src/modules/perl/Makefile.modperl I added definitions for BASEEXT and PERL_INC, as copied from modperl-2.0/Makefile, as shown below, since they were missing. BASEEXT = mod_perl PERL_INC = /usr/local/perl5.8.0/lib/5.8.0/aix/CORE -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 7:24 PM Cc: Priest, Darryl - BALTO; '[EMAIL PROTECTED]' Subject: Re: make errors with mod_perl-1.99_08 on aix 4.3.3 Stas Bekman wrote: Priest, Darryl - BALTO wrote: Thanks for the quick response, additional information as requested is below. Cool, please let me know whether this patch solves the problem (you need to apply the patch: cd modperl-2.0 patch -p0 patch_itself rebuild mod_perl from scratch oops, please try this one instead: Index: lib/ModPerl/Code.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Code.pm,v retrieving revision 1.92 diff -u -r1.92 Code.pm --- lib/ModPerl/Code.pm 8 Feb 2003 04:17:11 - 1.92 +++ lib/ModPerl/Code.pm 28 Feb 2003 00:24:45 - @@ -512,6 +512,7 @@ return unless $flags; for my $flag (split /\s+/, $flags) { +next if $flag =~ /^-/; # skip -foo flags my($name, $val) = split '=', $flag; $val ||= ''; $name =~ s/^-D//; __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com The information contained in this communication may be confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message and any copy of it from your computer system. Thank you. For more information please visit us at http://www.piperrudnick.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3
Priest, Darryl - BALTO wrote: I got the new CVS version applied the patch and I got a bit further good, I've committed that patch. , but it's still dying with: cd src/modules/perl make -f Makefile.modperl rm -f mod_perl.so ld -bhalt:4 -bM:SRE -bI:/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/perl.exp -bE:mod_perl.exp -bnoentry -lc -L/usr/local/libmod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo -bE:/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/perl.exp -brtl -L/usr/local/lib -b32 /usr/local/perl5.8.0/lib/5.8.0/aix/auto/DynaLoader/DynaLoader.a -L/usr/local/perl5.8.0/lib/5.8.0/aix/CORE -lperl -lbind -lnsl -ldl -lld -lm -lc -lcrypt -lbsd -lPW -o mod_perl.so ld: 0706-004 Cannot find or read export file: mod_perl.exp ld:accessx(): A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 255. To get that far, in the src/modules/perl/Makefile.modperl I added definitions for BASEEXT and PERL_INC, as copied from modperl-2.0/Makefile, as shown below, since they were missing. why would you need them? I mean what was the error that you had to add them? BASEEXT = mod_perl what if you replace it with BASEEXT = modperl In any case, AIX seems to be a special case, and without having an access to it it's hard to debug the problem. So if you can debug what happens in the function write_export_file() in lib/ModPerl/WrapXS.pm (where the exp files are generated) and either it's a problem of the exp file not being generated or just not being found. Apparently, the exp files are needed only for AIX. Though currently generated for all, and I can see only these: ./xs/apache_global.exp ./xs/apache_inline.exp ./xs/apache_ithreads.exp ./xs/modperl_global.exp ./xs/modperl_inline.exp ./xs/modperl_ithreads.exp what if you create an empty mod_perl.exp in src/modules/perl? PERL_INC = /usr/local/perl5.8.0/lib/5.8.0/aix/CORE Thanks. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
RE: make errors with mod_perl-1.99_08 on aix 4.3.3
Thanks for the quick response, additional information as requested is below. Priest, Darryl - BALTO wrote: I'm getting the error below for every cc in the make: /usr/local/perl5.8.0/lib/5.8.0/aix/CORE/config.h, line 41.9: 1506-236 (W) Macro name __attribute__ has been redefined. /usr/local/perl5.8.0/lib/5.8.0/aix/CORE/config.h, line 41.9: 1506-358 (I) __attribute__ is defined on line 28 of /usr/local/apache/include/apr.h. I'll take this issue to the apr/p5p lists, but this is non-fatal. But the make sails along until: cc -I/tmp/mod_perl-1.99_08/src/modules/perl -I/tmp/mod_perl-1.99_08/xs -I/usr/local/apache/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -I/usr/local/perl5.8.0/lib/5.8.0/aix/CORE -DMOD_PERL -O -c modperl_sys.c mv modperl_sys.o modperl_sys.lo modperl_largefiles.h, line 15.9: 1506-199 (S) #define directive requires a macro name. modperl_largefiles.h, line 17.9: 1506-199 (S) #define directive requires a macro name. [...] Is it just a coincidence that perl has USE_LARGE_FILES on and the file that make finally fails on is modperl_largefiles.h ? Can you please post your src/modules/perl/modperl_largefiles.h and the output of: #ifndef MODPERL_LARGEFILES_H #define MODPERL_LARGEFILES_H /* * *** WARNING ** * This file generated by ModPerl::Code/0.01 * Any changes made here will be lost * *** * 01: lib/ModPerl/Code.pm:648 * 02: lib/ModPerl/Code.pm:674 * 03: Makefile.PL:209 * 04: Makefile.PL:91 */ #define -q32 #define _LARGE_FILES #define -qlonglong #endif /* MODPERL_LARGEFILES_H */ % perl -MConfig -e 'print $Config{ccflags_uselargefiles}' -q32 -D_LARGE_FILES -qlonglong __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com The information contained in this communication may be confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message and any copy of it from your computer system. Thank you. For more information please visit us at http://www.piperrudnick.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3
Priest, Darryl - BALTO wrote: Thanks for the quick response, additional information as requested is below. Cool, please let me know whether this patch solves the problem (you need to apply the patch: cd modperl-2.0 patch -p0 patch_itself rebuild mod_perl from scratch Index: lib/ModPerl/Code.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Code.pm,v retrieving revision 1.92 diff -u -r1.92 Code.pm --- lib/ModPerl/Code.pm 8 Feb 2003 04:17:11 - 1.92 +++ lib/ModPerl/Code.pm 28 Feb 2003 00:22:23 - @@ -512,6 +512,7 @@ return unless $flags; for my $flag (split /\s+/, $flags) { +next if /^-/; # skip -foo flags my($name, $val) = split '=', $flag; $val ||= ''; $name =~ s/^-D//; __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3
Stas Bekman wrote: Priest, Darryl - BALTO wrote: Thanks for the quick response, additional information as requested is below. Cool, please let me know whether this patch solves the problem (you need to apply the patch: cd modperl-2.0 patch -p0 patch_itself rebuild mod_perl from scratch oops, please try this one instead: Index: lib/ModPerl/Code.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Code.pm,v retrieving revision 1.92 diff -u -r1.92 Code.pm --- lib/ModPerl/Code.pm 8 Feb 2003 04:17:11 - 1.92 +++ lib/ModPerl/Code.pm 28 Feb 2003 00:24:45 - @@ -512,6 +512,7 @@ return unless $flags; for my $flag (split /\s+/, $flags) { +next if $flag =~ /^-/; # skip -foo flags my($name, $val) = split '=', $flag; $val ||= ''; $name =~ s/^-D//; __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: make errors with mod_perl-1.99_08 on aix 4.3.3
Priest, Darryl - BALTO wrote: I'm getting the error below for every cc in the make: /usr/local/perl5.8.0/lib/5.8.0/aix/CORE/config.h, line 41.9: 1506-236 (W) Macro name __attribute__ has been redefined. /usr/local/perl5.8.0/lib/5.8.0/aix/CORE/config.h, line 41.9: 1506-358 (I) __attribute__ is defined on line 28 of /usr/local/apache/include/apr.h. I'll take this issue to the apr/p5p lists, but this is non-fatal. But the make sails along until: cc -I/tmp/mod_perl-1.99_08/src/modules/perl -I/tmp/mod_perl-1.99_08/xs -I/usr/local/apache/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -I/usr/local/perl5.8.0/lib/5.8.0/aix/CORE -DMOD_PERL -O -c modperl_sys.c mv modperl_sys.o modperl_sys.lo modperl_largefiles.h, line 15.9: 1506-199 (S) #define directive requires a macro name. modperl_largefiles.h, line 17.9: 1506-199 (S) #define directive requires a macro name. [...] Is it just a coincidence that perl has USE_LARGE_FILES on and the file that make finally fails on is modperl_largefiles.h ? Can you please post your src/modules/perl/modperl_largefiles.h and the output of: % perl -MConfig -e 'print $Config{ccflags_uselargefiles}' __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com