Page MenuHome GnuPG

Error Making libgcrypt
Closed, ResolvedPublic

Description

I am trying to build gnupg-2.0 on HP Tru64. I am receiving the following error
when compiling libgcrypt-1.4.0:

/bin/ksh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -
I../src -I../src -I/user01/dgrimes/gnupg2/include -g -O2 -Wall -Wpointer-
arith -MT cipher.lo -MD -MP -MF .deps/cipher.Tpo -c -o cipher.lo cipher.c
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -
I/user01/dgrimes/gnupg2/include -g -O2 -Wall -Wpointer-arith -MT cipher.lo -
MD -MP -MF .deps/cipher.Tpo -c cipher.c -DPIC -o .libs/cipher.o
In file included from /usr/local/lib/gcc-lib/alphaev68-dec-
osf5.1/3.1/include/stdlib.h:357,

from cipher.c:23:

random.h:41: parse error before "_gcry_rndegd_set_socket_name"
make[2]: * [cipher.lo] Error 1
make[2]: Leaving directory `/user01/dgrimes/cdev/libgcrypt-1.4.0/cipher'
make[1]:
* [all-recursive] Error 1
make[1]: Leaving directory `/user01/dgrimes/cdev/libgcrypt-1.4.0'
make: *** [all] Error 2

Compiler: gcc-3.1
GNU make: 3.79

Details

Version
1.4.0

Event Timeline

dgrimes set Version to 1.4.0.
dgrimes added a subscriber: dgrimes.

I made the following changes in random.h that at least allowed the program to
finish making:

I changed line 41 from:

gpg_error_t _gcry_rndegd_set_socket_name (const char *name);

To:

int _gcry_rndegd_set_socket_name (const char *name);

Did you install libgpg-error properly? The type gpg_error_t is defined in
gpg-error.h and included by gcrypt.h.

I'm pretty sure I have it installed correctly. There's really not that much to
it. All of the gpg-error files are in /usr/local and I do see the gpg-error.h
file with the typedef for gpg_error_t. Is it possible that there is a problem
with gcc-3.1?

I just added #include "gpg-error.h" to random.h and all compiled OK.

dgrimes claimed this task.