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

2012-08-14 Thread Charly Avital
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

Following my post of August 1/2012, I could compile GnuPG 2.0.19 under
Mac OS 10.8 (Mountain Lion, Darwin x86_64-apple-darwin12.0.0) using a
script written by Ludwig Hügelschäfer, based upon a script written by
Alex Willner, and with a Mac-native pinentry-mac.app written by Ben
Donnachie in cooperation with GPGtools.org.

Charly
0x15E4F2EA
OS X 10.8 (12A269}  MacBook Intel C2Duo 2GHz-GnuPG 1.4.12-MacGPG2-2.0.19
Thunderbird 14.0 Enigmail 1.5a1pre (20120810-1544)

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQEcBAEBCgAGBQJQKyCQAAoJEPDKqP3/J6K00aAIAK3pLVylhX7DJAf2gI1Ywd8D
DC3uf/8k8slkJAN56XXH35wr9gkjYq1lYuzGwJY4+VOA+60vgts1EGo2h4fHykMA
qLa8SOO3BxzRmEHSO+7i0mu+IeLWW8ak02MyunllUG+2A1ne0kcngfaN5Fyixuh7
bjruTfm/OKy9cc01W+vASYz27DWQ2xeeCbs+fVw0/Dleynb8kyfbv4LTJ9WDQREL
k9meFfhcrWtZEPQ6d66O8KAkcONF1sdmG9PwvV2sxC536xmVOywO2DiJhvZat4Im
jVVS8SArzdapa5VfDBHtWDoX1Zm4dmGQn/xR1/rOWDFGX1lFmU3/VWM1clY1AA0=
=oGMn
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


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

2012-08-01 Thread Charly Avital
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)
--- gettext-tools/gnulib-lib/stpncpy.c.orig 2007-10-07 23:29:35.0 
+0300
+++ gettext-tools/gnulib-lib/stpncpy.c  2011-03-11 23:34:40.0 +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
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users