commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRYPTO-65) Warnings compiling on MacOSX - JNIEXPORT redefined
Date Sun, 12 Jun 2016 11:30:25 GMT

    [ https://issues.apache.org/jira/browse/CRYPTO-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326382#comment-15326382
] 

Benedikt Ritter commented on CRYPTO-65:
---------------------------------------

Fixes the problem for me as well.

> 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
>             Fix For: 1.0.0
>
>         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)

Mime
View raw message