package/gdbm: fix uclibc build error
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
@@ -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
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_FILEdbf,blksize_tblock_size,To get the missing define we need to pass -D_GNU_SOURCE.
Fixes
http://autobuild.buildroot.net/results/592/59278fb8681d474883e6551df5173edd806b16fa/Signed-off-by Bernd Kuhls <[email protected]>
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