#67317 closed defect (fixed)

gettext @0.21.1: tries to use msgfmt, gmsgfmt, xgettext, msgmerge, which might be broken by gettext-tools-libs update

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gettext

Description

When building these errors appear that signify that before parts of gettext (gettext-tools-libs or libtextstyle) were incorrectly upgraded because they left the application programmes unusable:

Dyld Error Message:
  Library not loaded: /opt/local/lib/libgettextsrc-0.21.dylib
  Referenced from: /opt/local/bin/msgfmt
  Reason: image not found
--->  Configuring gettext

DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.21.1/gettext-tools" && ./configure --prefix=/opt/local ac_cv_prog_AWK=/usr/bin/awk ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/usr/bin/sed --disable-csharp --disable-java --disable-openmp --with-included-libunistring --with-included-libxml --with-installed-libtextstyle --without-emacs --without-cvs --without-git --without-xz --disable-libasprintf 
checking for a BSD-compatible install... /usr/bin/install -c
...
checking for windres... no
checking whether NLS is requested... yes
checking for msgfmt... ./configure: line 23487: 77484 Trace/BPT trap          $ac_dir/$ac_word --statistics /dev/null 1>&5 2>&1
no
checking for gmsgfmt... :
checking for xgettext... ./configure: line 23610: 77494 Trace/BPT trap          $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 1>&5 2>&1
no
checking for msgmerge... ./configure: line 23688: 77503 Trace/BPT trap          $ac_dir/$ac_word --update -q /dev/null /dev/null 1>&5 2>&1
no
checking whether we are using the GNU C Library 2 or newer... no
checking whether the -Werror option is usable... yes
...
=== configuring in examples (/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.21.1/gettext-tools/examples)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/opt/local'  'ac_cv_prog_AWK=/usr/bin/awk' 'ac_cv_path_GREP=/usr/bin/grep' 'ac_cv_path_SED=/usr/bin/sed' '--disable-csharp' '--disable-java' '--disable-openmp' '--with-included-libunistring' '--with-included-libxml' '--with-installed-libtextstyle' '--without-emacs' '--without-cvs' '--without-git' '--without-xz' '--disable-libasprintf' 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -Os -arch ppc' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.2' 'CXXFLAGS=-pipe -Os -arch ppc' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... ./configure: line 2642: 88395 Trace/BPT trap          $ac_dir/$ac_word --statistics /dev/null 1>&5 2>&1
no
checking for gmsgfmt... :
checking for xgettext... ./configure: line 2765: 88405 Trace/BPT trap          $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 1>&5 2>&1
no
checking for msgmerge... ./configure: line 2843: 88415 Trace/BPT trap          $ac_dir/$ac_word --update -q /dev/null /dev/null 1>&5 2>&1
no

Change History (3)

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

Cc: ryandesign@… removed
Keywords: leopard ppc removed
Owner: set to ryandesign
Status: newaccepted
Summary: gettext @0.21 builds incorrectly on PPC Leopard, Mac OS X 10.5.8gettext @0.21.1: tries to use msgfmt, gmsgfmt, xgettext, msgmerge, which might be broken by gettext-tools-libs update

Replying to ballapete:

When building these errors appear that signify that before parts of gettext (gettext-tools-libs or libtextstyle) were incorrectly upgraded because they left the application programmes unusable:

Dyld Error Message:
  Library not loaded: /opt/local/lib/libgettextsrc-0.21.dylib
  Referenced from: /opt/local/bin/msgfmt
  Reason: image not found

The libtextstyle port provides the libtextstyle.0.dylib library, which hasn't changed since it was introduced, so there's no problem there.

gettext-tools-libs was not incorrectly upgraded; it was upgraded in the only way that it can be. gettext-tools-libs 0.21 provided libgettextlib-0.21.dylib and libgettextsrc-0.21.dylib. These files were removed when the port was upgraded to 0.21.1. It now provides libgettextlib-0.21.1.dylib and libgettextsrc-0.21.1.dylib. This leaves any gettext programs that use those libraries—like msgfmt, gmsgfmt, xgettext, and msgmerge—broken until the gettext port is upgraded. These are internal libraries, by the way, intended for use by gettext and nobody else, so only the gettext port's programs should be broken as a result of this. The bug, therefore, seems to be that the build of gettext is itself attempting to use (or at least checking for the existence of) the msgfmt, gmsgfmt, xgettext, and msgmerge programs installed by its former version, and the fix is probably to prevent it from doing that:

--->  Configuring gettext
...
checking for msgfmt... ./configure: line 23487: 77484 Trace/BPT trap          $ac_dir/$ac_word --statistics /dev/null 1>&5 2>&1
no
checking for gmsgfmt... :
checking for xgettext... ./configure: line 23610: 77494 Trace/BPT trap          $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 1>&5 2>&1
no
checking for msgmerge... ./configure: line 23688: 77503 Trace/BPT trap          $ac_dir/$ac_word --update -q /dev/null /dev/null 1>&5 2>&1
no

Does this issue prevent the gettext port from building or is it just that you noticed these messages in the log?

comment:2 Changed 19 months ago by ballapete (Peter "Pete" Dyballa)

gettext built (otherwise I would have been able to attach the build log), and I noticed these failures repeatedly because a system was triggered each time to report these to Apple.

comment:3 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 8b02bd503ed15415511077b0cf5986822764dac7/macports-ports (master):

gettext: Don't use gettext programs

Closes: #67317

Note: See TracTickets for help on using tickets.