delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/10/19:14:24

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: gpg-agent: only one trouble before succesfull building
Date: Sat, 10 Jun 2006 18:13:47 -0500
Lines: 111
Message-ID: <e6fjnc$vid$1@sea.gmane.org>
References: <1149964625 DOT 8941 DOT ezmlm AT cygwin DOT com> <448B1565 DOT 9070602 AT rvmgroup DOT it>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
In-Reply-To: <448B1565.9070602@rvmgroup.it>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

gabriele wrote:

> This is a detailed story about the try to build gpg-agent under cygwin
> I whish to use gpg-agent under cygwin, that is contained in the
> gnupg-1.9 tree only.
>=20
> Here is what I have done:
>=20
> #Install prerequisites
>=20
> ## libpth-1.4.4
> cd /usr/src/
> wget ftp://ftp.gnu.org/gnu/pth/pth-1.4.1.tar.gz
> tar xvzf pth-1.4.1.tar.gz
> cd pth-1.4.1
> ./configure
> make
> make test

It's "make check".

> make install

Why use that old version? pth-2.0.6 is what I used.

> #libassuan
> cd /usr/src/
> wget ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/libassuan-0.6.10.tar.gz
> tar xvzf libassuan-0.6.10.tar.gz
> cd
> ./configure
> make

Should also do "make check" just to be sure.

> make install
>=20
> #Installed this from official archives with setup.exe
> # this is needed by libksba
> # gettext
>=20
> #libksba
> cd /usr/src/
> wget ftp://ftp.gnupg.org/gcrypt/alpha/libksba/libksba-0.9.14.tar.bz2
> tar xvjf libksba-0.9.14.tar.bz2
> cd libksba-0.9.14
> ./configure
> make

Same here, "make check".

> make install
>=20
> #Installed this from official archives with setup.exe
> #libgpg-error
> #libgcrypt
>=20
> ## Now the big ball
> cd /usr/src
> wget ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-1.9.20.tar.bz2
> tar xvjf gnupg-1.9.20.tar.bz2
> cd gnupg-1.9.20
> ./configure --enable-agent-only
> make
>=20
> And now the funny part:
> ...
> gcc   -I/usr/local/include -g -O2 -Wall   -o gpg-connect-agent.exe=20
> gpg-connect-agent.o no-libgcrypt.o ../jnlib/libjnlib.a
> ../common/libcommon.a ../gl/libgnu.a -L/usr/local/lib -lassuan
> -lgpg-error -lintl -lz
> /usr/local/lib/libassuan.a(assuan-io.o): In function `_assuan_simple_read=
':
> /usr/src/libassuan-0.6.10/src/assuan-io.c:44: undefined reference to
> `_pth_read'
> /usr/local/lib/libassuan.a(assuan-io.o): In function
> `_assuan_simple_write':
> /usr/src/libassuan-0.6.10/src/assuan-io.c:55: undefined reference to
> `_pth_write'
> collect2: ld returned 1 exit status
> make[2]: *** [gpg-connect-agent.exe] Error 1
> make[2]: Leaving directory `/usr/src/gnupg-1.9.20/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/gnupg-1.9.20'
> make: *** [all] Error 2
>=20
> Ok, we lack "pthread support" ?
[snip]

Wrong, it's not pthread support is pth as in portable threads, and obviousl=
y you
had just built it... the real problem is that the compile command is wrong,=
 if
you try by hand the correct command it will work:

gcc -g -O2 -Wall -o gpg-connect-agent.exe  gpg-connect-agent.o no-libgcrypt=
.o
../jnlib/libjnlib.a ../common/libcommon.a ../gl/libgnu.a -lassuan -lpth
-lgpg-error -lintl -lz

The only difference is "-lpth" which is the output of "/usr/bin/pth-config
--libs" (or in your case /usr/local/bin/...).  So the problem was really an
error on the generated Makefile, you should report it to gnupg.

Regards.
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019