Skip to contentSkip to conversation

package/gdbm: fix uclibc build error

PATCH New Bernd Kuhls 2 participants 2 messages Jun 5, 2017 – Jun 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gdbm: fix uclibc build error

This patches fixes

gdbmopen.c:35:40: error: unknown type name 'blksize_t'
compute_directory_size (GDBM_FILE dbf, blksize_t block_size,

To get the missing define we need to pass -D_GNU_SOURCE.

Fixes
http://autobuild.buildroot.net/results/592/59278fb8681d474883e6551df5173edd806b16fa/

---
 package/gdbm/gdbm.mk | 2 ++
 1 file changed, 2 insertions(+)
package/gdbm/gdbm.mk +2 -0
index 4e3ed76e8..5365f3c95 100644
@@ -10,6 +10,8 @@ GDBM_LICENSE = GPL-3.0+
 GDBM_LICENSE_FILES = COPYING
 GDBM_INSTALL_STAGING = YES
 
+GDBM_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
+
 ifeq ($(BR2_PACKAGE_GETTEXT),y)
 GDBM_DEPENDENCIES += gettext
 endif
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/gdbm: fix uclibc build error

Hello,

Quoted 11 lines · Bernd Kuhls

This patches fixes

gdbmopen.c:35:40: error: unknown type name 'blksize_t'
compute_directory_size (GDBM_FILE dbf, blksize_t block_size,

To get the missing define we need to pass -D_GNU_SOURCE.

Fixes
http://autobuild.buildroot.net/results/592/59278fb8681d474883e6551df5173edd806b16fa/

The real bug is in uClibc, the proper fix is
https://patchwork.ozlabs.org/patch/772049/.

Thanks!

Thomas

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