[Bug 1205] New: libnftl symbols not visible when built with clang

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Dec 14 20:05:51 CET 2017


https://bugzilla.netfilter.org/show_bug.cgi?id=1205

            Bug ID: 1205
           Summary: libnftl symbols not visible when built with clang
           Product: netfilter/iptables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: unknown
          Assignee: netfilter-buglog at lists.netfilter.org
          Reporter: krejzi at email.com

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]
http://git.netfilter.org/libmnl/commit/?id=dcdb47373a375087d2dd8cee5e2a9c66fcc147eb
[2]
https://github.com/elkrejzi/pacman/blob/master/pkgbuild/libnftnl/libnftnl-fixes.patch

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20171214/9c76ecea/attachment.html>


More information about the netfilter-buglog mailing list