Re: Problem compiling mod_perl on AIX
Rainer Tammer <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Organization | Schuler Pressen GmbH |
| Message-ID | <[email protected]> |
Hello, I think I have found the problem. -----[Makefile]--------------------------- ....cut..... # FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle). # BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle) # PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar) # DLBASE = Basename part of dynamic library. May be just equal BASEEXT. MAKE = make <--------------- HERE FULLEXT = mod_perl2 BASEEXT = mod_perl2 ....cut..... -----[Makefile]--------------------------- The generated Makefile does define: MAKE = make This does unfortunately not work if the found make is the AIX make and not GNU make (aka gmake). If you modify your PATH before you compile mod_perl to include the directory /opt/freeware/bin before /usr/bin or export MAKE=/opt/freeware/bin/gmake (and if GNU make is installed on the system) then the GNU make is used. The build will work with GNU make without a problem. I suggest to add a note in the INSTALL to: export MAKE="/opt/freeware/bin/gmake" perl Makefile.PL .... -----[./INSTALL]-------- Simple install: % perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs % make && make test % make install Simple config: LoadModule perl_module modules/mod_perl.so #PerlModule Apache::compat # your config comes here -----[./INSTALL]-------- -> -----[./INSTALL]-------- Simple install: % perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs % make && make test % make install Simple install on AIX: You will need GNU make to compile mod_perl. The AIX make does not work. If you have installed GNU make from the AIX Toolbox: % export MAKE="/opt/freeware/bin/gmake" % perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs % gake && gake test % gake install Simple config: LoadModule perl_module modules/mod_perl.so #PerlModule Apache::compat # your config comes here -----[./INSTALL]-------- Bye Rainer On 07.07.2021 08:50, Edward J. Sabol wrote: > On Jul 6, 2021, at 2:49 AM, Rainer Tammer <[email protected]> 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 > -- ======================================================= Schuler Pressen GmbH Dipl.-Ing. (FH) Rainer Tammer Abt.: IT-DS Schuler-Platz 1 73033 Göppingen Germany Tel.: +49(7161)66-747 FAX: +49(7161)66-844 eMail: [email protected] URL: www.schulergroup.com Teams: sip:[email protected] Jabber: [email protected] Member of the ANDRITZ Group Pflichtangaben: http://pflichtangaben.schulergroup.com =======================================================