Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7003732

Linux SA Makefile could offer same JAVA_HOME warning as Solaris

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Building the serviceability agent on Linux doesn't offer the reminder we have on Solaris: that JAVA_HOME must be set.

      The failure looks like:

      [kevin@oldbox make]$ make natives
      cd ../src/os/`java -classpath ../build/classes
      sun.jvm.hotspot.utilities.PlatformInfo`; make all
      make[1]: Entering directory
      `/home/kevin/work/7003487.sa/hotspot/agent/src/os/linux'
      cc -c -fPIC -g -D_GNU_SOURCE -Damd64 -I/include -I/include/linux -c
      -o ps_core.o ps_core.c
      ps_core.c:25:17: error: jni.h: No such file or directory
      ps_core.c:241: error: expected declaration specifiers or '...' before
      'jboolean'
      ps_core.c: In function 'read_jboolean':
      ps_core.c:242: error: 'jboolean' undeclared (first use in this function)
      ps_core.c:242: error: (Each undeclared identifier is reported only once
      ps_core.c:242: error: for each function it appears in.)
      ps_core.c:242: error: expected ';' before 'i'
      ps_core.c:243: error: 'i' undeclared (first use in this function)
      ps_core.c:244: error: 'pvalue' undeclared (first use in this function)
      ps_core.c: In function 'init_classsharing_workaround':
      ps_core.c:298: error: 'jboolean' undeclared (first use in this function)
      ps_core.c:298: error: expected ';' before 'useSharedSpaces'
      ps_core.c:312: error: 'useSharedSpaces' undeclared (first use in this
      function)
      ps_core.c:312: error: too many arguments to function 'read_jboolean'
      make[1]: *** [ps_core.o] Error 1
      make[1]: Leaving directory
      `/home/kevin/work/7003487.sa/hotspot/agent/src/os/linux'
      make: *** [natives] Error 2

        Attachments

          Activity

            People

            • Assignee:
              jgeorge Jini George (Inactive)
              Reporter:
              kevinw Kevin Walls
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: