<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 - piglit_drm_dma_buf.c:265:12: error: ‘GBM_FORMAT_R8’ undeclared"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101358">101358</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>piglit_drm_dma_buf.c:265:12: error: ‘GBM_FORMAT_R8’ undeclared
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

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

        <tr>
          <th>Keywords</th>
          <td>bisected, regression
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>piglit@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>piglit@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>baker.dylan.c@gmail.com, jan.vesely@rutgers.edu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>piglit: bc6ef16dfa432c181e3c0e44223a651e3ea50f76 (master)
libgbm-dev: 12.0.6-0ubuntu0.16.10.1

[  0%] Building C object
target_api/gl/tests/util/CMakeFiles/piglitutil_gl.dir/piglit-framework-gl/piglit_drm_dma_buf.c.o
piglit/tests/util/piglit-framework-gl/piglit_drm_dma_buf.c: In function
‘piglit_gbm_buf_create’:
piglit/tests/util/piglit-framework-gl/piglit_drm_dma_buf.c:265:12: error:
‘GBM_FORMAT_R8’ undeclared (first use in this function)
   format = GBM_FORMAT_R8;
            ^~~~~~~~~~~~~
piglit/tests/util/piglit-framework-gl/piglit_drm_dma_buf.c:265:12: note: each
undeclared identifier is reported only once for each function it appears in
piglit/tests/util/piglit-framework-gl/piglit_drm_dma_buf.c:271:12: error:
‘GBM_FORMAT_GR88’ undeclared (first use in this function)
   format = GBM_FORMAT_GR88;
            ^~~~~~~~~~~~~~~


Build error introduced with this commit.

commit 2217871ac93765a0722c77427d5880154ae91ef9
Author: Daniel Diaz <<a href="mailto:daniel.diaz@linaro.org">daniel.diaz@linaro.org</a>>
Date:   Tue May 16 19:06:40 2017 -0500

    CMake: define GBM_BO_MAP only when symbol is found

    gbm_bo_map() and _unmap() have been added recently to Mesa,
    and this update may not have reached all implementations of
    GBM, such as the one provided by Mali r6, where said
    definitions can be found in the header file but not in the
    library itself. This leads to errors like the following when
    linking:
      ../../../../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

    Instead of relying on the header file, actually try to link
    using that symbol to determine if PIGLIT_HAS_GBM_BO_MAP
    should be defined.

    Signed-off-by: Daniel Díaz <<a href="mailto:daniel.diaz@linaro.org">daniel.diaz@linaro.org</a>>
    Reviewed-by: Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu">jan.vesely@rutgers.edu</a>>
    Reviewed-by: Dylan Baker <<a href="mailto:dylan@pnwbakers.com">dylan@pnwbakers.com</a>></pre>
        </div>
      </p>


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

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