From: "Rob Sterenborg (lists)" <lists@sterenborg.info>
To: Netfilter <netfilter@vger.kernel.org>
Subject: Compiling conntrack-tools
Date: Wed, 18 Jan 2012 17:04:25 +0100 [thread overview]
Message-ID: <1326902665.2646.20.camel@ns014530.dcyb.net> (raw)
Hello,
I'm trying to compile conntrack-tools-1.0.1 on CentOS 6.
I confirmed that the kernel is sufficient new (2.6.32-71.el6.x86_64),
and that the kernel build parameters are set as per README.
I installed libnfnetlink and libnetfilter_conntrack in /usr/local. I
made sure /etc/ld.conf contains /usr/local/lib and ran ldconfig
(multiple times).
When running configure for conntrack-tools, it doesn't complain about
not finding either libnfnetlink or libnetfilter_conntrack:
checking for LIBNFNETLINK... yes
checking for LIBNETFILTER_CONNTRACK... yes
I'm using the following to configure conntrack-tools:
# export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
# LIBNFNETLINK_CFLAGS="-I/usr/local/include" \
LIBNFNETLINK_LIBS="-L/usr/local/lib" \
LIBNETFILTER_CONNTRACK_CFLAGS="-I/usr/local/include" \
LIBNETFILTER_CONNTRACK_LIBS="-L/usr/local/lib" \
./configure --prefix=/usr/local
When running make, it gives an error when compiling conntrack.c:
[...]
Making all in src
make[1]: Entering directory
`/usr/local/src/netfilter/conntrack-tools-1.0.1/src'
CC conntrack.o
CCLD conntrack
conntrack.o: In function `alloc_tmpl_objects':
conntrack.c:(.text+0x71): undefined reference to `nfct_new'
conntrack.c:(.text+0x7d): undefined reference to `nfct_new'
conntrack.c:(.text+0x89): undefined reference to `nfct_new'
conntrack.c:(.text+0x95): undefined reference to `nfexp_new'
conntrack.o: In function `free_tmpl_objects':
conntrack.c:(.text+0x10d): undefined reference to `nfct_destroy'
conntrack.c:(.text+0x128): undefined reference to `nfct_destroy'
conntrack.c:(.text+0x143): undefined reference to `nfct_destroy'
conntrack.c:(.text+0x15e): undefined reference to `nfexp_destroy'
conntrack.o: In function `mark_cmp':
conntrack.c:(.text+0x932): undefined reference to `nfct_attr_is_set'
conntrack.c:(.text+0x947): undefined reference to `nfct_get_attr_u32'
[etc etc]
I checked the header files to be included; if they are installed and on
the place the include lines expect them: the files are where they are
expected.
I don't know what to check or what to do further. Can someone please
give me a hint?
Thanks in advance!
--
Rob
next reply other threads:[~2012-01-18 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 16:04 Rob Sterenborg (lists) [this message]
2012-01-18 16:15 ` Compiling conntrack-tools Jan Engelhardt
2012-01-18 16:27 ` Rob Sterenborg (lists)
2012-02-18 8:51 ` ping
2012-02-18 11:10 ` Rob Sterenborg (Lists)
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=1326902665.2646.20.camel@ns014530.dcyb.net \
--to=lists@sterenborg.info \
--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;
as well as URLs for NNTP newsgroup(s).