add gnupg-for-java fork to git.gnupg.org

Robert J. Hansen rjh at sixdemonbag.org
Wed Jul 30 20:56:38 CEST 2014


> On http://git.gnupg.org/ it lists the old, unmaintained
> gnupg-for-java.  Could this page instead point to the maintained
> version that works with gnupg 2.x?

I would like to see it compile out of the box first.  From a checkout
made just a few minutes ago on a fully updated Fedora 20 box with all
the necessary development libraries and the latest Java 1.8 JDK:

=====


[rjh at flynn gnupg-for-java]$ ant
Buildfile: /home/rjh/Projects/gnupg-for-java/build.xml

prepare:

compile-java:
    [mkdir] Created dir: /home/rjh/Projects/gnupg-for-java/build/classes
    [javac] /home/rjh/Projects/gnupg-for-java/build.xml:21: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds
    [javac] Compiling 8 source files to
/home/rjh/Projects/gnupg-for-java/build/classes

gen-jni-headers:

prepare:

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

generate-jni-headers:
     [exec] /usr/java/jdk1.8.0_11/bin/javah -classpath
/home/rjh/Projects/gnupg-for-java/build/classes -jni
com.freiheit.gnupg.GnuPGContext  com.freiheit.gnupg.GnuPGData
com.freiheit.gnupg.GnuPGGenkeyResult  com.freiheit.gnupg.GnuPGKey
com.freiheit.gnupg.GnuPGSignature

gen-jni-library:

recompile-c-code:
     [exec] gcc -g -Werror -Wall -Wno-deprecated-declarations -fPIC
-D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1
-I"/usr/java/jdk1.8.0_11/include"
-I"/usr/java/jdk1.8.0_11/include/linux" -c GnuPGContext.c
     [exec] GnuPGContext.c: In function
‘Java_com_freiheit_gnupg_GnuPGContext_gpgmeGetSignersLength’:
     [exec] GnuPGContext.c:487:5: error: implicit declaration of
function ‘gpgme_signers_count’ [-Werror=implicit-function-declaration]
     [exec]      return (gpgme_signers_count(CONTEXT(context)));
     [exec]      ^
     [exec] cc1: all warnings being treated as errors
     [exec] make: *** [GnuPGContext.o] Error 1

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

Total time: 4 seconds



More information about the Gnupg-devel mailing list