<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 - libmnl does not compile with #undef HAVE_VISIBILITY_HIDDEN"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1223">1223</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libmnl does not compile with #undef HAVE_VISIBILITY_HIDDEN
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libmnl
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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>libmnl
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>g.telkamp@domologic.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I've tried to compile libmnl without the HAVE_VISIBILITY_HIDDEN option, so in
my case config.h defines
#undef HAVE_VISIBILITY_HIDDEN

internal.h uses this option and declares the EXPORT_SYMBOL macro:
#include "config.h"
#ifdef HAVE_VISIBILITY_HIDDEN
#    define __visible    __attribute__((visibility("default")))
#    define EXPORT_SYMBOL(x)    typeof(x) (x) __visible
#else
#    define EXPORT_SYMBOL
#endif

This causes compilation problems when EXPORT_SYMBOL is used, e.g. in socket.c:
EXPORT_SYMBOL(mnl_socket_get_fd);
int mnl_socket_get_fd(const struct mnl_socket *nl)
{
    return nl->fd;
}

So I think EXPORT_SYMBOL should be defined as
...
#else
#       define EXPORT_SYMBOL(x)
#endif
?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>