<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Undefined references: gbm_bo_map and _unmap on Mali"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100978">100978</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Undefined references: gbm_bo_map and _unmap on Mali
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>piglit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>infrastructure
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>baker.dylan.c@gmail.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yosoy@danieldiaz.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>piglit@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When "Linking C executable ../../../../bin/point-sprite", the following errors
are thrown:

  ../../../../lib/libpiglitutil_gl.so.0: undefined reference to `gbm_bo_unmap'
  ../../../../lib/libpiglitutil_gl.so.0: undefined reference to `gbm_bo_map'
  collect2: error: ld returned 1 exit status
  make[2]: *** [bin/point-sprite] Error 1

This is due to CMakeList.txt assuming that gbm >= 12.1 includes gbm_bo_map and
gbm_bo_unmap, but that is not the case with Mali drivers (Mali-T628, Mali-T624,
Mali-450, Mali-T760). GPU drivers can be publicly found here:
  <a href="https://developer.arm.com/products/software/mali-drivers/user-space">https://developer.arm.com/products/software/mali-drivers/user-space</a>

Instead of checking for GBM_VERSION >= 12.1, it should be possible to 
  CHECK_FUNCTION_EXISTS(gbm_bo_map PIGLIT_HAS_GBM_BO_MAP)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>