New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20953 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

help2man configure failure: perl module Locale::gettext required

Reported by: ch-macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snowleopard Cc: ryandesign@…
Port: help2man

Description (last modified by snc@…) (diff)

When attempting to upgrade my tree to 10.6 using the "sudo port upgrade --force installed" method mentioned on the migration page, I get the following error:

...
--->  Installing p5-locale-gettext @1.05_0
--->  Activating p5-locale-gettext @1.05_0
--->  Cleaning p5-locale-gettext
--->  Computing dependencies for help2man
--->  Configuring help2man
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_Users_sly_src_macports_macports_dports_textproc_help2man/work/help2man-1.36.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 1
Command output: checking for perl... /opt/local/bin/perl
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed
checking for library containing dlsym... none required
checking for module Locale::gettext... no
configure: error: perl module Locale::gettext required

Error: Unable to upgrade port: 1

Change History

  Changed 2 years ago by ch-macports@…

oops. let's try that output paste again...

...
--->  Installing p5-locale-gettext @1.05_0
--->  Activating p5-locale-gettext @1.05_0
--->  Cleaning p5-locale-gettext
--->  Computing dependencies for help2man
--->  Configuring help2man
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_Users_sly_src_macports_macports_dports_textproc_help2man/work/help2man-1.36.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 1
Command output: checking for perl... /opt/local/bin/perl
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed
checking for library containing dlsym... none required
checking for module Locale::gettext... no
configure: error: perl module Locale::gettext required

Error: Unable to upgrade port: 1

  Changed 2 years ago by snc@…

  • keywords snowleopard added; 10.6 removed
  • description modified (diff)

follow-up: ↓ 4   Changed 2 years ago by snc@…

Is it able to build if you clean, uninstall, and install these?

in reply to: ↑ 3   Changed 2 years ago by ch-macports@…

Replying to snc@…:

Is it able to build if you clean, uninstall, and install these?

Not sure what you mean by "these", but if you mean p5-locale-gettext and help2man, then the answer is no.

  Changed 2 years ago by jmr@…

  • keywords help2man, removed
  • port set to help2man

follow-up: ↓ 7   Changed 2 years ago by jmr@…

  • status changed from new to closed
  • resolution set to wontfix

This is one of the possible failure cases that the Migration page mentions. You'll find that ${prefix}/bin/perl is 32-bit and needs to be rebuilt.

in reply to: ↑ 6   Changed 2 years ago by ryandesign@…

  • status changed from closed to reopened
  • cc ryandesign@… added
  • resolution wontfix deleted
  • summary changed from building help2man fails to help2man configure failure: perl module Locale::gettext required

Replying to jmr@…:

This is one of the possible failure cases that the Migration page mentions.

Well, it says "Note that this method may sometimes fail [...] if ports other than gawk/grep/gsed are used opportunistically". It doesn't specifically mention perl, though I agree perl could be used opportunistically too.

You'll find that ${prefix}/bin/perl is 32-bit and needs to be rebuilt.

Then why didn't MacPorts rebuild it? help2man declares a dependency on perl. p5-locale-gettext, which the output shows was already upgraded, is a member of the perl5 portgroup, which also declares a dependency on perl.

  Changed 2 years ago by jmr@…

  • status changed from reopened to closed
  • resolution set to duplicate

We don't need two tickets for this; duping this one to #21069.

Note: See TracTickets for help on using tickets.