Uploaded image for project: 'Commons Crypto'
  1. Commons Crypto
  2. CRYPTO-65

Warnings compiling on MacOSX - JNIEXPORT redefined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      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.

      Attachments

        1. crypto-57.patch
          1 kB
          Sebb

        Activity

          People

            britter Benedikt Ritter
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: