Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Mart Frauenlob <mart.frauenlob@chello.at>
To: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: Failing to compile latest iptables from git
Date: Thu, 11 Feb 2016 04:34:09 +0100	[thread overview]
Message-ID: <56BC0131.3030900@chello.at> (raw)
In-Reply-To: <56BA5718.6040403@chello.at>

On 09.02.2016 22:16, netfilter-owner@vger.kernel.org wrote:
> Hello list,
>
> I'm trying to prepare a patch for iptables, but unfortunately I'm
> failing to build it. I've done it many times before, but this time I
> don't know what's wrong, so I hope for your assistance.
>
> The ./configure step runs just fine. It stops at the make process with
> this error:
>
>    CC       libxt_connlabel.oo
>    CCLD     libxt_connlabel.so
> libxt_connlabel.oo: In function `connlabel_open':
> /home/ellen/git/iptables.git/extensions/libxt_connlabel.c:40: undefined
> reference to `nfct_labelmap_new'
> libxt_connlabel.oo: In function `connlabel_mt_parse':
> /home/ellen/git/iptables.git/extensions/libxt_connlabel.c:56: undefined
> reference to `nfct_labelmap_get_bit'
> libxt_connlabel.oo: In function `connlabel_get_name':
> /home/ellen/git/iptables.git/extensions/libxt_connlabel.c:76: undefined
> reference to `nfct_labelmap_get_name'
> collect2: ld returned 1 exit status
>
>
> I have installed latest libs (libmnl, libnetlink,
> libnetfilter_conntrack) from git. The ld.so.conf.d files point to the
> libaries but that seems to be ignored (ldconfig was run), so I put this
> into my environment:
>
> export LDFLAGS="-L/usr/local/lib/
> -L/opt/k_3.2.35/libnetfilter_conntrack/lib/
> -L/opt/k_3.2.35/libnfnetlink/lib -L/opt/k_3.2.35/libmnl/lib/"
>
> export LD_LIBRARY_PATH="-L/opt/k_3.2.35/libnfnetlink/lib
> -L/opt/k_3.2.35/libmnl/lib -L/opt/k_3.2.35/libnetfilter_conntrack/lib"
>
> export LD_RUN_PATH="-L/opt/k_3.2.35/libnfnetlink/lib
> -L/opt/k_3.2.35/libmnl/lib -L/opt/k_3.2.35/libnetfilter_conntrack/lib"

omg, those two should be colon separated, not -L prefixed.
Now it works....


      parent reply	other threads:[~2016-02-11  3:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 21:16 Failing to compile latest iptables from git Mart Frauenlob
2016-02-10 16:31 ` Mart Frauenlob
2016-02-11  3:34 ` Mart Frauenlob [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56BC0131.3030900@chello.at \
    --to=mart.frauenlob@chello.at \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox