You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/06/11 10:16:20 UTC

[jira] [Updated] (CRYPTO-65) Warnings compiling on MacOSX - JNIEXPORT redefined

     [ https://issues.apache.org/jira/browse/CRYPTO-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated CRYPTO-65:
-----------------------
    Summary: Warnings compiling on MacOSX - JNIEXPORT redefined  (was: Problems compiling on MacOSX - JNIEXPORT redefined)

> Warnings 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
>         Attachments: crypto-57.patch
>
>
> 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)