gnupg 1.9.7 troubles

Michael Nottebrock <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gpa.devel
Message-ID <[email protected]>
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               | [email protected]
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org

_______________________________________________
Gpa-dev mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gpa-dev
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAhAVDXhc68WspdLARAtoJAJ904LNL2Jn9p0tSRYW6UUIgPyrFtgCgoVId
UB70Wxg9/LsSXKJI0ZvQYBY=
=MLsh
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.