Error building gpgme on Leopard 10.5.6

View: New views
2 Messages — Rating Filter:   Alert me  

Error building gpgme on Leopard 10.5.6

by Roberto Aguilar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to build gpgme in order to use MacGPGME.  In the MacGPGME  
README file, it says to configure gpgme like so:

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

then make.  When I do this, I get the following error:

[...]
mkdir .libs/libgpgme.lax/libassuan.a
(cd .libs/libgpgme.lax/libassuan.a && ar x /Users/berto/Downloads/
gpgme-1.1.8/src/../assuan/.libs/libassuan.a)
ar: /Users/berto/Downloads/gpgme-1.1.8/src/../assuan/.libs/libassuan.a  
is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: /Users/berto/Downloads/gpgme-1.1.8/src/../assuan/.libs/
libassuan.a: Inappropriate file type or format
make[3]: *** [libgpgme.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I'm new to building OS X specific libraries, so I really don't know  
how to fix this error.  I tried building the latest gpgme 1.1.8 rather  
than 1.1.6 in the README and I get the same error.

I did try to build an i386 only library and that works, but it would  
be great to get this built correctly universal.

Thanks in advance,
-Roberto.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl

Re: Error building gpgme on Leopard 10.5.6

by Stéphane Corthésy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

IIRC, this compilation problem is due to a previously compiled (or  
simply installed?) gpg2; the workaround is to temporarily empty /usr/
local, then recompile all libs for MacGPGME as described in MacGPGME's  
README. Then you can restore the saved /usr/local folder content.

Sorry, I don't have time to test and fix that.

Stéphane


On Apr 11, 2009, at 8:09 PM, Roberto Aguilar wrote:

> Hello,
>
> I'm trying to build gpgme in order to use MacGPGME.  In the MacGPGME
> README file, it says to configure gpgme like so:
>
> 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
>
> then make.  When I do this, I get the following error:
>
> [...]
> mkdir .libs/libgpgme.lax/libassuan.a
> (cd .libs/libgpgme.lax/libassuan.a && ar x /Users/berto/Downloads/
> gpgme-1.1.8/src/../assuan/.libs/libassuan.a)
> ar: /Users/berto/Downloads/gpgme-1.1.8/src/../assuan/.libs/libassuan.a
> is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
> ar: /Users/berto/Downloads/gpgme-1.1.8/src/../assuan/.libs/
> libassuan.a: Inappropriate file type or format
> make[3]: *** [libgpgme.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I'm new to building OS X specific libraries, so I really don't know
> how to fix this error.  I tried building the latest gpgme 1.1.8 rather
> than 1.1.6 in the README and I get the same error.
>
> I did try to build an i386 only library and that works, but it would
> be great to get this built correctly universal.
>
> Thanks in advance,
> -Roberto.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Macgpg-devl mailing list
> Macgpg-devl@...
> https://lists.sourceforge.net/lists/listinfo/macgpg-devl


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl