Hi,
It seem as if the gnupg21 port needs LDFLAGS=-lintl to be able to link
properly on Darwin:
$ bmake package
[...]
mv -f .deps/gpgscm-scheme.Tpo .deps/gpgscm-scheme.Po
clang -imacros scheme-config.h -I/Users/kk/sw/include -I/Users/kk/sw/include -I/Users/kk/sw/include -Wall -Wno-pointer-sign -Wpointer-arith -I/Users/kk/sw/include -lresolv -L/Users/kk/sw/lib -o gpgscm gpgscm-main.o gpgscm-ffi.o gpgscm-scheme.o ../../common/libcommon.a -liconv -L/Users/kk/sw/lib -lgcrypt -lgpg-error -L/Users/kk/sw/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
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gnumake[3]: *** [gpgscm] Error 1
gnumake[2]: *** [all-recursive] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2
Stop.
bmake[1]: stopped in /Users/kk/pkgsrc/security/gnupg21
*** Error code 1
Stop.
bmake: stopped in /Users/kk/pkgsrc/security/gnupg21
Manually setting LDFLAGS on the command line when invoking bmake makes
it compile successfully:
$ env LDFLAGS=-lintl bmake package
Cheers,
Attachment:
signature.asc
Description: PGP signature