Opened 11 years ago

Closed 11 years ago

#40358 closed defect (duplicate)

p5.12-locale-gettext fails to build in new MacPorts tree

Reported by: posita (Matt Bogosian) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: l2g@…
Port: p5.12-locale-gettext

Description

I have a new non-root (user) installation of MacPorts 2.2.0 on OS X 10.6.8, which has just been selfupdated. Attempting to install ImageMagick barfed on its dependency on p5.12-locale-gettext.

.../p5.12-locale-gettext/main.log is attached. Here's the failing section:

...
:debug:configure Executing command line:  cd "[__MACPORTS_ROOT__]/var/macports/build/[__MACPORTS_ROOT__]var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && [__MACPORTS_ROOT__]/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:info:configure checking for gettext... no
:info:configure checking for gettext in -lintl...gettext function not found. Please install libintl at Makefile.PL line 22.
:info:configure  no
:info:configure Command failed:  cd "[__MACPORTS_ROOT__]/var/macports/build/[__MACPORTS_ROOT__]var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && [__MACPORTS_ROOT__]/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
:info:configure Exit code: 2
...

Ports successfully installed before p5.12-locale-gettext failed:

% port list installed
expat                          @2.1.0          textproc/expat
gdbm                           @1.10           databases/gdbm
gettext                        @0.18.3.1       devel/gettext
gperf                          @3.0.4          devel/gperf
libiconv                       @1.14           textproc/libiconv
ncurses                        @5.9            devel/ncurses
perl5.12                       @5.12.4         lang/perl5.12

Cleaning and retrying still fails:

% port clean ImageMagick p5.12-locale-gettext
--->  Cleaning ImageMagick
--->  Cleaning p5.12-locale-gettext
% port install ImageMagick
--->  Computing dependencies for ImageMagick
--->  Dependencies to be installed: autoconf help2man p5.12-locale-gettext m4 perl5 xz automake bzip2 fftw-3 fontconfig freetype libpng zlib pkgconfig ghostscript jbig2dec jpeg lcms2 tiff libtool libidn libpaper xorg-libXext xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 db_select libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXt xorg-libsm xorg-libice urw-fonts webp
--->  Fetching distfiles for p5.12-locale-gettext
--->  Verifying checksums for p5.12-locale-gettext
--->  Extracting p5.12-locale-gettext
--->  Applying patches to p5.12-locale-gettext
--->  Configuring p5.12-locale-gettext
Error: org.macports.configure for port p5.12-locale-gettext returned: configure failure: command execution failed
Error: Failed to install p5.12-locale-gettext
Please see the log file for port p5.12-locale-gettext for details:
    .../p5.12-locale-gettext/main.log
Error: The following dependencies were not installed: autoconf help2man p5.12-locale-gettext m4 perl5 xz automake bzip2 fftw-3 fontconfig freetype libpng zlib pkgconfig ghostscript jbig2dec jpeg lcms2 tiff libtool libidn libpaper xorg-libXext xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 db46 db_select libedit openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXt xorg-libsm xorg-libice urw-fonts webp
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ImageMagick failed

FYI, MacPorts was originally installed with the following options to configure:

% ./configure \
    --prefix="${HOME}/.site" \
    --with-no-root-privileges \
    --with-install-user="$(id -un)" \
    --with-install-group="$(id -gn)" \
    --with-applications-dir="${HOME}/Applications/MacPorts" \
    --with-frameworks-dir="${HOME}/Library/Frameworks" \
    --with-directory-mode=2750

Attachments (1)

main.log (4.4 KB) - added by posita (Matt Bogosian) 11 years ago.
.../p5.12-locale-gettext/main.log

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by posita (Matt Bogosian)

Attachment: main.log added

.../p5.12-locale-gettext/main.log

comment:1 Changed 11 years ago by posita (Matt Bogosian)

This looks like a similar issue has been presented before (see ticket #19381), but it has since been marked fixed. I have recently (i.e., within the past year-ish) built ImageMagick on Snow Leopard from MacPorts without issue. This appears to be relatively new.

(See also this (stackoverflow).)

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 11 years ago by posita (Matt Bogosian)

FYI, the work-around from ticket #36716 appears to work in my environment as well. I don't know if this is properly classified as a "fix" though....

For convenience, here's the work-around:

% port install p5.12-locale-gettext configure.compiler=gcc
... [works]
% port install ImageMagick [or whatever depends on p5.12-locale-gettext]
...
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.