GPGME v1.0.3 on Win32
David ARMOUR
david.armour at st.com
Sun Apr 16 06:37:06 CEST 2006
Hi!
I saw a previous thread from 2002 on the subject of compiling GPGME which stated I must use:
./autogen.sh
./configure
make
I am trying to compile GPGME library 1.0.3 for Win32 using the MinGW compiler and MSYS environment.
I noticed that the source does not come with a AUTOGEN.SH so no way to do the things suggested above. What I did do was ./configure which succeeded. Then I typed MAKE but I get a lot of errors and the make aborts:
***********************************************************************************************
make all-recursive
make[1]: Entering directory `/c/sdk/gpgme-1.0.3'
Making all in gpgme
make[2]: Entering directory `/c/sdk/gpgme-1.0.3/gpgme'
make all-am
make[3]: Entering directory `/c/sdk/gpgme-1.0.3/gpgme'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -Wall -Wcast-align -W
shadow -Wstrict-prototypes -MT ath-compat.lo -MD -MP -MF ".deps/ath-compat.Tpo" -c -o ath-compat.lo ath-compat.c; \
then mv -f ".deps/ath-compat.Tpo" ".deps/ath-compat.Plo"; else rm -f ".deps/ath-compat.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT ath-compat.lo -MD
-MP -MF .deps/ath-compat.Tpo -c ath-compat.c -DDLL_EXPORT -DPIC -o .libs/ath-compat.o
In file included from c:/sdk/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/unistd.h:9,
from ath-compat.c:25:
./io.h:45: error: syntax error before "size_t"
./io.h:46: error: syntax error before "size_t"
./io.h:61: error: syntax error before "size_t"
In file included from ath-compat.c:36:
ath.h:30:24: sys/socket.h: No such file or directory
In file included from ath-compat.c:36:
ath.h:69: error: syntax error before "fd_set"
ath.h:70: warning: function declaration isn't a prototype
ath.h:72: error: syntax error before "socklen_t"
ath.h:72: warning: function declaration isn't a prototype
ath.h:73: error: syntax error before "socklen_t"
ath.h:73: warning: function declaration isn't a prototype
ath.h:74: warning: "struct msghdr" declared inside parameter list
ath.h:74: warning: its scope is only this definition or declaration, which is probably not what you want
ath.h:75: warning: "struct msghdr" declared inside parameter list
ath.h:87: error: syntax error before "fd_set"
ath.h:88: warning: function declaration isn't a prototype
ath.h:90: error: syntax error before "socklen_t"
ath.h:90: warning: function declaration isn't a prototype
ath.h:91: error: syntax error before "socklen_t"
ath.h:91: warning: function declaration isn't a prototype
ath.h:92: warning: "struct msghdr" declared inside parameter list
ath.h:93: warning: "struct msghdr" declared inside parameter list
ath-compat.c: In function `_gpgme_ath_read':
ath-compat.c:113: warning: implicit declaration of function `read'
ath-compat.c: In function `_gpgme_ath_write':
ath-compat.c:123: warning: implicit declaration of function `write'
ath-compat.c: At top level:
ath-compat.c:128: error: syntax error before "fd_set"
ath-compat.c:130: warning: function declaration isn't a prototype
ath-compat.c: In function `_gpgme_ath_select':
ath-compat.c:132: error: `nfd' undeclared (first use in this function)
ath-compat.c:132: error: (Each undeclared identifier is reported only once
ath-compat.c:132: error: for each function it appears in.)
ath-compat.c:132: error: `rset' undeclared (first use in this function)
ath-compat.c:132: error: `wset' undeclared (first use in this function)
ath-compat.c:132: error: `eset' undeclared (first use in this function)
ath-compat.c:132: error: `timeout' undeclared (first use in this function)
ath-compat.c:134: warning: implicit declaration of function `select'
ath-compat.c: In function `_gpgme_ath_waitpid':
ath-compat.c:144: warning: implicit declaration of function `waitpid'
ath-compat.c: At top level:
ath-compat.c:149: error: syntax error before "socklen_t"
ath-compat.c:150: warning: function declaration isn't a prototype
ath-compat.c: In function `_gpgme_ath_accept':
ath-compat.c:152: error: `s' undeclared (first use in this function)
ath-compat.c:152: error: `addr' undeclared (first use in this function)
ath-compat.c:152: error: `length_ptr' undeclared (first use in this function)
ath-compat.c:154: warning: implicit declaration of function `accept'
ath-compat.c: At top level:
ath-compat.c:159: error: syntax error before "socklen_t"
ath-compat.c:160: warning: function declaration isn't a prototype
ath-compat.c: In function `_gpgme_ath_connect':
ath-compat.c:162: error: `s' undeclared (first use in this function)
ath-compat.c:162: error: `addr' undeclared (first use in this function)
ath-compat.c:162: error: `length' undeclared (first use in this function)
ath-compat.c:164: warning: implicit declaration of function `connect'
ath-compat.c: At top level:
ath-compat.c:169: warning: "struct msghdr" declared inside parameter list
ath-compat.c:170: error: conflicting types for '_gpgme_ath_sendmsg'
ath.h:74: error: previous declaration of '_gpgme_ath_sendmsg' was here
ath-compat.c:170: error: conflicting types for '_gpgme_ath_sendmsg'
ath.h:74: error: previous declaration of '_gpgme_ath_sendmsg' was here
ath-compat.c: In function `_gpgme_ath_sendmsg':
ath-compat.c:172: warning: passing arg 2 of pointer to function from incompatible pointer type
ath-compat.c:174: warning: implicit declaration of function `sendmsg'
ath-compat.c: At top level:
ath-compat.c:179: warning: "struct msghdr" declared inside parameter list
ath-compat.c:180: error: conflicting types for '_gpgme_ath_recvmsg'
ath.h:75: error: previous declaration of '_gpgme_ath_recvmsg' was here
ath-compat.c:180: error: conflicting types for '_gpgme_ath_recvmsg'
ath.h:75: error: previous declaration of '_gpgme_ath_recvmsg' was here
ath-compat.c: In function `_gpgme_ath_recvmsg':
ath-compat.c:182: warning: passing arg 2 of pointer to function from incompatible pointer type
ath-compat.c:184: warning: implicit declaration of function `recvmsg'
make[3]: *** [ath-compat.lo] Error 1
make[3]: Leaving directory `/c/sdk/gpgme-1.0.3/gpgme'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/sdk/gpgme-1.0.3/gpgme'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/sdk/gpgme-1.0.3'
make: *** [all] Error 2
***********************************************************************************************
Can you please give me some advice on compiling or obtaining a pre-compiled Win32 MinGW compatible version of GPGME.
David
More information about the Gnupg-devel
mailing list