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

X-Spam-Check-By: sourceware.org
Message-ID: <448B1565.9070602@rvmgroup.it>
Date: Sat, 10 Jun 2006 20:54:29 +0200
From: "gabriele DOT mailing AT rvmgroup DOT it" <gabriele DOT mailing AT rvmgroup DOT it>
User-Agent: Mozilla Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gpg-agent: only one trouble before succesfull building
References: <1149964625 DOT 8941 DOT ezmlm AT cygwin DOT com>
In-Reply-To: <1149964625.8941.ezmlm@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hello,
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
make install

#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
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
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" ?
I investigated and found out that the make of libassuan said:
...
assuan-io.c:32: warning: weak declaration of 'pth_read' not supported
assuan-io.c:33: warning: weak declaration of 'pth_write' not supported
...

Mmmmh seems we need to add support when configuring....
I read the docs of pth-1.4.1 and found the configure switch for this, but:

./configure --enable-pthread
...
make
...
./libtool --mode=compile --quiet gcc -c -I. -O2 -pipe pthread.c
In file included from pthread.c:42:
pthread.h:184: warning: useless keyword or type name in empty declaration
pthread.h:184: warning: empty declaration
pthread.h:347: error: conflicting types for 'pthread_kill'
/usr/include/sys/signal.h:163: error: previous declaration of 
'pthread_kill' was here
pthread.h:347: error: conflicting types for 'pthread_kill'
/usr/include/sys/signal.h:163: error: previous declaration of 
'pthread_kill' was here
make: *** [pthread.lo] Error 1

I cant' go out of this....

Please help !

-- 
Diesis

--
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