compilation error (2.1.14)

Filipp Gunbin fgunbin at fastmail.fm
Mon Jul 25 21:17:56 CEST 2016


Hi,

I was trying to compile gnupg-2.1.14 on MacOS X today and ran into the
following problem.

Seems that something like -lintl is missing from the compile line.

libiconv, gettext & adns are installed into /opt/local via MacPorts.

npth, libassuan, libksba, gpg-error, libgcrypt are built locally and
installed into /usr/local.

Thanks,
Filipp


CC=gcc-mp-5 ./configure --enable-maintainer-mode
--with-libiconv-prefix=/opt/local --with-adns=/opt/local
--with-libintl-prefix=/opt/local && make clean all

...
...

gcc-mp-5 -imacros scheme-config.h -I/usr/local/include -I/usr/local/include -I/usr/local/include -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wformat -Wno-format-y2k -Wformat-security -W -Wno-sign-compare -Wno-missing-field-initializers -Wdeclaration-after-statement -Wno-pointer-sign -Wpointer-arith  -g -O2   -o gpgscm gpgscm-main.o gpgscm-ffi.o gpgscm-scheme.o  ../../common/libcommon.a  -L/opt/local/lib -liconv -lreadline -L/usr/local/lib -lgcrypt -lgpg-error -L/usr/local/lib -lgpg-error 

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:
      _my_strusage in gpgscm-main.o
      _create_pipe_and_estream in libcommon.a(libcommon_a-exechelp-posix.o)
      _gnupg_spawn_process in libcommon.a(libcommon_a-exechelp-posix.o)
      _gnupg_spawn_process_fd in libcommon.a(libcommon_a-exechelp-posix.o)
      _gnupg_wait_processes in libcommon.a(libcommon_a-exechelp-posix.o)
      _gnupg_spawn_process_detached in libcommon.a(libcommon_a-exechelp-posix.o)
      _disable_core_dumps in libcommon.a(libcommon_a-sysutils.o)
      ...
  "_libintl_setlocale", referenced from:
      _i18n_init in libcommon.a(libcommon_a-i18n.o)
      _i18n_localegettext in libcommon.a(libcommon_a-i18n.o)
  "_libintl_textdomain", referenced from:
      _i18n_init in libcommon.a(libcommon_a-i18n.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status



More information about the Gnupg-devel mailing list