* 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
* Re: Compiling conntrack-tools
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)
0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2012-01-18 16:15 UTC (permalink / raw)
To: Rob Sterenborg (lists); +Cc: Netfilter
On Wednesday 2012-01-18 17:04, Rob Sterenborg (lists) wrote:
>
>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
You are not specifying any libs in _LIBS to actually link in
into ./conntrack. Hence, the missing symbol reference:
> CCLD conntrack
>conntrack.o: In function `alloc_tmpl_objects':
>conntrack.c:(.text+0x71): undefined reference to `nfct_new'
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling conntrack-tools
2012-01-18 16:15 ` Jan Engelhardt
@ 2012-01-18 16:27 ` Rob Sterenborg (lists)
2012-02-18 8:51 ` ping
0 siblings, 1 reply; 5+ messages in thread
From: Rob Sterenborg (lists) @ 2012-01-18 16:27 UTC (permalink / raw)
To: Netfilter
On Wed, 2012-01-18 at 17:15 +0100, Jan Engelhardt wrote:
> On Wednesday 2012-01-18 17:04, Rob Sterenborg (lists) wrote:
> >
> >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
>
> You are not specifying any libs in _LIBS to actually link in
> into ./conntrack. Hence, the missing symbol reference:
>
> > CCLD conntrack
> >conntrack.o: In function `alloc_tmpl_objects':
> >conntrack.c:(.text+0x71): undefined reference to `nfct_new'
Thanks!! It works..
--
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling conntrack-tools
2012-01-18 16:27 ` Rob Sterenborg (lists)
@ 2012-02-18 8:51 ` ping
2012-02-18 11:10 ` Rob Sterenborg (Lists)
0 siblings, 1 reply; 5+ messages in thread
From: ping @ 2012-02-18 8:51 UTC (permalink / raw)
To: netfilter
Hello,
I have the same problem.
Could you point me how to solve the problem?
Thank you so much.
specifying any libs in _LIBS to actually
link in into ./conntrack. <-- what can I do ?
--
Ping
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling conntrack-tools
2012-02-18 8:51 ` ping
@ 2012-02-18 11:10 ` Rob Sterenborg (Lists)
0 siblings, 0 replies; 5+ messages in thread
From: Rob Sterenborg (Lists) @ 2012-02-18 11:10 UTC (permalink / raw)
To: Netfilter
On Sat, 2012-02-18 at 08:51 +0000, ping wrote:
> Hello,
>
> I have the same problem.
> Could you point me how to solve the problem?
> Thank you so much.
>
> specifying any libs in _LIBS to actually
> link in into ./conntrack. <-- what can I do ?
Did you set PKG_CONFIG_PATH when using configuring conntrack-tools?
Something like:
PKG_CONFIG_PATH=/path/to/lib/pkgconfig \
./configure ...
Where /path/to/lib/pkgconfig is the pkgconfig directory where the
libnfnetlink and libnetfilter_conntrack .pc files are installed. (You
did install these libraries, right?)
This way the correct CFLAGS, LDFLAGS and LIBS will be set automatically.
--
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).