commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CRYPTO-65) Problems compiling on MacOSX - JNIEXPORT redefined
Date Sat, 11 Jun 2016 10:14:20 GMT
Sebb created CRYPTO-65:
--------------------------

             Summary: Problems compiling on MacOSX - JNIEXPORT redefined
                 Key: CRYPTO-65
                 URL: https://issues.apache.org/jira/browse/CRYPTO-65
             Project: Commons Crypto
          Issue Type: Bug
            Reporter: Sebb


I get the following warnings on MacOSX:

     [exec] compiling OSInfo.java
     [exec] "$JAVA_HOME/bin/javac" -source 1.6 -target 1.6 -d target/jni-classes -sourcepath
src/main/java src/main/java/org/apache/commons/crypto/random/OpensslCryptoRandomNative.java
     [exec] warning: [options] bootstrap class path not set in conjunction with -source 1.6
     [exec] "$JAVA_HOME/bin/javah" -force -classpath target/jni-classes -o target/jni-classes/org/apache/commons/crypto/random/OpensslCrypto1
warning
     [exec] RandomNative.h org.apache.commons.crypto.random.OpensslCryptoRandomNative
     [exec] gcc -arch x86_64 -Ilib/inc_mac -I/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/include
-O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden -I/usr/local/include -Ilib/include
-I/usr/include -I"src/main/native/org/apache/commons/crypto/" -I"/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/include/darwin"
-I"target/jni-classes/org/apache/commons/crypto/cipher" -I"target/jni-classes/org/apache/commons/crypto/random"
-c src/main/native/org/apache/commons/crypto/random/OpensslCryptoRandomNative.c -o target/commons-crypto-1.0.0-SNAPSHOT-Mac-x86_64/OpensslCryptoRandom.o
     [exec] src/main/native/org/apache/commons/crypto/random/OpensslCryptoRandomNative.c:37:9:
warning: 'JNIEXPORT' macro redefined [-Wmacro"$JAVA_HOME/bin/javac" -source 1.6 -target 1.6
-d target/jni-classes -sourcepath src/main/java src/main/java/org/apache/commons/-redefined]
     [exec] #define JNIEXPORT __attribute__((__visibility__("default")))
     [exec]         ^
     [exec] /Library/Java/JavaVirtualMachines/jdk1.7.0_79crypto/cipher/OpensslNative.java
     [exec] .jdk/Contents/Home/include/darwin/jni_md.h:29:9: note: previous definition is
here
     [exec] #define JNIEXPORT
     [exec]         ^
     [exec] 1 warning generated.
     [exec] warning: [options] bootstrap class path not set in conjunction with -source 1.6
     [exec] "$JAVA_HOME/bin/javah" -force -classpath target/jni-classes -o target/jni-classes/org/apache/commons/crypto/cipher/OpensslNative.h
org.apache.commons.crypto.cipher.OpensslNative
     [exec] 1 warning
     [exec] gcc -arch x86_64 -Ilib/inc_mac -I/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/include
-O2 -fPIC -mmacosx-version-min=10.5 -fvisibility=hidden -I/usr/local/include -Ilib/include
-I/usr/include -I"src/main/native/org/apache/commons/crypto/" -I"/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/include/darwin"
-I"target/jni-classes/org/apache/commons/crypto/cipher" -I"target/jni-classes/org/apache/commons/crypto/random"
-c src/main/native/org/apache/commons/crypto/cipher/OpensslNative.c -o target/commons-crypto-1.0.0-SNAPSHOT-Mac-x86_64/OpensslNative.o
     [exec] src/main/native/org/apache/commons/crypto/cipher/OpensslNative.c:26:9: warning:
'JNIEXPORT' macro redefined [-Wmacro-redefined]
     [exec] #define JNIEXPORT __attribute__((__visibility__("default")))
     [exec]         ^
     [exec] /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/include/darwin/jni_md.h:29:9:
note: previous definition is here
     [exec] #define JNIEXPORT
     [exec]         ^
     [exec] 1 warning generated.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message