Cross-compiling GPA for MinGW

Markus Gerwinski markus@gerwinski.de
Fri Nov 29 00:13:02 2002


Timo Schulz wrote:
> > configure.ac
> Oops, I forgot the line...line 162.

Thanks. :-)  The autogen.sh runs fine now... but the make gives my a strange error message:

/bin/sh ../libtool --mode=compile /usr/local/lib/mingw32-cpd/bin/i386--mingw32-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include    -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c -o assuan-util.lo `test -f 'assuan-util.c' || echo './'`assuan-util.c
/usr/local/lib/mingw32-cpd/bin/i386--mingw32-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -c assuan-util.c -Wp,-MD,.deps/assuan-util.TPlo -o assuan-util.o
In file included from assuan-defs.h:25,
                 from assuan-util.c:26:
		 assuan.h:184: parse error before `pid_t'
		 assuan.h:184: warning: function declaration isn't a prototype
		 assuan.h:188: parse error before `assuan_get_pid'
		 assuan.h:188: warning: type defaults to `int' in declaration of `assuan_get_pid'
		 assuan.h:188: warning: data definition has no type or storage class
		 In file included from assuan-util.c:26:
		 assuan-defs.h:76: parse error before `pid_t'
		 assuan-defs.h:76: warning: no semicolon at end of struct or union
		 assuan-defs.h:80: parse error before `client_pid'
		 assuan-defs.h:80: warning: type defaults to `int' in declaration of `client_pid'
		 assuan-defs.h:80: warning: data definition has no type or storage class
		 assuan-defs.h:101: parse error before `}'
		 assuan-util.c:35: warning: initialization from incompatible pointer type
		 assuan-util.c: In function `assuan_set_error':
		 assuan-util.c:85: dereferencing pointer to incomplete type
		 assuan-util.c:86: dereferencing pointer to incomplete type
		 assuan-util.c: In function `assuan_set_pointer':
		 assuan-util.c:94: dereferencing pointer to incomplete type
		 assuan-util.c: In function `assuan_get_pointer':
		 assuan-util.c:100: dereferencing pointer to incomplete type
		 assuan-util.c:101: warning: control reaches end of non-void function
		 assuan-util.c: In function `assuan_set_log_stream':
		 assuan-util.c:109: dereferencing pointer to incomplete type
		 assuan-util.c:110: dereferencing pointer to incomplete type
		 assuan-util.c:111: dereferencing pointer to incomplete type
		 assuan-util.c: In function `assuan_begin_confidential':
		 assuan-util.c:121: dereferencing pointer to incomplete type
		 assuan-util.c: In function `assuan_end_confidential':
		 assuan-util.c:130: dereferencing pointer to incomplete type
		 make[3]: *** [assuan-util.lo] Fehler 1

What's that?

Thanks,

  Markus