gnupg 1.9.7 troubles
Michael Nottebrock
michaelnottebrock at gmx.net
Mon Apr 19 18:58:40 CEST 2004
With the libassuan issues solved, I've proceeded to gnupg-1.9.7 and again had
to jump a few hurdles:
1.) In common/fopencookie.c, the compilation fails with
fopencookie.c:31: syntax error before `cookie_io_functions_t'
I can work around that by recycling a typedef from the newpg sources:
#include "util.h"
+typedef struct
+{
+ ssize_t (*read)(void*,char*,size_t);
+ ssize_t (*write)(void*,const char*,size_t);
+ int (*seek)(void*,off_t*,int);
+ int (*close)(void*);
+} _IO_cookie_io_functions_t;
+typedef _IO_cookie_io_functions_t cookie_io_functions_t;
+
FILE *
fopencookie (void *cookie, const char *opentype,
cookie_io_functions_t funclist)
2.) kbx/keybox-blob.c and kbx/keybox-dump.c need to include ../jnlib/types.h
in order to compile:
+#include "../jnlib/types.h"
#include "keybox-defs.h"
3.) agent/gpg-agent.c needs additional includes as well:
# include <pth.h>
#endif
+#include <sys/types.h>
+#include <sys/stat.h>
+
#define JNLIB_NEED_LOG_LOGV
#include "agent.h"
#include <assuan.h> /* malloc hooks */
4.) cc -I/usr/local/include -O -pipe -mcpu=pentiumpro -I/usr/local/include
-L/usr/local/lib -Wall -L/usr/local/lib -L/usr/local/lib -o gpgconf
gpgconf.o gpgconf-comp.o
no-libgcrypt.o ../jnlib/libjnlib.a ../common/libcommon.a /usr/local/lib/libintl.so
-Wl,-rpath -Wl,/usr/local/lib -lz
gpgconf-comp.o: In function `retrieve_options_from_program':
gpgconf-comp.o(.text+0xd15): undefined reference to `getline'
gpgconf-comp.o(.text+0xfe5): undefined reference to `getline'
gpgconf-comp.o: In function `retrieve_options_from_file':
gpgconf-comp.o(.text+0x1282): undefined reference to `getline'
gpgconf-comp.o: In function `change_options_file':
gpgconf-comp.o(.text+0x1ada): undefined reference to `getline'
gpgconf-comp.o(.text+0x1c98): undefined reference to `getline'
gpgconf-comp.o(.text+0x2029): more undefined references to `getline' follow
I haven't found a workaround for that one yet.
--
,_, | 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/22b6c2aa/attachment.bin
More information about the Gpa-dev
mailing list