Page MenuHome GnuPG

Regression: build needs -lintl for macOS
Closed, ResolvedPublic

Description

This was not a problem in 2.1.15, but is now a problem in 2.1.16.

Workaround:

ENV.append "LDFLAGS", "-lintl"

The error is

Undefined symbols for architecture x86_64:
  "_libintl_bind_textdomain_codeset", referenced from:
      _i18n_switchto_utf8 in libcommon.a(libcommon_a-i18n.o)
      _i18n_switchback in libcommon.a(libcommon_a-i18n.o)
  "_libintl_bindtextdomain", referenced from:
      _i18n_init in libcommon.a(libcommon_a-i18n.o)
      _i18n_localegettext in libcommon.a(libcommon_a-i18n.o)
  "_libintl_gettext", referenced from:
      _main in gpg_wks_client-gpg-wks-client.o
      _wrong_args in gpg_wks_client-gpg-wks-client.o
      _connect_dirmngr in gpg_wks_client-call-dirmngr.o
      __init_common_subsystems in libcommon.a(libcommon_a-init.o)
      _disable_core_dumps in libcommon.a(libcommon_a-sysutils.o)
      _gnupg_rename_file in libcommon.a(libcommon_a-sysutils.o)
      _i18n_utf8 in libcommon.a(libcommon_a-i18n.o)
      ...
  "_libintl_setlocale", referenced from:
      _i18n_init in libcommon.a(libcommon_a-i18n.o)
      _i18n_localegettext in libcommon.a(libcommon_a-i18n.o)
      _send_pinentry_environment in libcommon.a(libcommon_a-asshelp.o)
  "_libintl_textdomain", referenced from:
      _i18n_init in libcommon.a(libcommon_a-i18n.o)

local log:
https://gist.githubusercontent.com/ilovezfs/f27b06bbea446744d63a94fb3fba1bb9/raw/02d29eaed76d7abaa0d74469dd5acf4fb4ca727b/gistfile1.txt

Jenkins log:
https://bot.brew.sh/job/Homebrew%20Versions%20Pull%20Requests/1731/version=el_capitan/consoleFull

Details

Version
2.1.16

Event Timeline

ilovezfs added projects: gnupg, Bug Report.
ilovezfs added a subscriber: ilovezfs.

No problem. Thanks for looking into it.

Patrick also mentioned this on the ML. I am not sure whether this has been
fixed. Can you please check tools/Makefile.am and close this bug if -lintl has
not yet been added.

I'm assuming it is. Feel free to reopen this bug if this still causes problems
for you.

justus removed a project: Testing.