gnupg 1.9.7 troubles

Michael Nottebrock michaelnottebrock at gmx.net
Mon Apr 19 20:17:26 CEST 2004


On Monday 19 April 2004 20:08, Werner Koch wrote:
> On Mon, 19 Apr 2004 18:58:40 +0200, Michael Nottebrock said:
> > 1.) In common/fopencookie.c, the compilation fails with
> >
> > fopencookie.c:31: syntax error before `cookie_io_functions_t'
>
> There is again a problem with an autoconf check.

FWIW, config.h yields:

/* #undef HAVE_FOPENCOOKIE */

and

#define HAVE_FUNOPEN 1

which is correct.

> I checked the whole 
> stuff once on netbsd.  *BSD provides funopen and at most places we use
> funopen and emulate it using fopencookie on glibc.
>
> > +#include "../jnlib/types.h"
> >  #include "keybox-defs.h"
>
> Hmmm....are you sure that your system is properly configured? Did you
> override the CFLAGS?

This is readily reproducable on several systems (and it's been an issue back 
in newpg as well). The errors are:

cc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl 
-DLOCALEDIR=\"/usr/local/share/locale\" -I../common -I../intl  
-I/usr/local/include  -I/usr/local/include -I/usr/local/include  
-I/usr/local/include -I/usr/local/include  -O -pipe  -I/usr/local/include 
-L/usr/local/lib -Wall -c `test -f 'keybox-blob.c' || echo './'`keybox-blob.c
In file included from keybox-blob.c:116:
/usr/local/include/gcrypt.h:174: warning: `struct timeval' declared inside 
parameter list
/usr/local/include/gcrypt.h:174: warning: its scope is only this definition or 
declaration, which is probably not what you want.
keybox-blob.c:149: syntax error before `ulong'
keybox-blob.c:153: syntax error before `ulong'
keybox-blob.c: In function `create_blob_header':
keybox-blob.c:554: structure has no member named `off_kid_addr'
keybox-blob.c:568: structure has no member named `off_addr'
keybox-blob.c:603: structure has no member named `off_kid_addr'
keybox-blob.c:608: structure has no member named `off_kid_addr'
keybox-blob.c:609: structure has no member named `off_kid_addr'
keybox-blob.c:622: structure has no member named `off_addr'

and

cc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl 
-DLOCALEDIR=\"/usr/local/share/locale\" -I../common -I../intl  
-I/usr/local/include  -I/usr/local/include -I/usr/local/include  
-I/usr/local/include -I/usr/local/include  -O -pipe  -I/usr/local/include 
-L/usr/local/lib -Wall -c `test -f 'keybox-dump.c' || echo './'`keybox-dump.c
keybox-dump.c:30: syntax error before `get32'
keybox-dump.c:31: warning: return-type defaults to `int'
keybox-dump.c: In function `get32':
keybox-dump.c:32: syntax error before `a'
keybox-dump.c:33: `a' undeclared (first use in this function)
keybox-dump.c:33: (Each undeclared identifier is reported only once
keybox-dump.c:33: for each function it appears in.)
keybox-dump.c:38: warning: control reaches end of non-void function
keybox-dump.c: At top level:
keybox-dump.c:41: syntax error before `get16'
keybox-dump.c:42: warning: return-type defaults to `int'
keybox-dump.c: In function `get16':
keybox-dump.c:43: syntax error before `a'
keybox-dump.c:44: `a' undeclared (first use in this function)
keybox-dump.c:47: warning: control reaches end of non-void function
keybox-dump.c: In function `_keybox_dump_blob':
keybox-dump.c:95: syntax error before `n'
keybox-dump.c:110: `n' undeclared (first use in this function)
keybox-dump.c:163: `rawdata_off' undeclared (first use in this function)
keybox-dump.c:164: `rawdata_len' undeclared (first use in this function)
keybox-dump.c:169: `nkeys' undeclared (first use in this function)
keybox-dump.c:176: `keyinfolen' undeclared (first use in this function)
keybox-dump.c:180: warning: left-hand operand of comma expression has no 
effect
keybox-dump.c:183: syntax error before `kidoff'
keybox-dump.c:188: `kidoff' undeclared (first use in this function)
keybox-dump.c:194: `kflags' undeclared (first use in this function)
keybox-dump.c:200: `nserial' undeclared (first use in this function)
keybox-dump.c:206: warning: left-hand operand of comma expression has no 
effect
keybox-dump.c:212: `nuids' undeclared (first use in this function)
keybox-dump.c:214: `uidinfolen' undeclared (first use in this function)
keybox-dump.c:218: warning: left-hand operand of comma expression has no 
effect
keybox-dump.c:220: syntax error before `uidoff'
keybox-dump.c:222: `uidoff' undeclared (first use in this function)
keybox-dump.c:223: `uidlen' undeclared (first use in this function)
keybox-dump.c:244: `uflags' undeclared (first use in this function)
keybox-dump.c:262: `nsigs' undeclared (first use in this function)
keybox-dump.c:264: `siginfolen' undeclared (first use in this function)
keybox-dump.c:268: warning: left-hand operand of comma expression has no 
effect
keybox-dump.c:270: syntax error before `sflags'
keybox-dump.c:272: `sflags' undeclared (first use in this function)

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : /pipermail/attachments/20040419/922c982c/attachment.bin


More information about the Gpa-dev mailing list