Trying to compile gpg 2.0.19 for Mac OS 10.8 Mountain Lion.

Charly Avital shavital at gmail.com
Wed Aug 1 20:52:52 CEST 2012


Hi,

After installing all the required libraries (as indicated in first run
of ./configure), I get the following:

Output of ./configure:

GnuPG v2.0.19 has been configured as follows:

        Platform:  Darwin (x86_64-apple-darwin12.0.0)

        OpenPGP:   yes
        S/MIME:    yes
        Agent:     yes
        Smartcard: yes (without internal CCID driver)
        Gpgtar:    no

        Protect tool:      (default)
        Default agent:     (default)
        Default pinentry:  (default)
        Default scdaemon:  (default)
        Default dirmngr:   (default)

Last lines of make output:

gcc -DHAVE_CONFIG_H -I. -I..  -I../intl -I/usr/local/include
-DJNLIB_IN_JNLIB -I/usr/local/include -g -O2 -Wall -Wno-pointer-sign
-Wpointer-arith -MT utf8conv.o -MD -MP -MF .deps/utf8conv.Tpo -c -o
utf8conv.o utf8conv.c
utf8conv.c: In function ‘native_to_utf8’:
utf8conv.c:382: error: ‘ICONV_CONST’ undeclared (first use in this function)
utf8conv.c:382: error: (Each undeclared identifier is reported only once
utf8conv.c:382: error: for each function it appears in.)
utf8conv.c:382: error: expected ‘)’ before ‘char’
utf8conv.c: In function ‘do_utf8_to_native’:
utf8conv.c:648: error: ‘ICONV_CONST’ undeclared (first use in this function)
utf8conv.c:648: error: expected ‘)’ before ‘char’
utf8conv.c: In function ‘jnlib_iconv’:
utf8conv.c:724: warning: passing argument 2 of ‘libiconv’ from
incompatible pointer type
make[2]: *** [utf8conv.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Hoping to solve the problem by installing the latest gettext 0.18.1.1, I
get the following when trying to compile gettext:

Last lines of ./configure:
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
configure: creating ./config.status
config.status: creating Makefile
config.status: creating installpaths
config.status: creating po/Makefile
config.status: executing po-directories commands


Last lines of make:
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\"
-DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I..
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl
-I///usr/include/libxml2 -I./libcroco -g -O2 -c stpncpy.c  -fno-common
-DPIC -o .libs/stpncpy.o
stpncpy.c:34: error: expected declaration specifiers or ‘...’ before
numeric constant
stpncpy.c:34: error: expected ‘)’ before ‘!=’ token
stpncpy.c:34: error: expected ‘)’ before ‘?’ token
make[4]: *** [stpncpy.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1


I've searched for possible solutions.
One of them was trying to patch gettext with attached patch. Didn't succeed.

Thank you in advance for your assistance.

Charly
OS X 10.8 (12A269}  MacBook Intel C2Duo 2GHz-GnuPG 1.4.12-MacGPG2-2.0.17-9
Thunderbird 14.0 Enigmail 1.5a1pre (20120727-2257)
-------------- next part --------------
--- gettext-tools/gnulib-lib/stpncpy.c.orig	2007-10-07 23:29:35.000000000 +0300
+++ gettext-tools/gnulib-lib/stpncpy.c	2011-03-11 23:34:40.000000000 +0200
@@ -24,7 +24,7 @@
 #include <string.h>
 
 #ifndef weak_alias
-# define __stpncpy stpncpy
+//# define __stpncpy stpncpy
 #endif
 
 /* Copy no more than N bytes of SRC to DST, returning a pointer past the


More information about the Gnupg-users mailing list