<html>
    <head>
      <base href="https://bugzilla.netfilter.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 - libnftl symbols not visible when built with clang"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1205">1205</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libnftl symbols not visible when built with clang
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>netfilter/iptables
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>unknown
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>krejzi@email.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I couldn't find a component for libnftnl, so I added the person who did last
couple of releases to CC. Please reassign as needed.

When building libnftl with clang, the following warnings are being output:

ruleset.c:611:1: warning: attribute declaration must precede definition
[-Wignored-attributes]
EXPORT_SYMBOL(nftnl_ruleset_parse_buffer_cb);

This results in libnftnl library without any exported symbols. A similar
problem was found and fixed in libmnl [1]. The patch is the same, and there's
one for version libnftnl-1.0.7 [2] (doesn't apply to git master anymore) which
makes libnftnl build cleanly and makes the required symbols visible again.

[1]
<a href="http://git.netfilter.org/libmnl/commit/?id=dcdb47373a375087d2dd8cee5e2a9c66fcc147eb">http://git.netfilter.org/libmnl/commit/?id=dcdb47373a375087d2dd8cee5e2a9c66fcc147eb</a>
[2]
<a href="https://github.com/elkrejzi/pacman/blob/master/pkgbuild/libnftnl/libnftnl-fixes.patch">https://github.com/elkrejzi/pacman/blob/master/pkgbuild/libnftnl/libnftnl-fixes.patch</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>