IBM Support

IV44595: DEFINITION FOR _JNI_IMPORT_OR_EXPORT_ IS MISSING

Subscribe

You can track all active APARs for this component.

 

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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022