Trying to compile gpgme under MacOSX

Charly Avital shavital at mac.com
Thu May 15 14:53:21 CEST 2008


Hi,

Trying to compile gpgme 1.1.4 on: MacOS 10.5.2 - MacBook Intel C2Duo - 
GnuPG 1.4.9 - GPG2 2.0.9

1. Configure:
env CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc" \
     ./configure --enable-static --disable-shared 
--disable-dependency-tracking --with-gpg-error-prefix=/usr/local 
--with-gpg=/usr/local/bin/gpg --without-pth --disable-glibtest

Results in:
GPGME v1.1.4 has been configured as follows:

	GnuPG path:    /usr/local/bin/gpg
         GnuPG version: 1.4.9, min. 1.3.0

	GpgSM path:    /usr/local/bin/gpgsm
         GpgSM version: 2.0.9, min. 1.9.6

	GPGME Pthread: yes
	GPGME Pth:

But sudo make install:
-----------
Making install in assuan
make  install-am
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN   -isysroot 
/Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -Wall -Wcast-align 
-Wshadow -Wstrict-prototypes -c -o assuan-util.lo assuan-util.c
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include 
-D_ASSUAN_IN_GPGME_BUILD_ASSUAN -isysroot /Developer/SDKs/MacOSX10.5.sdk 
-arch i386 -arch ppc -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c 
assuan-util.c -o assuan-util.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN   -isysroot 
/Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -Wall -Wcast-align 
-Wshadow -Wstrict-prototypes -c -o assuan-errors.lo assuan-errors.c
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include 
-D_ASSUAN_IN_GPGME_BUILD_ASSUAN -isysroot /Developer/SDKs/MacOSX10.5.sdk 
-arch i386 -arch ppc -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c 
assuan-errors.c -o assuan-errors.o
In file included from assuan-errors.c:13:
assuan.h:74: error: syntax error before 'socklen_t'
assuan.h:74: warning: function declaration isn't a prototype
assuan.h:75: error: syntax error before 'socklen_t'
assuan.h:75: warning: function declaration isn't a prototype
In file included from assuan-errors.c:13:
assuan.h:74: error: syntax error before 'socklen_t'
assuan.h:74: warning: function declaration isn't a prototype
assuan.h:75: error: syntax error before 'socklen_t'
assuan.h:75: warning: function declaration isn't a prototype
lipo: can't figure out the architecture type of: /var/tmp//cc1t515b.out
make[2]: *** [assuan-errors.lo] Error 1
make[1]: *** [install] Error 2
----------

/Developer/SDKs/MacOSX10.5.sdk is present in the system.

Previous to trying to compile gpgme, libgpg-error-1.6 had been 
successfully configured and installed.



Thanks in advance for your feedback.

Charly






More information about the Gnupg-users mailing list