netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compiling conntrack-tools
@ 2012-01-18 16:04 Rob Sterenborg (lists)
  2012-01-18 16:15 ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Sterenborg (lists) @ 2012-01-18 16:04 UTC (permalink / raw)
  To: Netfilter

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-18 11:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 16:04 Compiling conntrack-tools Rob Sterenborg (lists)
2012-01-18 16:15 ` Jan Engelhardt
2012-01-18 16:27   ` Rob Sterenborg (lists)
2012-02-18  8:51     ` ping
2012-02-18 11:10       ` Rob Sterenborg (Lists)

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).