Harmony
  1. Harmony
  2. HARMONY-6665

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial 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

      1. 6665.patch
        0.6 kB
        Ladislav Jahoda

        Activity

        Hide
        Ladislav Jahoda added a comment -

        gcc 4.4.1 compile fix

        Show
        Ladislav Jahoda added a comment - gcc 4.4.1 compile fix
        Hide
        Tim Ellison added a comment -

        Thanks Ladislav.

        Patch applied at repo revision r1004036.

        Please verify the fix is good.

        Show
        Tim Ellison added a comment - Thanks Ladislav. Patch applied at repo revision r1004036. Please verify the fix is good.
        Hide
        Ladislav Jahoda added a comment -

        Recompiled vts with gcc 4.4.1, problem is fixed, thanks.

        Show
        Ladislav Jahoda added a comment - Recompiled vts with gcc 4.4.1, problem is fixed, thanks.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development