apache2 httpd 2.4.2 - mod_perl2 @2.0.6

Bjarne D Mathiesen macintosh at mathiesen.info
Tue May 1 14:24:20 PDT 2012


Daniel J. Luke wrote:
> On May 1, 2012, at 4:19 PM, Bjarne D Mathiesen wrote:
>> mod_perl 2.0.6 has been released on April 25 2012
>>
>> http://mail-archives.apache.org/mod_mbox/perl-modperl/201204.mbox/%3CCAHrynWAG+DszJ9bXAv_ddqJAAZLHSqX0nPZYUFp2Htzyt513gA@mail.gmail.com%3E
>>
>> still got some problems with :
>>
>> --->  Configuring mod_perl2
>> DEBUG: Using compiler 'Mac OS X clang'
>> DEBUG: Executing proc-pre-org.macports.configure-configure-0
>> DEBUG: Executing org.macports.configure (mod_perl2)
>> Reading Makefile.PL args from @ARGV
>>   MP_APXS = /macports/apache2/bin/apxs
>> no conflicting prior mod_perl version found - good.
>> Configuring Apache/2.4.2 mod_perl/2.0.6 Perl/v5.12.4
>> [  error] Can't find apr include/ directory,
>> [  error] use MP_APR_CONFIG=/path/to/apr-config
>>
>> trying to find a solution ...
> 
> 
> You probably want to do what is says (set MP_APR_CONFIG to ${prefix}/bin/apr-1-config)

the solution was to add the setting thus :
configure {
	set APXS ${prefix}/apache2/bin/apxs
	system "cd ${workpath}/${worksrcdir} && \
		${prefix}/bin/perl Makefile.PL \
		    MP_APXS=${APXS} \
		    MP_APR_CONFIG=${prefix}/bin/apr-1-config"
}

there's the ususal post-patch :
post-patch {
    reinplace   "s|->remote_ip|->client_ip|g" \
                ${worksrcpath}/src/modules/perl/modperl_interp.c
    reinplace   "s|->remote_addr|->client_addr|g" \
                ${worksrcpath}/src/modules/perl/modperl_interp.c
}

and it seems as if I'll have to patch httpd-2.4.2/include/http_core.h as
well due to

pro17:MacPorts root# port log mod_perl2 | grep error
modperl_config.c:525:31: error: use of undeclared identifier 'OPT_INCNOEXEC'
1 warning and 1 error generated.



-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3


More information about the macports-dev mailing list