Skip to contentSkip to conversation

bind: fix compilation when lmdb.h is present on host

PATCH New Julien Floret 2 participants 2 messages Sep 8, 2017 – Sep 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bind: fix compilation when lmdb.h is present on host

From: Robin Jarry <[email protected]>

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.

---
 package/bind/bind.mk | 1 +
 1 file changed, 1 insertion(+)
package/bind/bind.mk +1 -0
index c65568e9e380..c3d48729deeb 100644
@@ -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)
Signature · 1 line
2.13.1
#1 lore raw

PATCH 1/1 bind: fix compilation when lmdb.h is present on host

Hello,

Quoted 11 lines · Julien Floret

From: Robin Jarry <[email protected]>

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.

Quoted 7 lines

Fix this by disabling explicitly lmdb support.

---
 package/bind/bind.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com