New beta

vedaal at nym.hush.com vedaal at nym.hush.com
Fri Sep 19 21:46:04 CEST 2014


On 9/19/2014 at 2:18 PM, "Robert J. Hansen" <rjh at sixdemonbag.org> wrote:
>
>> Does this have to be done under Linux, or can it be done under 
>> Windows with the aid of something like MinGW or CodeBlocks?
>
>Unfortunately, this is not something I'd recommend for anyone 
>except a
>handful of MinGW experts.  It's technically possible, but daunting.
>
>The approved way of building Win32 executables of GnuPG is to
>cross-compile from Linux.

=====

Can gnupg-2.1.0-beta834 be compiled on Cygwin ?


I tried downloading it from the ftp link WK gave, and when trying to configure on Cygwin, got the following errors:

configure:

*** You need libgpg-error to build this program

*** You need libassuan to build this program

*** You need libska to build this program

*** It is now required to build with support for the
*** New Portable Threads Library (nPth). Please install
*** this library first.

configure: error:

*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.


Ok,

Downloaded all the above libraries from the links provided,
started with the first one mentioned, libgpg-error,
and got as far as,

config.status: creating po/Makefile

        libgpg-error-1.16 prepared for make

        Revision: 8f3187f  (36657)
        Platform: i686-pc-cygwin

Then after trying 'make',
got the following:

$ make
make  all-recursive
make[1]: Entering directory `/cygdrive/c/gnupg-2.1.0-beta834/libgpg-error-1.16/l                                                                                                    ibgpg-error-1.16'
Making all in m4
make[2]: Entering directory `/cygdrive/c/gnupg-2.1.0-beta834/libgpg-error-1.16/l                                                                                                    ibgpg-error-1.16/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/gnupg-2.1.0-beta834/libgpg-error-1.16/li                                                                                                    bgpg-error-1.16/m4'
Making all in src
make[2]: Entering directory `/cygdrive/c/gnupg-2.1.0-beta834/libgpg-error-1.16/l                                                                                                    ibgpg-error-1.16/src'
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
gcc -E   _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
rm _mkerrcodes.h
gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./err-sources.h.in >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./err-codes.h.in >err-codes-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        -v prefix=GPG_ERR_ -v namespace=errnos_ \
        ./errnos.in >errnos-sym.h
gcc -g -O0 -I. -I. -o mkheader ./mkheader.c
gcc -g -O2 -Wall -Wpointer-arith    gen-posix-lock-obj.c   -o gen-posix-lock-obj
gen-posix-lock-obj.c:40:3: error: #error sizeof pthread_mutex_t is not known.
gen-posix-lock-obj.c: In function ‘main’:
gen-posix-lock-obj.c:69:21: error: ‘SIZEOF_PTHREAD_MUTEX_T’ undeclared 
(first use in this function)
gen-posix-lock-obj.c:69:21: note: each undeclared identifier is reported only once for each function it appears in
gen-posix-lock-obj.c:99:11: error: ‘HOST_TRIPLET_STRING’ undeclared 
(first use in this function)                                                                                 
<builtin>: recipe for target `gen-posix-lock-obj' failed
make[2]: *** [gen-posix-lock-obj] Error 1
make[2]: Leaving directory `/cygdrive/c/gnupg-2.1.0-beta834/libgpg-error-1.16/li                                                                                                    bgpg-error-1.16/src'
Makefile:402: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/gnupg-2.1.0-beta834/libgpg-error-1.16/li                                                                                                    bgpg-error-1.16'
Makefile:333: recipe for target `all' failed
make: *** [all] Error 2


So,
can it be done on Cygwin, using other steps/commands first?

(btw, have not had any problems compiling, making, and installing gnupg 1.4.x on Cygwin).

TIA,

vedaal




More information about the Gnupg-users mailing list