Hello,
I have tried gcc, but this does gives me the same error.
I think something with the build tools (or perl) is not working correctly.
Note: The latest version of https://perldoc.perl.org/perlaix is mainly
from me :-):
AUTHORS
Rainer Tammer <tam...@tammer.net>
I have successfully compiled mod_perl on:
AIX: 7100-03-05-1524 (AIX 7.1 TL3 SP5)
Perl: v5.10.1 (system perl) with ExtUtils 6.55_02
Apache: 2.2.26
mod_perl: 2.0.8
Apache was compiled with the following options:
export CC=cc_r
export CXX=xlC_r
export CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED"
./configure \
--prefix=/usr/local/apache2 \
--enable-so \
--enable-mods-shared=most \
--with-mpm=prefork \
--with-expat=/opt/freeware.
mod_perl:
perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
On AIX 7.2 TL5 SP2 with gcc 8.3.0:
This is from a gmake -i install:
.... cut ....
# cat install.log
Manifying 2 pod documents
Manifying 3 pod documents
Manifying 15 pod documents
/opt/freeware/bin/perl -MExtUtils::Command::MM -e
'cp_nonempty' -- Base64.bs ../../../blib/arch/auto/APR/Base64/Base64.bs 644
.... cut .....
/opt/freeware/bin/perl -MExtUtils::Command::MM -e
'cp_nonempty' -- Const.bs ../../../blib/arch/auto/APR/Const/Const.bs 644
/opt/freeware/bin/perl -MExtUtils::Command::MM -e
'cp_nonempty' -- PerlIO.bs ../../../blib/arch/auto/APR/PerlIO/PerlIO.bs 644
make: 1254-002 Cannot find a rule to create target static from dependencies.
Stop.
make: 1254-004 The error code from the last command is 2.
make: 1254-005 Ignored error code 2 from last command.
/opt/freeware/bin/perl -MExtUtils::Command::MM -e
'cp_nonempty' -- Const.bs ../../../blib/arch/auto/Apache2/Const/Const.bs 644
/opt/freeware/bin/perl -MExtUtils::Command::MM -e
'cp_nonempty' -- Const.bs ../../../blib/arch/auto/ModPerl/Const/Const.bs 644
"/opt/freeware/bin/perl_64" -Iblib/lib
-I/daten/source/Apache-2.4.48/mod_perl-2.0.11/Apache-Test/lib
-MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod
ModPerl-Registry/lib/ModPerl/PerlRun.pm
/daten/source/Apache-2.4.48/mod_perl-2.0.11/docs/api/ModPerl/PerlRun.pod
blib/lib/ModPerl/PerlRun.pm
Manifying 1 pod document
.... cut ....
The gmake tries to build a target "static" which is not present.
I'll ask Michael (I know him) if he does have an idea.
I do not know the mod_perl build system very well, so any tip is
appreciated.
Bye
Rainer
On 07.07.2021 08:50, Edward J. Sabol wrote:
On Jul 6, 2021, at 2:49 AM, Rainer Tammer <rainer.tam...@schulergroup.com>
wrote:
I do have a problem compiling mod_perl 2.0.8, 2.0.10 or 2.0.11 on AIX 7.1/7.2.
I did not have this problem in the past (older AIX and older AIX system Perl
v5.10.1).
The current system Perl version on AIX is 5.28.1.
[...]
make: 1254-002 Cannot find a rule to create target static from dependencies.
Well, I googled that error message, and I saw that another person reported
the exact same "make" error when compiling mod_perl 2.0.2 on AIX 5.2 on 07
Feb 2006. There was no follow-up with a solution. Another person also
reported the same "make" error with AIX 6.1 when compiling mod_perl 2.0.10
with Perl 5.26.1 on 15 Nov 2017. No reply then either. Do a Google search
for details. You might try emailing the person who posted in 2017 and see if
they were ever able to get it to compile.
https://www.perzl.org/aix/index.php?n=Main.ModPerl has a mod_perl 2.0.7
package for AIX 5.1. So, yeah, it looks to be a long-standing problem. :-(
Make sure you've read through https://perldoc.perl.org/perlaix to see if any
of that applies. I see a suggestion there that says to compile Perl with
gcc. It might be worth trying that and then compiling mod_perl with gcc too.
Good luck. If you find a solution, please come back and post it for future
AIX users.
Regards,
Ed