Opened 9 years ago

Closed 9 years ago

#47320 closed defect (fixed)

goffice08 @0.8.17_1 configure/intltool fails because XML::Parser Perl module is not available

Reported by: irobertson@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: goffice08

Description

The following was the result of trying to install gnucash:

Administrators-MacBook-Pro:~ admin$ sudo port install gnucash
--->  Computing dependencies for gnucash
--->  Dependencies to be installed: goffice08 guile18 libgnomeui libbonoboui libbonobo libgnome gnome-vfs gnome-mime-data libcanberra gstreamer1 flex libvorbis libogg libgnomecanvas libart_lgpl libglade2 pangox-compat libgnome-keyring vala p5.16-finance-quote p5.16-cgi p5.16-crypt-ssleay p5.16-datetime p5.16-datetime-locale p5.16-list-moreutils p5.16-exporter-tiny p5.16-params-validate p5.16-attribute-handlers p5.16-module-implementation p5.16-module-runtime p5.16-yaml p5.16-try-tiny p5.16-datetime-timezone p5.16-class-singleton p5.16-list-allutils p5.16-encode p5.16-html-tableextract p5.16-html-tree p5.16-test-fatal p5.16-json webkit-gtk enchant aspell texinfo hunspell geoclue2 json-glib libsoup glib-networking gsettings-desktop-schemas libproxy gstreamer1-gst-plugins-base libtheora orc xorg-libXv xorg-videoproto libsecret mesa xorg-dri2proto xorg-glproto webp yelp gnome-getting-started-docs gnome-settings-daemon geocode-glib gnome-desktop adwaita-icon-theme git p5.20-authen-sasl p5.20-digest-hmac p5.20-digest-sha1 perl5.20 p5.20-gssapi p5.20-error p5.20-net-smtp-ssl p5.20-io-socket-ssl p5.20-net-libidn p5.20-net-ssleay p5.20-test-exception p5.20-sub-uplevel p5.20-test-simple p5.20-test-nowarnings p5.20-test-warn p5.20-tree-dag_node p5.20-file-slurp-tiny p5.20-pathtools p5.20-term-readkey rsync icon-naming-utils p5.16-xml-simple p5.16-xml-namespacesupport p5.16-xml-sax p5.16-xml-sax-base p5.16-xml-sax-expat librsvg libcroco gnome-themes-standard gnome-backgrounds iso-codes xkeyboard-config xkbcomp xorg-libxkbfile libgweather libnotify pulseaudio fftw-3-single fftw-3 json-c libsamplerate libsndfile flac speex upower gnome-user-docs webkit-gtk3 yelp-xsl
--->  Configuring goffice08
Error: Failed to configure goffice08, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_goffice/goffice08/work/goffice-0.8.17/config.log
Error: org.macports.configure for port goffice08 returned: configure failure: command execution failed
Error: Failed to install goffice08
Please see the log file for port goffice08 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_goffice/goffice08/main.log
Error: The following dependencies were not installed: goffice08 guile18 libgnomeui libbonoboui libbonobo libgnome gnome-vfs gnome-mime-data libcanberra gstreamer1 flex libvorbis libogg libgnomecanvas libart_lgpl libglade2 pangox-compat libgnome-keyring vala p5.16-finance-quote p5.16-cgi p5.16-crypt-ssleay p5.16-datetime p5.16-datetime-locale p5.16-list-moreutils p5.16-exporter-tiny p5.16-params-validate p5.16-attribute-handlers p5.16-module-implementation p5.16-module-runtime p5.16-yaml p5.16-try-tiny p5.16-datetime-timezone p5.16-class-singleton p5.16-list-allutils p5.16-encode p5.16-html-tableextract p5.16-html-tree p5.16-test-fatal p5.16-json webkit-gtk enchant aspell texinfo hunspell geoclue2 json-glib libsoup glib-networking gsettings-desktop-schemas libproxy gstreamer1-gst-plugins-base libtheora orc xorg-libXv xorg-videoproto libsecret mesa xorg-dri2proto xorg-glproto webp yelp gnome-getting-started-docs gnome-settings-daemon geocode-glib gnome-desktop adwaita-icon-theme git p5.20-authen-sasl p5.20-digest-hmac p5.20-digest-sha1 perl5.20 p5.20-gssapi p5.20-error p5.20-net-smtp-ssl p5.20-io-socket-ssl p5.20-net-libidn p5.20-net-ssleay p5.20-test-exception p5.20-sub-uplevel p5.20-test-simple p5.20-test-nowarnings p5.20-test-warn p5.20-tree-dag_node p5.20-file-slurp-tiny p5.20-pathtools p5.20-term-readkey rsync icon-naming-utils p5.16-xml-simple p5.16-xml-namespacesupport p5.16-xml-sax p5.16-xml-sax-base p5.16-xml-sax-expat librsvg libcroco gnome-themes-standard gnome-backgrounds iso-codes xkeyboard-config xkbcomp xorg-libxkbfile libgweather libnotify pulseaudio fftw-3-single fftw-3 json-c libsamplerate libsndfile flac speex upower gnome-user-docs webkit-gtk3 yelp-xsl
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gnucash failed

