<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 - does not compile"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88334">88334</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>does not compile
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg git
          </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>DRM/Via
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>openchrome-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>freedesktop5112@mx1.galets.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Similar to <a href="https://freedesktop.org/patch/34699/">https://freedesktop.org/patch/34699/</a>:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -fvisibility=hidden
-I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/X11/dri
-I/usr/include/libdrm -fvisibility=hidden -I/usr/include/xorg
-I/usr/include/pixman-1 -I/usr/include/X11/dri -I/usr/include/libdrm
-I/usr/include/libdrm -I/usr/include/X11/dri -g -O2 -MT via_3d.lo -MD -MP -MF
.deps/via_3d.Tpo -c via_3d.c  -fPIC -DPIC -o .libs/via_3d.o
In file included from /usr/include/string.h:634:0,
                 from /usr/include/xorg/os.h:53,
                 from /usr/include/xorg/misc.h:115,
                 from /usr/include/xorg/xf86str.h:37,
                 from /usr/include/xorg/xf86.h:44,
                 from via_3d.h:27,
                 from via_3d.c:24:
/usr/include/xorg/os.h:579:1: error: expected identifier or ‘(’ before
‘__extension__’
 strndup(const char *str, size_t n);
 ^
Makefile:585: recipe for target 'via_3d.lo' failed


solution: in via_3d.h add:

#include "xorg-server.h"

before:

#include "xf86.h"</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>