Mailing List Archive

Problems compling on W2k
Hi,

I am attempting to compile libgcrypt 1.1.42 on Windows 2000 with the
following components:

MSYS 1.0.10-rc2
MinGW 3.1.0-1
gcc-core 3.3.1
binutils 2.14.90

I have compiled and installed successfully the prerequisite libgpg-
error 0.5 library, but am coming across errors in the libgcrypt make
process itself:

make all-recursive
make[1]: Entering directory `/home/Administrator/work/libgcrypt-1.1.42'
Making all in mpi
make[2]: Entering directory `/home/Administrator/work/libgcrypt-
1.1.42/mpi'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/Administrator/work/libgcrypt-
1.1.42/mpi'
Making all in cipher
make[2]: Entering directory `/home/Administrator/work/libgcrypt-
1.1.42/cipher'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -
I../src
-c -o rndw32.lo `test -f 'rndw32.c' || echo './'`rndw32.c; \
then mv -f ".deps/rndw32.Tpo" ".deps/rndw32.Plo"; \
else rm -f ".deps/rndw32.Tpo"; exit 1; \
fi
rm -f .libs/rndw32.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/local/include -g -O2 -
Wall -MT
In file included from rndw32.c:58:
../src/types.h:46: warning: redefinition of `byte'
c:/mingw/include/rpcndr.h:50: warning: `byte' previously declared here
rndw32.c: In function `slow_gatherer_windowsNT':
rndw32.c:602: `DISK_PERFORMANCE' undeclared (first use in this function)
rndw32.c:602: (Each undeclared identifier is reported only once
rndw32.c:602: for each function it appears in.)
rndw32.c:602: parse error before "diskPerformance"
rndw32.c:615: `diskPerformance' undeclared (first use in this function)
../src/gcrypt.h: At top level:
rndw32.c:716: warning: `gather_random' defined but not used
rndw32.c:766: warning: `gather_random_fast' defined but not used
make[2]: *** [rndw32.lo] Error 1
make[2]: Leaving directory `/home/Administrator/work/libgcrypt-
1.1.42/cipher'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/work/libgcrypt-1.1.42'
make: *** [all] Error 2

I must be configuring something wrong.. I would appreciate any insight.

Thanks,
Mike
Re: Problems compling on W2k [ In reply to ]
On Thu, 30 Oct 2003 20:14:28 -0800, Mike Feldmeier said:

> Hi,
> I am attempting to compile libgcrypt 1.1.42 on Windows 2000 with the
> following components:

> MSYS 1.0.10-rc2
> MinGW 3.1.0-1

No guarantee that this will work. As most of you know, I am not using
the mingw thing but the older mingw32/cpd. However Libgcryt does currently
not build for Windows for several reasons.

A fix for your specific problem is to replace the W32 API structure
DISK_PERFORMANCE by a plain buffer of size:

/* This used to be (6*8+5*4+8*2), but Peter Gutmann figured a larger
value in a newer release. So we use a far larger value. */
#define SIZEOF_DISK_PERFORMANCE_STRUCT 256

hth,

Werner

--
Werner Koch <wk@gnupg.org>
The GnuPG Experts http://g10code.com
Free Software Foundation Europe http://fsfeurope.org