<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 - build_id.c:36:20: error: unknown type name 'Elf_Nhdr'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99956">99956</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>build_id.c:36:20: error: unknown type name 'Elf_Nhdr'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

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

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

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

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

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

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

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>emil.l.velikov@gmail.com, jsg@openbsd.org, mattst88@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: 292c24ddac5acc35676424f05291c101fcd47b3e (master 17.1.0-devel)

FreeBSD build error.

  CC       libmesautil_la-build_id.lo
build_id.c:36:20: error: unknown type name 'Elf_Nhdr'
 #define ElfW(type) Elf_##type
                    ^
build_id.c:42:4: note: in expansion of macro 'ElfW'
    ElfW(Nhdr) nhdr;
    ^
build_id.c: In function 'build_id_find_nhdr_callback':
build_id.c:71:24: error: request for member 'n_type' in something not a
structure or union
          if (note->nhdr.n_type == NT_GNU_BUILD_ID &&
                        ^
build_id.c:72:23: error: request for member 'n_descsz' in something not a
structure or union
             note->nhdr.n_descsz != 0 &&
                       ^
build_id.c:73:23: error: request for member 'n_namesz' in something not a
structure or union
             note->nhdr.n_namesz == 4 &&
                       ^
build_id.c:36:20: error: 'Elf_Nhdr' undeclared (first use in this function)
 #define ElfW(type) Elf_##type
                    ^
build_id.c:79:33: note: in expansion of macro 'ElfW'
          size_t offset = sizeof(ElfW(Nhdr)) +
                                 ^
build_id.c:36:20: note: each undeclared identifier is reported only once for
each function it appears in
 #define ElfW(type) Elf_##type
                    ^
build_id.c:79:33: note: in expansion of macro 'ElfW'
          size_t offset = sizeof(ElfW(Nhdr)) +
                                 ^
build_id.c:80:42: error: request for member 'n_namesz' in something not a
structure or union
                          ALIGN(note->nhdr.n_namesz, 4) +
                                          ^
build_id.c:39:35: note: in definition of macro 'ALIGN'
 #define ALIGN(val, align)      (((val) + (align) - 1) & ~((align) - 1))
                                   ^
build_id.c:81:42: error: request for member 'n_descsz' in something not a
structure or union
                          ALIGN(note->nhdr.n_descsz, 4);
                                          ^
build_id.c:39:35: note: in definition of macro 'ALIGN'
 #define ALIGN(val, align)      (((val) + (align) - 1) & ~((align) - 1))
                                   ^
build_id.c: In function 'build_id_length':
build_id.c:107:21: error: request for member 'n_descsz' in something not a
structure or union
    return note->nhdr.n_descsz;
                     ^
build_id.c:108:1: warning: control reaches end of non-void function
[-Wreturn-type]
 }
 ^</pre>
        </div>
      </p>


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

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