From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hangbin Liu Subject: Re: [contrack-tools PATCH] build: do not compile nfct if we disabled cttimeout Date: Mon, 12 May 2014 23:43:10 +0800 Message-ID: <20140512154310.GS25631@localhost.localdomain> References: <1399543345-3634-1-git-send-email-liuhangbin@gmail.com> <20140509112959.GA3812@localhost> <20140509115411.GJ25631@localhost.localdomain> <20140509135942.GA11325@localhost> <20140510025123.GK25631@localhost.localdomain> <20140512152354.GA6781@localhost> <20140512152421.GA12618@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from mail-pa0-f46.google.com ([209.85.220.46]:60930 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754079AbaELPnR (ORCPT ); Mon, 12 May 2014 11:43:17 -0400 Received: by mail-pa0-f46.google.com with SMTP id kq14so4675800pab.19 for ; Mon, 12 May 2014 08:43:16 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140512152421.GA12618@localhost> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Mon, May 12, 2014 at 05:24:21PM +0200, Pablo Neira Ayuso wrote: > On Mon, May 12, 2014 at 05:23:54PM +0200, Pablo Neira Ayuso wrote: > > On Sat, May 10, 2014 at 10:51:23AM +0800, Hangbin Liu wrote: > > > On Fri, May 09, 2014 at 03:59:42PM +0200, Pablo Neira Ayuso wrote: > > > > On Fri, May 09, 2014 at 07:54:11PM +0800, Hangbin Liu wrote: > > > > > On Fri, May 09, 2014 at 01:29:59PM +0200, Pablo Neira Ayuso wrote: > > > > > > On Thu, May 08, 2014 at 06:02:25PM +0800, Hangbin Liu wrote: > > > > > > > If we do not have libnetfilter_cttimeout and disabled cttimeout, conntrack-tools > > > > > > > will compile fail because nfct.c include nfnetlink_cttimeout.h. Fix it by only > > > > > > > compile nfct when we have enabled cttimeout > > > > > > > > OK, I see. That's not nfnetlink_cttimeout.h, it's > > > > libnetfilter_cttimeout.h. > > > > > > Ah, sorry, my mistake > > > > Please, give a try to the attached patch. > > Now, really attaching the patch. Good, this works for me. > From 34a8e200eee54b4bbecadf52bba8901cae129795 Mon Sep 17 00:00:00 2001 > From: Pablo Neira Ayuso > Date: Mon, 12 May 2014 17:21:21 +0200 > Subject: [PATCH] nfct: remove unneeded included header > > This fixes a compilation breakage when libnetfilter_cttimeout.h is > not installed. > > Reported-by: Hangbin Liu > Signed-off-by: Pablo Neira Ayuso > --- > src/nfct.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/nfct.c b/src/nfct.c > index 19e44be..533d75d 100644 > --- a/src/nfct.c > +++ b/src/nfct.c > @@ -22,8 +22,6 @@ > #include > > #include > -#include > -#include > > #include "linux_list.h" > #include "nfct.h" > -- > 1.7.10.4 > -- Thanks & Best Regards Hangbin Liu