Cross compilation of gpgme on Fedora Core 4
Srinivasan S
ssrini at linuxmail.org
Mon Oct 24 15:15:45 CEST 2005
Hello
I installed the Ming cross compiler via sources from mingw.org and the build script from mingw wiki. The cross compiler compiled and installed without any incident.
I then did a cross compilation of GnuPG 1.4.2 with ./autogen.sh --build-w32 followed by make and this worked flawlessly.
I then tried the compilation of gpgme 1.0.3 and this aborted at the first file itself with errors. The only additional step I did was to copy the autogen.sh script and the scripts directory from GnuPG sources to the gpgme directory since I did not find a autogen script within the gpgme tar file.
The error messages are pasted below for reference:
make all-recursive
make[1]: Entering directory `/home/ssrini/temp/gpgme'
Making all in gpgme
make[2]: Entering directory `/home/ssrini/temp/gpgme/gpgme'
make all-am
make[3]: Entering directory `/home/ssrini/temp/gpgme/gpgme'
if /bin/sh ../libtool --tag=CC --mode=compile i586-mingw32-gcc -DHAVE_CONFIG_H -I. -I/home/ssrini/temp/gpgme/gpgme -I.. -g -O2 -Wall -Wcast-align -Wshadow -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
i586-mingw32-gcc -DHAVE_CONFIG_H -I. -I/home/ssrini/temp/gpgme/gpgme -I.. -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 /usr/local/mingw/lib/gcc/i586-mingw32/3.4.4/../../../../i586-mingw32/include/unistd.h:10,
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 `/home/ssrini/temp/gpgme/gpgme'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ssrini/temp/gpgme/gpgme'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ssrini/temp/gpgme'
make: *** [all] Error 2
---------------------------
I just dont understand how to proceed now.
All help is appreciated
Regards
Srini
--
_______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
More information about the Gnupg-devel
mailing list