#3 Problems compiling isnativec-5.6.20131203

v1.0 (example)
open
nobody
None
5
2014-08-26
2014-06-23
Mario Fetka
No

at the moment i have problems compiling this part of the framwork with java 1.7 (icedtea and oracle-jdk 7U55)

Buildfile: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build.xml

init:

make-structure:
[mkdir] Created dir: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/build
[mkdir] Created dir: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/dist
[mkdir] Created dir: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/javadoc

compile:
[javac] Compiling 59 source files to /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/build
[javac] /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/src/de/intarsys/nativec/jna/JnaNativeInterface.java:43: warning: InternalError is internal proprietary API and may be removed in a future release
[javac] import com.sun.org.apache.xalan.internal.xsltc.compiler.util.InternalError;
[javac] ^
[javac] /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/src/de/intarsys/nativec/jna/JnaNativeInterface.java:79: warning: InternalError is internal proprietary API and may be removed in a future release
[javac] throw new InternalError("can not load JNA");
[javac] ^
[javac] /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/src/de/intarsys/nativec/jna/JnaNativeInterface.java:94: warning: InternalError is internal proprietary API and may be removed in a future release
[javac] throw new InternalError("can not load JNA");
[javac] ^
[javac] /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/src/de/intarsys/nativec/jna/JnaNativeInterface.java:170: error: cannot find symbol
[javac] options.put(Library.OPTION_OPEN_FLAGS, -1);
[javac] ^
[javac] symbol: variable OPTION_OPEN_FLAGS
[javac] location: interface Library
[javac] /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/src/de/intarsys/nativec/jna/JnaNativeInterface.java:180: warning: InternalError is internal proprietary API and may be removed in a future release
[javac] throw new InternalError("can not create Pointer");
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] 4 warnings

BUILD FAILED

and with icedtea

Buildfile: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build.xml

init:

make-structure:
[mkdir] Created dir: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/build
[mkdir] Created dir: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/dist
[mkdir] Created dir: /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/javadoc

compile:
[javac] Compiling 59 source files to /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/build/isnativec/build
[javac] /var/tmp/portage/dev-java/isnativec-5.6.20131203/work/distribution/src/de/intarsys/nativec/jna/JnaNativeInterface.java:170: error: cannot find symbol
[javac] options.put(Library.OPTION_OPEN_FLAGS, -1);
[javac] ^
[javac] symbol: variable OPTION_OPEN_FLAGS
[javac] location: interface Library
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED

any help welcome

the build.xml is the same as with the other patch tickets

Discussion

  • mtraut
    mtraut
    2014-06-23

    This is an error resulting from an automatic import to "InternalError" from an erroneous package. Just replace it with the "java.lang.InternalError"

    We are sorry for the inconvenience.

    Michael

     
    Last edit: mtraut 2014-06-23
  • Mario Fetka
    Mario Fetka
    2014-06-23

    thx these 3 warnings wont hurt but the last error cannot find symbol is what stops the compile.

     
  • Elfi Heck
    Elfi Heck
    2014-06-23

    Seems as if your version of JNA doesn't have that constant. It was introduced in JNA 3.5 (I think)

     
  • Mario Fetka
    Mario Fetka
    2014-06-23

    and now the funny thing i have replaced jna 3.4.0 with 4.1.0 and the same error

    here the logs
    http://pastebin.com/FRAELT8c

    thx for your help in AV

     
  • Elfi Heck
    Elfi Heck
    2014-06-23

    Hmm. I've checked JNA 4.1.0 and it still has that constant. Could it be that 4.1.0 is now on your build path but for some reason 3.4.0 is also still there (and found before 4.1.0)?

     
  • Mario Fetka
    Mario Fetka
    2014-06-23

    not pssible because the 3.4.0 got replaced with the 4.1.0
    the only think i can think of is that my build.xml is wrong
    i will do some research an repost my findings

     
  • Mario Fetka
    Mario Fetka
    2014-06-23

    th cracy thing is that wuth isnativec 5.4 it still worked

     
  • Elfi Heck
    Elfi Heck
    2014-06-23

    Actually not crazy at all. isnativec was first written when JNA version was below 3.5.0. Over time we used newer JNA versions. And what was new in there. The use of the constant that gives you problems was only introduced in isnativec 5.6. (I remember that I put it in there because JNA was producing and catching a NullPointerException at that time without that option, and my dev environment would always break at that point because I always have a number of exception breakpoints active. I checked the JNA code and decided there would be no harm in setting the option)

     
    Last edit: Elfi Heck 2014-06-23
  • Mario Fetka
    Mario Fetka
    2014-07-14

    i give up and move back to 5.5