Opened 14 months ago

Last modified 14 months ago

#68295 new defect

mod_perl2 @2.0.12_0+perl5.34: expecting ExtUtils::Embed 1.35

Reported by: murrayE Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: mod_perl2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

From main.log:

:notice:configure --->  Configuring mod_perl2
:debug:configure Preferred compilers: clang macports-clang-15 macports-clang-14 macports-clang-11
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (mod_perl2)
:debug:configure system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_mod_perl2/mod_perl2/work/mod_perl-2.0.12: /opt/local/bin/perl5.34 Makefile.PL MP_APXS=/opt/local/bin/apxs
: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.

Attachments (1)

main.log (40.7 KB) - added by murrayE 14 months ago.
main.log

Download all attachments as: .zip

Change History (3)

Changed 14 months ago by murrayE

Attachment: main.log added

main.log

comment:1 in reply to:  description Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: configure failure removed
Summary: mod_perl2-2.0.12_0+perl5.34.darwin_23.arm64 configure failsmod_perl2 @2.0.12_0+perl5.34: expecting ExtUtils::Embed 1.35

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.

comment:2 Changed 14 months ago by murrayE

After selfupdate and upgrading outdated, mod_perl2@2.0.12_0+perl5_34 installes OK for arm64.

Note: See TracTickets for help on using tickets.