Mailing List Archive

[PATCH] conntrack-tools compilation problem
Hi Pablo,

I've just tried to build conntrack-tools and all the required netfilter
libraries from scratch. The libs were built and installed without
problems, but then conntrack-tools failed to compile with a missing
include problem.

Looks like conntrack-tools' autoconf/automake templates do not properly
use pkg-config information. configure.in detects the presence of
libnfnetlink and libnetfilter_conntrack using pkg-config, but then fails
to add the necessary flags to the compile and linker flags. For me, this
is a problem because all those libraries live under /opt/netfilter, and
thus compilation fails because of missing headers.

The attached patch fixes this problem for me, although I'm quite sure that
it does not break compilation for someone else. (Should not, but I'm not
much of an autoconf expert...)

--
KOVACS Krisztian
Re: [PATCH] conntrack-tools compilation problem [ In reply to ]
On Aug 5 2007 17:30, KOVACS Krisztian wrote:
>
>The attached patch fixes this problem for me, although I'm quite sure that
>it does not break compilation for someone else. (Should not, but I'm not
>much of an autoconf expert...)

Given that the lines the patchs adds _already exist_ in libnetfilter_conntrack
(that is, to properly include libnfnetlink). So that should be fine :)


Jan
--
Re: [PATCH] conntrack-tools compilation problem [ In reply to ]
Hi,

On Sun, Aug 05, 2007 at 05:36:25PM +0200, Jan Engelhardt wrote:
> >The attached patch fixes this problem for me, although I'm quite sure that
> >it does not break compilation for someone else. (Should not, but I'm not
> >much of an autoconf expert...)
>
> Given that the lines the patchs adds _already exist_ in libnetfilter_conntrack
> (that is, to properly include libnfnetlink). So that should be fine :)

Yep, but those lines were added by patch of mine long ago, so it's also
possible that I'm just trying to cripple conntrack-tools, too... ;)

--
KOVACS Krisztian
Re: [PATCH] conntrack-tools compilation problem [ In reply to ]
KOVACS Krisztian wrote:
> I've just tried to build conntrack-tools and all the required netfilter
> libraries from scratch. The libs were built and installed without
> problems, but then conntrack-tools failed to compile with a missing
> include problem.
>
> Looks like conntrack-tools' autoconf/automake templates do not properly
> use pkg-config information. configure.in detects the presence of
> libnfnetlink and libnetfilter_conntrack using pkg-config, but then fails
> to add the necessary flags to the compile and linker flags. For me, this
> is a problem because all those libraries live under /opt/netfilter, and
> thus compilation fails because of missing headers.
>
> The attached patch fixes this problem for me, although I'm quite sure that
> it does not break compilation for someone else. (Should not, but I'm not
> much of an autoconf expert...)

Applied, thanks Krisztian!

--
"Será preciso viajar a través de los ojos de los idiotas" -- Poeta en
Nueva York -- Federico García Lorca.