unbound 1.6.1: Linking against libevent2
Message ID | 20170421170021.17772-1-matthias.fischer@ipfire.org |
---|---|
State | Accepted |
Commit | 723d1d911ff717ac43c24738960e76fca11c4cbd |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id BC09262275 for <patchwork@ipfire.org>; Fri, 21 Apr 2017 19:00:30 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id B68E82884; Fri, 21 Apr 2017 19:00:29 +0200 (CEST) Received: from Devel.localdomain (p5DD83151.dip0.t-ipconnect.de [93.216.49.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4E94B2883 for <development@lists.ipfire.org>; Fri, 21 Apr 2017 19:00:26 +0200 (CEST) From: Matthias Fischer <matthias.fischer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] unbound 1.6.1: Linking against libevent2 Date: Fri, 21 Apr 2017 19:00:21 +0200 Message-Id: <20170421170021.17772-1-matthias.fischer@ipfire.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Matthias Fischer
April 22, 2017, 3 a.m. UTC
Hi,
this was triggered by unbound-users@unbound.net - it seems that the
'configure'-option '--with-libevent-support' is not enough:
***SNIP***
...
When building unbound with --with-libevent support, the make
install phase should also call make unbound-event-install or else
unbound-event.h does not get installed and the header file for
using the unbound event functionality is not available.
...
This install is triggered by the option --enable-event-api. Just
enabling --with-libevent does not trigger the install by itself.
Best regards,
Wouter
...
***SNAP***
I built 'unbound' this way - its running without any problems so far.
Best,
Matthias
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
config/rootfiles/common/unbound | 1 +
lfs/unbound | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
Comments
Thank you. Merged! On Fri, 2017-04-21 at 19:00 +0200, Matthias Fischer wrote: > Hi, > > this was triggered by unbound-users@unbound.net - it seems that the > 'configure'-option '--with-libevent-support' is not enough: > > ***SNIP*** > ... > When building unbound with --with-libevent support, the make > install phase should also call make unbound-event-install or else > unbound-event.h does not get installed and the header file for > using the unbound event functionality is not available. > ... > This install is triggered by the option --enable-event-api. Just > enabling --with-libevent does not trigger the install by itself. > > Best regards, > Wouter > ... > ***SNAP*** > > I built 'unbound' this way - its running without any problems so far. > > Best, > Matthias > > Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> > --- > config/rootfiles/common/unbound | 1 + > lfs/unbound | 4 +++- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/config/rootfiles/common/unbound b/config/rootfiles/common/unbound > index a94ea2564..824567e1f 100644 > --- a/config/rootfiles/common/unbound > +++ b/config/rootfiles/common/unbound > @@ -6,6 +6,7 @@ etc/unbound/icannbundle.pem > etc/unbound/local.d > etc/unbound/root.hints > etc/unbound/unbound.conf > +#usr/include/unbound-event.h > #usr/include/unbound.h > #usr/lib/libunbound.la > #usr/lib/libunbound.so > diff --git a/lfs/unbound b/lfs/unbound > index f361f24f0..d78bd9509 100644 > --- a/lfs/unbound > +++ b/lfs/unbound > @@ -78,7 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) > --with-pidfile=/var/run/unbound.pid \ > --with-rootkey-file=/var/lib/unbound/root.key \ > --disable-static \ > - --with-libevent > + --with-libevent \ > + --enable-event-api > + > cd $(DIR_APP) && make $(MAKETUNING) > cd $(DIR_APP) && make install >