Mailing List Archive

0.9.3 compile problem
Under HP-UX 10.20, the compile fails for rndunix:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl -I/usr/local/include -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c rndunix.c
In file included from dynload.h:23,
from rndunix.c:58:
../include/mpi.h:57: conflicting types for `MPI'
../include/g10lib.h:31: previous declaration of `MPI'
rndunix.c: In function `start_gatherer':
rndunix.c:612: warning: function declaration isn't a prototype
make: *** [rndunix.o] Error 1
make: Target `all' not remade because of errors.


What should I be doing different?

--
David Ellement
Re: 0.9.3 compile problem [ In reply to ]
David Ellement <ellement@sdd.hp.com> writes:

> ../include/mpi.h:57: conflicting types for `MPI'
> ../include/g10lib.h:31: previous declaration of `MPI'
> rndunix.c: In function `start_gatherer':
> rndunix.c:612: warning: function declaration isn't a prototype

Try this: (don't know why it does not happen on my machines)

diff -ur archive/gnupg-0.9.3/include/g10lib.h gnupg/include/g10lib.h
--- archive/gnupg-0.9.3/include/g10lib.h Wed Jan 20 17:57:32 1999
+++ gnupg/include/g10lib.h Sat Feb 20 19:26:19 1999
@@ -25,11 +25,7 @@
#endif


-
-#ifndef _g10lib_INTERNAL
-struct g10mpi_struct { int hidden_stuff; };
-typedef struct g10mpi_struct *MPI;
-#endif
+#include "mpi.h"

int g10c_debug_mode;
int g10_opt_verbose;



--
ceterum censeo RSA esse delendam