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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 6.0M3
    • 5.0M16
    • build - test - ci
    • None
    • Ubuntu9
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: