* [Buildroot] [PATCH 1/1] package/gdbm: fix build error
@ 2017-06-04 22:09 Bernd Kuhls
2017-06-05 8:14 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2017-06-04 22:09 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/4eb/4ebb8c47a71043470ce3fc626ac10f02902c2a43/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
I am unsure whether this is the right fix so I am sending this patch for
review first before I will contact upstream, Bernd.
package/gdbm/0001-gdbmopen.c-fix-build.patch | 30 ++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 package/gdbm/0001-gdbmopen.c-fix-build.patch
diff --git a/package/gdbm/0001-gdbmopen.c-fix-build.patch b/package/gdbm/0001-gdbmopen.c-fix-build.patch
new file mode 100644
index 000000000..7dd2fd2af
--- /dev/null
+++ b/package/gdbm/0001-gdbmopen.c-fix-build.patch
@@ -0,0 +1,30 @@
+From 7b20e17f72ff8043696c9b024065e474f3ebca9b Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Mon, 5 Jun 2017 00:03:57 +0200
+Subject: [PATCH 1/1] gdbmopen.c: fix build
+
+This patch fixes build errors detected by Buildroot autobuilders on
+various platforms using uClibc:
+http://autobuild.buildroot.net/?reason=gdbm-1.13
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ src/gdbmopen.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gdbmopen.c b/src/gdbmopen.c
+index 80474a6..a9bfb32 100644
+--- a/src/gdbmopen.c
++++ b/src/gdbmopen.c
+@@ -32,7 +32,7 @@
+ #endif
+
+ static void
+-compute_directory_size (GDBM_FILE dbf, blksize_t block_size,
++compute_directory_size (GDBM_FILE dbf, __blksize_t block_size,
+ int *ret_dir_size, int *ret_dir_bits)
+ {
+ /* Create the initial hash table directory. */
+--
+2.11.0
+
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] package/gdbm: fix build error
2017-06-04 22:09 [Buildroot] [PATCH 1/1] package/gdbm: fix build error Bernd Kuhls
@ 2017-06-05 8:14 ` Thomas Petazzoni
2017-06-05 15:29 ` Bernd Kuhls
2017-06-06 21:10 ` Waldemar Brodkorb
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2017-06-05 8:14 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 5 Jun 2017 00:09:50 +0200, Bernd Kuhls wrote:
> +-compute_directory_size (GDBM_FILE dbf, blksize_t block_size,
> ++compute_directory_size (GDBM_FILE dbf, __blksize_t block_size,
This doesn't feel like the right fix, because uClibc does define
blksize_t:
#if defined __USE_UNIX98 && !defined __blksize_t_defined
typedef __blksize_t blksize_t;
# define __blksize_t_defined
#endif
Missing header include? __USE_UNIX98 not defined?
Perhaps a good question for Waldemar (added in Cc).
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] package/gdbm: fix build error
2017-06-05 8:14 ` Thomas Petazzoni
@ 2017-06-05 15:29 ` Bernd Kuhls
2017-06-06 21:10 ` Waldemar Brodkorb
1 sibling, 0 replies; 4+ messages in thread
From: Bernd Kuhls @ 2017-06-05 15:29 UTC (permalink / raw)
To: buildroot
Am Mon, 05 Jun 2017 10:14:20 +0200 schrieb Thomas Petazzoni:
> Missing header include? __USE_UNIX98 not defined?
Hi Thomas,
I tried __USE_UNIX98, but it did not work because it gets unset in
https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/tree/include/
features.h#n105
It seems we need something else: http://patchwork.ozlabs.org/patch/771300/
Regards, Bernd
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] package/gdbm: fix build error
2017-06-05 8:14 ` Thomas Petazzoni
2017-06-05 15:29 ` Bernd Kuhls
@ 2017-06-06 21:10 ` Waldemar Brodkorb
1 sibling, 0 replies; 4+ messages in thread
From: Waldemar Brodkorb @ 2017-06-06 21:10 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Thomas Petazzoni wrote,
> Hello,
>
> On Mon, 5 Jun 2017 00:09:50 +0200, Bernd Kuhls wrote:
>
> > +-compute_directory_size (GDBM_FILE dbf, blksize_t block_size,
> > ++compute_directory_size (GDBM_FILE dbf, __blksize_t block_size,
>
> This doesn't feel like the right fix, because uClibc does define
> blksize_t:
>
> #if defined __USE_UNIX98 && !defined __blksize_t_defined
> typedef __blksize_t blksize_t;
> # define __blksize_t_defined
> #endif
>
> Missing header include? __USE_UNIX98 not defined?
>
> Perhaps a good question for Waldemar (added in Cc).
Fix sent to the list.
Some problem with uClibc-ng not in sync with glibc.
best regards
Waldemar
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-06 21:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-04 22:09 [Buildroot] [PATCH 1/1] package/gdbm: fix build error Bernd Kuhls
2017-06-05 8:14 ` Thomas Petazzoni
2017-06-05 15:29 ` Bernd Kuhls
2017-06-06 21:10 ` Waldemar Brodkorb
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.