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]

gpg-agent: only one trouble before succesfull building


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/


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