gnupg-for-java updated for GnuPG 2.x

Robert J. Hansen rjh at sixdemonbag.org
Fri Mar 14 06:27:09 CET 2014


> We have done a lot of work to it, including new features, many bug fixes, and
> a port from GnuPG 1.4 to GnuPG 2.1.  I've finally split out our work from the
> Android project into its own repository:

Unfortunately, this does not build under Ubuntu 13.10 with the latest
Oracle JDK.


rjh at ubuntu:~/Projects/gnupg-for-java$ javac -version
javac 1.7.0_51


rjh at ubuntu:~/Projects/gnupg-for-java$ ant
Buildfile: /home/rjh/Projects/gnupg-for-java/build.xml

prepare:

compile-java:
    [javac] /home/rjh/Projects/gnupg-for-java/build.xml:15: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

gen-jni-header:

prepare:

compile-java:
    [javac] /home/rjh/Projects/gnupg-for-java/build.xml:15: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

generate-jni-headers:
     [exec] make: Nothing to be done for `header'.

gen-jni-library:

recompile-c-code:
     [exec] gcc -g -m64 -Werror -Wall -Wno-deprecated-declarations -fPIC
 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1
-I/usr/lib/jvm/java-7-oracle/include
-I/usr/lib/jvm/java-7-oracle/include/linux -c GnuPGData.c
     [exec] GnuPGData.c: In function
‘Java_com_freiheit_gnupg_GnuPGData_gpgmeDataRead’:
     [exec] GnuPGData.c:135:13: error: variable ‘written’ set but not
used [-Werror=unused-but-set-variable]
     [exec]      ssize_t written;
     [exec]              ^
     [exec] cc1: all warnings being treated as errors
     [exec] make: *** [GnuPGData.o] Error 1

BUILD FAILED
/home/rjh/Projects/gnupg-for-java/build.xml:84: The following error
occurred while executing this line:
/home/rjh/Projects/gnupg-for-java/build.xml:77: exec returned: 2

Total time: 2 seconds



More information about the Gnupg-devel mailing list