[Announce] The maybe final Beta for GnuPG 2.1

Ben McGinnes ben at adversary.org
Wed Oct 8 20:35:40 CEST 2014


On 9/10/2014 12:48 am, Werner Koch wrote:
> On Sun,  5 Oct 2014 09:13, ben at adversary.org said:
> 
>> Now since the configure script for pinentry is about 13,000 lines
> 
> That is generated.  The actual configure.ac script is 565 lines.
> 
> I do not understand you remarks about libc++ - is that required for the
> Qt version of Pinentry?  The other pinentryies do not use any C++ code.

After a standard configure (no extra flags) the result of make is:

nefarious:pinentry-0.8.4 ben$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in assuan
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[3]: Nothing to be done for `all-am'.
Making all in secmem
make[2]: Nothing to be done for `all'.
Making all in pinentry
make[2]: Nothing to be done for `all'.
Making all in curses
make[2]: Nothing to be done for `all'.
Making all in gtk+-2
gcc  -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes
-Wno-pointer-sign   -o pinentry-gtk-2 pinentry-gtk-2.o gtksecentry.o
../pinentry/libpinentry.a ../assuan/libassuan.a ../secmem/libsecmem.a
-L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lgio-2.0
-lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage
-lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lglib-2.0 -lintl
-lfontconfig -lfreetype  ../pinentry/libpinentry-curses.a -lncurses -liconv
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _pinentry_utf8_to_local in libpinentry.a(pinentry.o)
      _pinentry_local_to_utf8 in libpinentry.a(pinentry.o)
  "_iconv_close", referenced from:
      _pinentry_utf8_to_local in libpinentry.a(pinentry.o)
      _pinentry_local_to_utf8 in libpinentry.a(pinentry.o)
  "_iconv_open", referenced from:
      _pinentry_utf8_to_local in libpinentry.a(pinentry.o)
      _pinentry_local_to_utf8 in libpinentry.a(pinentry.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [pinentry-gtk-2] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
nefarious:pinentry-0.8.4 ben$

I went looking for an explanation for the ld and clang errors and
found a rather large amount of grief on StackOverflow where people had
discovered the libstdc++ vs libc++ issue.  Clearly here it's tied to
gtk2 stuff, whereas Qt should be able to be handled by installing the
Qt libs directly.

Anyway, if it is the C++ thing, then in theory pointing things to
/usr/lib/libstdc++* instead of /usr/lib/libc++* should do the trick.
It's just that none of the options I tried to pass to LDFLAGS seemed
to do anything.  Plus the view that Apple deliberately broke something
seems pretty much typical of them.

> You may build a ncurses only pinentry by disabling all other
> pinentries.  See ./configure --help.

I'll try that later.  At least this time it's getting a lot further
than the last beta I took a swing at (I can't remember which, it was a
while ago).


Regards,
Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 630 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20141009/8cb7f6b2/attachment.sig>


More information about the Gnupg-users mailing list