grypt cygwin compile problems

Danilo Reinhardt dreinha1@HTWM.De
Thu, 06 Feb 2003 11:57:25 +0100


Hello everybody.

I try to compile libgcrypt under windows (cygwin 5.1), but I cant get it 
to work. Configure runs without problems (as far as I see)... but in 
compile stage I get an error (at bottom of this mail)

types.h seems not to be included (ssize_t and fd_set are not defined). I 
have also tried to enable DOSISH_SYSTEM, this doesnt help. Any 
suggestions? I think there is simply a wrong config.h or something.

Bye Danilo

snip------

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -Wall -MT primegen.lo 
-MD -MP -
MF .deps/primegen.Tpo -c primegen.c -o primegen.o >/dev/null 2>&1
mv -f .libs/primegen.lo primegen.lo
if /bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I../src
     -g -O2 -Wall -MT random.lo -MD -MP -MF ".deps/random.Tpo" \
  -c -o random.lo `test -f 'random.c' || echo './'`random.c; \
then mv ".deps/random.Tpo" ".deps/random.Plo"; \
else rm -f ".deps/random.Tpo"; exit 1; \
fi
rm -f .libs/random.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -Wall -MT random.lo -MD 
-MP -MF
 .deps/random.Tpo -c random.c  -DDLL_EXPORT -DPIC -o .libs/random.lo
In file included from random.c:58:
../src/ath.h:67: parse error before "_gcry_ath_read"
../src/ath.h:67: warning: type defaults to `int' in declaration of 
`_gcry_ath_re
ad'
../src/ath.h:67: warning: data definition has no type or storage class
../src/ath.h:68: parse error before "_gcry_ath_write"
../src/ath.h:68: warning: type defaults to `int' in declaration of 
`_gcry_ath_wr
ite'
../src/ath.h:68: warning: data definition has no type or storage class
../src/ath.h:69: parse error before "_gcry_ath_select"
../src/ath.h:69: parse error before "fd_set"
../src/ath.h:70: warning: type defaults to `int' in declaration of 
`_gcry_ath_se
lect'
../src/ath.h:70: warning: data definition has no type or storage class
../src/ath.h:71: parse error before "_gcry_ath_waitpid"
../src/ath.h:71: warning: type defaults to `int' in declaration of 
`_gcry_ath_wa
itpid'
../src/ath.h:71: warning: data definition has no type or storage class
../src/ath.h:80: parse error before "ssize_t"
../src/ath.h:80: warning: no semicolon at end of struct or union
../src/ath.h:81: parse error before '*' token
../src/ath.h:81: warning: type defaults to `int' in declaration of `ssize_t'
../src/ath.h:81: `ssize_t' declared as function returning a function
../src/ath.h:81: warning: data definition has no type or storage class
../src/ath.h:82: parse error before '*' token
../src/ath.h:82: parse error before "fd_set"
../src/ath.h:83: warning: type defaults to `int' in declaration of `ssize_t'
../src/ath.h:83: `ssize_t' declared as function returning a function
../src/ath.h:83: warning: data definition has no type or storage class
../src/ath.h:84: parse error before '*' token
../src/ath.h:84: warning: type defaults to `int' in declaration of `ssize_t'
../src/ath.h:84: `ssize_t' declared as function returning a function
../src/ath.h:84: warning: data definition has no type or storage class
../src/ath.h:85: parse error before '}' token
random.c: In function `do_fast_random_poll':
random.c:745: storage size of `buf' isn't known
random.c:746: warning: implicit declaration of function `times'
random.c:745: warning: unused variable `buf'
make[3]: *** [random.lo] Error 1
make[3]: Leaving directory `/home/Dani/libgcrypt-1.1.12/cipher'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Dani/libgcrypt-1.1.12/cipher'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Dani/libgcrypt-1.1.12'
make: *** [all] Error 2