<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 - xf86-video-intel-2.99.917 should check for <alloca.h> being needed"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89762">89762</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xf86-video-intel-2.99.917 should check for <alloca.h> being needed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.7 (2012.06)
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Solaris
          </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>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>richard@netbsd.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To get over errors compiling the latest intel driver on solaris with pkgsrc
I needed to do the following quick and dirty patch:

<span class="quote">>--- src/sna/sna_display.c.orig  2014-12-20 13:45:31.000000000 +0000
>+++ src/sna/sna_display.c
>@@ -72,6 +72,9 @@
> #include <memcheck.h>
> #endif

>+#ifdef __sun
>+#include <alloca.h>
>+#endif
> /* Minor discrepancy between 32-bit/64-bit ABI in old kernels */
> union compat_mode_get_connector{
>    struct drm_mode_get_connector conn;</span >


perhaps adding a configure time check to allow 
<span class="quote">>#if HAVE_ALLOCA
>#include <alloca.h>
>#endif</span >

would be preferable.

At the same time I notice an error in configure using `pwd` with arguments.
Some shells, such as pdksh, balk at that thus:
./configure[24230]: pwd: too many arguments

<span class="quote">>xf86-video-intel 2.99.917 will be compiled with:
>  Xorg Video ABI version: 12.1
>  Acceleration backends: none *sna uxa
>  Additional debugging support? none
>  Support for Kernel Mode Setting? yes
>  Support for legacy User Mode Setting (for i810)? yes
>  Support for Direct Rendering Infrastructure: DRI1 DRI2
>  Support for Xv motion compensation (XvMC and libXvMC): no
>  Build additional tools and utilities? none</span >


this is the ugly line:
<span class="quote">>24230 test -e `pwd $0`/README && cat `pwd $0`/README</span ></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>