Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] bind: fix compilation when lmdb.h is present on host
@ 2017-09-09 20:25 Thomas Petazzoni
  2017-09-10 14:53 ` Peter Seiderer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-09-09 20:25 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=7c0ecd4d7526dedce85a49172b031f45cde19a4b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Bind autoconf scripts look for lmdb.h in /usr/include (even when
cross-compiling). When liblmdb-dev is installed, this causes the
following error:

    ...
    checking for lmdb library... yes
    checking for library containing mdb_env_create... no
    configure: error: found lmdb include but not library.

Fix this by disabling explicitly lmdb support.

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
Signed-off-by: Julien Floret <julien.floret@6wind.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/bind/bind.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/bind/bind.mk b/package/bind/bind.mk
index c65568e..c3d4872 100644
--- a/package/bind/bind.mk
+++ b/package/bind/bind.mk
@@ -30,6 +30,7 @@ BIND_CONF_OPTS = \
 	--enable-epoll \
 	--with-libtool \
 	--with-gssapi=no \
+	--with-lmdb=no \
 	--enable-filter-aaaa
 
 ifeq ($(BR2_PACKAGE_ZLIB),y)

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

* [Buildroot] [git commit] bind: fix compilation when lmdb.h is present on host
  2017-09-09 20:25 [Buildroot] [git commit] bind: fix compilation when lmdb.h is present on host Thomas Petazzoni
@ 2017-09-10 14:53 ` Peter Seiderer
  2017-09-10 15:16   ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2017-09-10 14:53 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

On Sat, 9 Sep 2017 22:25:02 +0200, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:

> commit: https://git.buildroot.net/buildroot/commit/?id=7c0ecd4d7526dedce85a49172b031f45cde19a4b
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
> 
> Bind autoconf scripts look for lmdb.h in /usr/include (even when
> cross-compiling). When liblmdb-dev is installed, this causes the
> following error:
> 
>     ...
>     checking for lmdb library... yes
>     checking for library containing mdb_env_create... no
>     configure: error: found lmdb include but not library.
> 
> Fix this by disabling explicitly lmdb support.
> 
> Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
> Signed-off-by: Julien Floret <julien.floret@6wind.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  package/bind/bind.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/bind/bind.mk b/package/bind/bind.mk
> index c65568e..c3d4872 100644
> --- a/package/bind/bind.mk
> +++ b/package/bind/bind.mk
> @@ -30,6 +30,7 @@ BIND_CONF_OPTS = \
>  	--enable-epoll \
>  	--with-libtool \
>  	--with-gssapi=no \
> +	--with-lmdb=no \
>  	--enable-filter-aaaa
>  
>  ifeq ($(BR2_PACKAGE_ZLIB),y)

Double fix of the same problem, earlier fix/commit bb95fef1e0bec4ebc0584001f337438b17c4744d
using '--without-lmdb', now the complete CONF_OPTS are:

BIND_CONF_OPTS = \
        --without-lmdb \
        --with-libjson=no \
        --with-randomdev=/dev/urandom \
        --enable-epoll \
        --with-libtool \
        --with-gssapi=no \
        --with-lmdb=no \
        --enable-filter-aaaa

Regards,
Peter

> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [git commit] bind: fix compilation when lmdb.h is present on host
  2017-09-10 14:53 ` Peter Seiderer
@ 2017-09-10 15:16   ` Thomas Petazzoni
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-09-10 15:16 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 10 Sep 2017 16:53:53 +0200, Peter Seiderer wrote:


> Double fix of the same problem, earlier fix/commit bb95fef1e0bec4ebc0584001f337438b17c4744d
> using '--without-lmdb', now the complete CONF_OPTS are:

Gah, thanks for noticing. I've reverted this commit.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-09 20:25 [Buildroot] [git commit] bind: fix compilation when lmdb.h is present on host Thomas Petazzoni
2017-09-10 14:53 ` Peter Seiderer
2017-09-10 15:16   ` Thomas Petazzoni

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