The log file for goffice08 (which I no longer have a copy of), showed configure trying to run intltool, but discovering that the XML::Parser Perl module was not available.

Executing perl --version showed that I was using 5.12.

I installed perl_select and ran port select perl perl5.16-apple.13.

I also manually installed p5.16-xml-parser.

After doing the above, goffice08 and gnucash both installed successfully.

Running Mac OS X Mavericks 10.9.5 build 13F1066

Attachments (1)

term.txt (15.5 KB) - added by irobertson@… 9 years ago.
Terminal transcript

Download all attachments as: .zip

Change History (7)

comment:1 Changed 9 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

All versions of perl < 5.16 are unsupported at this time and will hopefully be removed in the near future. In particular, intltool (the module that issues the error message) now only supports perl 5.16 and up. The default version of perl is now 5.16.

Your usage of perl_select is irrelevant to this problem as it only selects the version of perl that is used if you run it from the command line not when ports are built. I'd set it to the MacPorts (not Apple) version of perl that you normally use. But I suspect your have an invalid version of perl5 installed, possibly perl5 +perl5_12.

To clean up your installation and validate that it works execute the following commands

sudo port install perl5 (this will install perl5.16 by default)
sudo port deactivate p5.16-xml-parser (to test that it is correctly installed by the following commands)
sudo port -n upgrade --force goffice08
sudo port -n upgrade --force gnucash

If this works you can uninstall perl5 +perl5_12, perl5.12 and any p5.12-* ports you may have installed.

comment:2 Changed 9 years ago by irobertson@…

port install perl5 updated me to Perl 5.16.

port deactivate p5.16-xml-parser refused to deactivate without doing the dependencies first, so I ran port -f deactivate p5.16-xml-parser. If this isn't what you wanted, I'll try again after deactivating/uninstalling recursively.

port -n upgrade --force goffice08 still failed looking for XML::Parser.

Side note: port select perl still shows only "apple" versions (and "none").

Available versions for perl:
	none
	perl5.12-apple.13
	perl5.16-apple.13 (active)

Changed 9 years ago by irobertson@…

Attachment: term.txt added

Terminal transcript

comment:3 Changed 9 years ago by irobertson@…

This sequence works however:

port deactivate intltool
port -f deactivate p5.16-xml-parser
port -n upgrade --force goffice08
--->  Dependencies to be installed: intltool p5.16-xml-parser

comment:4 Changed 9 years ago by dbevans (David B. Evans)

Yes, I was thinking that intltool needed to be updated to use perl5.16 as well. Sorry for not mentioning that earlier.

In addition, I've just committed a fix to goffice08 (r134619) that should settle the issue once and for all regardless of the versions of perl and intltool being used.

Would appreciate it if you would update your ports and rebuild goffice08 to verify that it works for you.

Thanks.

comment:5 Changed 9 years ago by dbevans (David B. Evans)

BTW, once the goffice08 issue is solved, does gnucash build properly for you as well?

comment:6 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

No response, assume fixed.

Note: See TracTickets for help on using tickets.