[fwd] Re: "gpg --status-fd X" does not work for Windows 2000 (from: ryk@dspwiz.com)

Werner Koch wk at gnupg.org
Thu Feb 22 09:21:04 CET 2001


Okay,

the mail server had some serious problems due to a corrupted ReiserFS
probably as a result of a non-working fan.  I hope it is better now.

We got get this KDE anoncvs onto another box.

  Werner

----- Forwarded message from "Richard Y. Kim" <ryk at dspwiz.com> -----

Date: Wed, 21 Feb 2001 15:39:09 -0800
From: "Richard Y. Kim" <ryk at dspwiz.com>
To: Werner Koch <wk at gnupg.org>
CC: ryk at dspwiz.com
Subject: Re: "gpg --status-fd X" does not work for Windows 2000

Content-Description: message body text
Werner,

I am sending this email to your personal address, because
email to <gnupg-devel at gnupg.org> was bounced back to me!


Content-Description: forwarded message
Date: Wed, 21 Feb 2001 15:35:17 -0800
From: "Richard Y. Kim" <ryk at dspwiz.com>
To: gnupg-devel at gnupg.org
CC: ryk at dspwiz.com
Subject: Re: "gpg --status-fd X" does not work for Windows 2000

>>>>> "WK" == Werner Koch <wk at gnupg.org> writes:
    WK>  On Tue, 20 Feb 2001, Richard Y. Kim wrote:
    >> "gpg --status-fd X" does not work for Windows 2000 if
    >> X is anything other than 1 or 2, e.g., if X is 3. The
    >> following illustration shows
    WK>  You need a recent development snapshot of
    WK> gpg. gpg-1.0.4d should be available in the devel
    WK> directory of the FTP servers.

Unfortunately, gpg-1.0.4d (cross compiled for Windows on a linux box)
has the same problem as gpg-1.0.4.  On the other hand, gpg-1.0.4d
compiled using cygwin <http://sources.redhat.com/cygwin> does not
suffer from the same problem.  Using cygwin built gpg, I was able
to encrypt, decrypt, sign, and verify email messages all within GNU
Emacs 20.7 running on Windows 2000 using mailcrypt 3.5.5
<http://mailcrypt.sourceforge.net>.

The rest of the email details the steps I took to arrive at above
results.

I cross compiled gpg-1.0.4d as follows on a GNU/Debian system (woody,
aka "testing", as of Feb 21, 2001, i.e., I did "apt-get upgrade"
today):

    # Unpack and install windows32api-0.1.2
    cd /usr/local
    tar zxf windows32api-0.1.2.tar.gz
    cd windows32api-0.1.2
    ./configure
    make install

    # Unpack, compile and install cross compiler tools
    cd /usr/local
    tar zxf gcc-2.95.2.tar.gz
    tar zxf binutils-2.9.1.tar.gz
    tar zxf mingw23-cpd-0.2.4.tar.gz
    cd mingw23-cpd-0.2.4
    ./Configure
    make
    make install

    # Unpack and compile gpg using the cross compiler tools
    cd /usr/local
    tar zxf gnupg-1.0.4d.tar.gz
    cd /usr/local/src/gnupg-1.0.4d
    ./configure --target=i386--mingw32
    # At this point, I had to add the following line to
    # /usr/local/src/gnupg-1.0.4d/cipher/rndw32.c to
    # remove compiler error:

        "#define VER_PLATFORM_WIN32_WINDOWS 1"

    make
    i386--mingw32-strip g10/gpg
    cp g10/gpg gpg.exe

With the resulting gpg.exe, the following still does not
output anything to the file "foo" under Windows 2000:

    gpg --decrypt --status-fd 3 3>foo < /dev/null
    cat foo

Using stdout, however, works:

    gpg --decrypt --status-fd 1 >foo < /dev/null
    cat foo
    [GNUPG:] NODATA 2

The rest of the email details how I compiled gpg using cygwin tools.

# Without the specified options, errors result in compilation step.
# It looks like there are still some bugs to be ironed out in the
# configure script.
./configure --with-included-zlib --disable-nls --disable-dynload --disable-asm

# You need to install cygipc package which defines things like shmat()
# call.  This is not yet part of the main cygwin distribution.  You
# can get cygipc from <http://www.neuro.gatech.edu/users/cwilson/cygutils/>.
# 
# Add " -lcygipc" to LIBS in ./tools/Makefile and ./g10/Makefile so
# that shmat() is linked in.
make clean
make

# "make check" fails several tests!
make check

make install




----- End forwarded message -----

-- 
Omnis enim res, quae dando non deficit, dum habetur
et non datur, nondum habetur, quomodo habenda est.
                                      -- Augustinus




More information about the Gnupg-devel mailing list