Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6665

[buildtest][vts] GetOwnedMonitorInfo0101.cpp doesn't compile with gcc 4.4.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.0M3
    • Fix Version/s: 5.0M16
    • Component/s: build - test - ci
    • Labels:
      None
    • Environment:
      Ubuntu9
    • Patch Info:
      Patch Available

      Description

      GetOwnedMonitorInfo0101.cpp compile with gcc 4.4.1 fails with:

      -compile.jvmti.lib.lnx:
      [echo] File fullname: /tmp/infra/build/checkouts/vts/vm/src/test/vm/jvmti/funcs/GetOwnedMonitorInfo/GetOwnedMonitorInfo0101/GetOwnedMonitorInfo0101.cpp
      [echo] File name(cpp): GetOwnedMonitorInfo0101
      [exec] /tmp/infra/build/checkouts/vts/vm/src/test/vm/jvmti/funcs/GetOwnedMonitorInfo/GetOwnedMonitorInfo0101/GetOwnedMonitorInfo0101.cpp: In function "void Exception(jvmtiEnv*, JNIEnv*, _jobject*, _jmethodID*, jlocation, _jobject*, _jmethodID*, jlocation)":
      [exec] /tmp/infra/build/checkouts/vts/vm/src/test/vm/jvmti/funcs/GetOwnedMonitorInfo/GetOwnedMonitorInfo0101/GetOwnedMonitorInfo0101.cpp:114: error: "strstr" was not declared in this scope
      [exec] /tmp/infra/build/checkouts/vts/vm/src/test/vm/jvmti/funcs/GetOwnedMonitorInfo/GetOwnedMonitorInfo0101/GetOwnedMonitorInfo0101.cpp: In function "jint Agent_OnLoad(JavaVM*, char*, void*)":
      [exec] /tmp/infra/build/checkouts/vts/vm/src/test/vm/jvmti/funcs/GetOwnedMonitorInfo/GetOwnedMonitorInfo0101/GetOwnedMonitorInfo0101.cpp:196: error: "memset" was not declared in this scope
      [exec] Result: 1

        Attachments

        1. 6665.patch
          0.6 kB
          Ladislav Jahoda

          Activity

            People

            • Assignee:
              tellison Tim Ellison
              Reporter:
              lada Ladislav Jahoda
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: