This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gpg-agent: only one trouble before succesfull building


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.
> 
> Here is what I have done:
> 
> #Install prerequisites
> 
> ## 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
> 
> #Installed this from official archives with setup.exe
> # this is needed by libksba
> # gettext
> 
> #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
> 
> #Installed this from official archives with setup.exe
> #libgpg-error
> #libgcrypt
> 
> ## 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
> 
> And now the funny part:
> ...
> gcc   -I/usr/local/include -g -O2 -Wall   -o gpg-connect-agent.exe 
> 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
> 
> Ok, we lack "pthread support" ?
[snip]

Wrong, it's not pthread support is pth as in portable threads, and obviously 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.
-- 
René 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]