GnuPG 2.1.16 build error on Mac OS X
Patrick Brunschwig
patrick at enigmail.net
Mon Nov 21 17:30:51 CET 2016
On 21.11.16 16:59, Werner Koch wrote:
> On Mon, 21 Nov 2016 14:28, patrick at enigmail.net said:
>> Building tools/gpg-wks-client fails on Mac OS X because $(LIBINTL) is
>> not specified.
>
> Yep, see https://bugs.gnupg.org/gnupg/issue2846 . Interesting fact is
> that our build links against iconv:
>
> gcc -I/Users/jenkins/prefix/native/include
> -I/Users/jenkins/prefix/native/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
> -D_DARWIN_C_SOURCE=900000L -fPIC -o gpg-wks-client
> gpg_wks_client-gpg-wks-client.o gpg_wks_client-wks-util.o
> gpg_wks_client-wks-receive.o gpg_wks_client-rfc822parse.o
> gpg_wks_client-mime-parser.o gpg_wks_client-mime-maker.o
> gpg_wks_client-send-mail.o gpg_wks_client-call-dirmngr.o
> ../common/libcommon.a -lassuan -L/Users/jenkins/prefix/native/lib
> -lgpg-error -L/Users/jenkins/prefix/native/lib -lgcrypt -lgpg-error
> -L/Users/jenkins/prefix/native/lib -lgpg-error -L/Users/jenkins/pkg/lib
> -liconv
>
> which is due to this change (part of 2.1.16):
>
> commit 6054e8aaecbd355bb7559697eecaadf2225189b8
> Author: Justus Winter <justus at g10code.com>
> AuthorDate: Fri Sep 30 12:34:31 2016 +0200
> Commit: Justus Winter <justus at g10code.com>
> CommitDate: Fri Sep 30 17:45:59 2016 +0200
>
> build: Fix build against libiconv.
>
> * agent/Makefile.am: Add INCICONV and LIBICONV.
> * common/Makefile.am: Likewise.
> * tools/Makefile.am: Likewise.
>
> So, what is different on your build?
I'm also building against iconv. But in I'm not referencing libintl in
libiconv. That is I don't specify --with-libintl-prefix, and due to not
using standard directories, libintl is not found.
Therefore libiconv and libintl are two separate libraries on my system.
-Patrick
More information about the Gnupg-devel
mailing list