Replying to murrayE:
From main.log:
:info:configure I have found ExtUtils::Embed 1.2505 at
:info:configure /opt/local/lib/perl5/vendor_perl/5.34/ExtUtils/Embed.pm
:info:configure This is probably not the right one for this perl version. Please make sure
:info:configure there is only one version of this module installed and that it is the one
:info:configure that comes with this perl version.
:info:configure If you insist on using the ExtUtils::Embed as is set the environment
:info:configure variable MP_USE_MY_EXTUTILS_EMBED=1 and try again.
:info:configure Details: expecting ExtUtils::Embed 1.35 (according to Module::CoreList)
:info:configure BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 65.
:info:configure Compilation failed in require at Makefile.PL line 38.
The file /opt/local/lib/perl5/vendor_perl/5.34/ExtUtils/Embed.pm comes from the port p5.34-extutils-embed. This port is not listed as a dependency of mod_perl2. Maybe mod_perl2 conflicts with it. Try deactivating that port first. Clean mod_perl2 before trying again.
p5.34-extutils-embed seems to be confused about its version number. The port version is 1.140.0 but the code in the file that calculates its version is written as:
$VERSION = sprintf("%d.%02d", q$Revision: 1.2505 $ =~ /(\d+)\.(\d+)/);
hence it is reporting its version as 1.2505.
The ExtUtils::Embed module appears to be part of the perl core. The perl5.34 port provides a newer version of this module at /opt/local/lib/perl5/5.34/ExtUtils/Embed.pm which I assume will be used if the separate older module is not installed. I wonder how long it has been part of the perl core and whether there is still any good reason for us to have a separate port for it. We do still have some very old perl versions available in MacPorts though (perl5.16 is the oldest); maybe it is still useful for those.