IBM Support

IV44595: DEFINITION FOR _JNI_IMPORT_OR_EXPORT_ IS MISSING

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Error Message: unknown type name _JNI_IMPORT_OR_EXPORT_
    .
    Stack Trace: N/A
    .
    The problem occurs when compiling JNI native libraries, such as
    Java Native Access (JNA).
    

Local fix

  • Define _JNI_IMPORT_OR_EXPORT_ as follows
    #ifndef JNIIMPORT
    #define JNIIMPORT
    #endif
    #ifdef _JNI_IMPLEMENTATION_
    #define _JNI_IMPORT_OR_EXPORT_ JNIEXPORT
    #else
    #define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
    #endif
    

Problem summary

  • When native JNI libraries are compiled, a definition for
    _JNI_IMPORT_OR_EXPORT_ may be required, but is missing from
    jni.h
    

Problem conclusion

  • This defect will be fixed in:
    6.0.1 SR6
    7.0.0 SR5
    .
    A definition for _JNI_IMPORT_OR_EXPORT_ is added to jniport.h,
    which is a JVM implementation-specific include file, included by
    jni.h
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV44595

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    260

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-06-21

  • Closed date

    2013-06-21

  • Last modified date

    2013-06-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R260 PSY

       UP



Document information

More support for: Runtimes for Java Technology
Virtual Machine

Software version: 260

Reference #: IV44595

Modified date: 25 June 2013