Opened 12 years ago

Closed 11 years ago

#33168 closed defect (fixed)

intltool: configure: error: XML::Parser perl module is required

Reported by: pjue2009@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: intltool

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

intltool fails to configure properly even though p5-xml-parser is installed.

checking for perl >= 5.8.1... 5.12.3
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_intltool/intltool/work/intltool-0.40.6" && ./configure --prefix=/opt/local " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
DEBUG: Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for intltool): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for intltool is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_intltool/intltool/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

When I run "perl5.12 -e "require XML::Parser", I get:

Can't load '/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bundle' for module XML::Parser::Expat: dlopen(/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bundle, 1): no suitable image found.  Did find:
	/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/auto/XML/Parser/Expat/Expat.bundle: mach-o, but wrong architecture at /opt/local/lib/perl5/5.12.3/darwin-multi-2level/DynaLoader.pm line 204.
 at /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm line 18
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm line 18.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level/XML/Parser.pm line 22.
Compilation failed in require at -e line 1.

I have tried reinstalling expat, but keep getting the same message above. My config file is set to i386 x86_64 for universal build architecture, which I changed after realizing it was set to i386 ppc. I am running OSX 10.5.8, 64-bit Intel, Xcode 3.1.2.

Change History (7)

comment:1 Changed 12 years ago by pjue2009@…

Correction: universal *binary architecture

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: intltool rarian expat perl5.12 removed
Summary: configure: error: XML::Parser perl module is required for intltoolintltool: configure: error: XML::Parser perl module is required

"i386 ppc" is the usual value of universal_archs on Leopard. You can change it to "i386 x86_64" if you want but note that this is not well-tested on Leopard so you might run into problems most of us have not seen before. After you changed universal_archs to "i386 x86_64" did you uninstall and reinstall all ports that you had already installed with the universal variant? If not, do so now, then clean intltool, then try again.

comment:3 in reply to:  2 Changed 12 years ago by pjue2009@…

Replying to ryandesign@…:

"i386 ppc" is the usual value of universal_archs on Leopard. You can change it to "i386 x86_64" if you want but note that this is not well-tested on Leopard so you might run into problems most of us have not seen before. After you changed universal_archs to "i386 x86_64" did you uninstall and reinstall all ports that you had already installed with the universal variant? If not, do so now, then clean intltool, then try again.

I was in the process of doing so. Currently, my port tree is all "i386 x86_64" or "noarch". Is that what it should be? I seemed to have problems with i386 ppc I think because I have an Intel.

comment:4 Changed 12 years ago by pjue2009@…

I believe I have discovered the source of the problem. Macports is looking for "XML::Parser" while the gzip file is named "XMLParser". Is there a way to tell Macports to look for "" instead of "::"?

comment:5 Changed 12 years ago by jmroot (Joshua Root)

Is this still a problem with current versions? If so, please provide the output of:

port -v installed perl5.12 p5.12-xml-parser
lipo -info /opt/local/lib/perl5/vendor_perl/5.12.4/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle

as well as the main.log and config.log for intltool.

comment:6 in reply to:  5 ; Changed 12 years ago by pjue2009@…

It seems to install correctly now. Thanks!

comment:7 in reply to:  6 Changed 11 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Replying to pjue2009@…:

It seems to install correctly now. Thanks!

Closing.

Note: See TracTickets for help on using tickets.