public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* unbound 1.6.1 => '--with-libevent'-option ineffective!?
@ 2017-04-10  8:16 Matthias Fischer
  2017-04-10 15:34 ` Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fischer @ 2017-04-10  8:16 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

Hi,

Today there was a confirmation of my assumption, the 'configure' option
'--with-libevent-support' is NOT enough (unbound-users(a)unbound.net):

***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.
> >
> > Hello,
> >
> > the same "missing unbound-event.h" happen when building getdns
>> >> (https://getdnsapi.net)
> > Thanks for the hint, Paul!

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***

The 'libevent' update on the '1.4.15-stable' has unfortunately not
built, there were heaps of errors.

Because 'unbound' detects an existing 'libevent2' installation
(Changelog, line 1609: Detect libevent2 install automatically by
configure.) I first concentrated on updating 'libevent2' to 2.1.8
because '2.0.22' from 2014-01-05 seemed rather old.

The detection worked, 'unbound' with '--with-libevent' and
'--enable-event-api' and 'libevent2 2.1.8' run both here in test.

Special feature:
'Kbd 1.12' complains because of a few 'rootfile'-changes, otherwise no
other conspicuousness. Operation is stable.

Best,
Matthias

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

* Re: unbound 1.6.1 => '--with-libevent'-option ineffective!?
  2017-04-10  8:16 unbound 1.6.1 => '--with-libevent'-option ineffective!? Matthias Fischer
@ 2017-04-10 15:34 ` Michael Tremer
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2017-04-10 15:34 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 2544 bytes --]

Hi,

thanks for looking into this.

On Mon, 2017-04-10 at 10:16 +0200, Matthias Fischer wrote:
> Hi,
> 
> Today there was a confirmation of my assumption, the 'configure' option
> '--with-libevent-support' is NOT enough (unbound-users(a)unbound.net):
> 
> ***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.
> > > 
> > > Hello,
> > > 
> > > the same "missing unbound-event.h" happen when building getdns
> > > > > (https://getdnsapi.net)
> > > 
> > > Thanks for the hint, Paul!
> 
> 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***

This rather sounds to me that any libraries that link against libunbound will
only use libevent then. This is probably not a good idea not to abstract this.

> The 'libevent' update on the '1.4.15-stable' has unfortunately not
> built, there were heaps of errors.
> 
> Because 'unbound' detects an existing 'libevent2' installation
> (Changelog, line 1609: Detect libevent2 install automatically by
> configure.) I first concentrated on updating 'libevent2' to 2.1.8
> because '2.0.22' from 2014-01-05 seemed rather old.
> 
> The detection worked, 'unbound' with '--with-libevent' and
> '--enable-event-api' and 'libevent2 2.1.8' run both here in test.

My version is already linked against libevent:

[root(a)ipfire ~]# ldd /usr/sbin/unbound
	linux-vdso.so.1 =>  (0x00006ad33eb06000)
	libssl.so.10 => /usr/lib/libssl.so.10 (0x00006ad33e67c000)
	libevent-2.0.so.5 => /usr/lib/libevent-2.0.so.5 (0x00006ad33e434000)
	librt.so.1 => /lib/librt.so.1 (0x00006ad33e22b000)
	libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00006ad33dde9000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00006ad33dbcc000)
	libc.so.6 => /lib/libc.so.6 (0x00006ad33d836000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00006ad33d620000)
	libdl.so.2 => /lib/libdl.so.2 (0x00006ad33d41c000)
	/lib64/ld-linux-x86-64.so.2 (0x00006ad33e8e8000)

> 
> Special feature:
> 'Kbd 1.12' complains because of a few 'rootfile'-changes, otherwise no
> other conspicuousness. Operation is stable.

This is probably caused by something else... It's already happening in the last
nightly build.

> 
> Best,
> Matthias

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2017-04-10 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10  8:16 unbound 1.6.1 => '--with-libevent'-option ineffective!? Matthias Fischer
2017-04-10 15:34 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox