* [Buildroot] [PATCH v1] ddrescue: fix uclibc compile
@ 2017-02-14 19:45 Peter Seiderer
2017-02-14 21:43 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2017-02-14 19:45 UTC (permalink / raw)
To: buildroot
Fixes compile failure with uclibc [1] because of missing stdio.h include:
In file included from io.cc:28:0:
block.h:219:22: error: ?FILE? has not been declared
int write_mapfile( FILE * f = 0, const bool timestamp = false,
[1] http://autobuild.buildroot.net/results/4ac0754f1cc5ea934d6437e89d1f4906fb3fd0a8
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
.../ddrescue/0001-io.cc-add-stdio.h-include.patch | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/ddrescue/0001-io.cc-add-stdio.h-include.patch
diff --git a/package/ddrescue/0001-io.cc-add-stdio.h-include.patch b/package/ddrescue/0001-io.cc-add-stdio.h-include.patch
new file mode 100644
index 000000000..e719c708e
--- /dev/null
+++ b/package/ddrescue/0001-io.cc-add-stdio.h-include.patch
@@ -0,0 +1,36 @@
+From 0f72787b922c53c33d497b17300a959b911e621f Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Tue, 14 Feb 2017 20:12:05 +0100
+Subject: [PATCH] io.cc: add stdio.h include
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes buildroot compile failure with uclibc [1]:
+
+ In file included from io.cc:28:0:
+ block.h:219:22: error: ?FILE? has not been declared
+ int write_mapfile( FILE * f = 0, const bool timestamp = false,
+
+[1] http://autobuild.buildroot.net/results/4ac0754f1cc5ea934d6437e89d1f4906fb3fd0a8
+
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ io.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/io.cc b/io.cc
+index 36b8341..2d6a76e 100644
+--- a/io.cc
++++ b/io.cc
+@@ -23,6 +23,7 @@
+ #include <string>
+ #include <vector>
+ #include <stdint.h>
++#include <stdio.h>
+ #include <unistd.h>
+
+ #include "block.h"
+--
+2.11.0
+
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v1] ddrescue: fix uclibc compile
2017-02-14 19:45 [Buildroot] [PATCH v1] ddrescue: fix uclibc compile Peter Seiderer
@ 2017-02-14 21:43 ` Thomas Petazzoni
2017-02-15 13:55 ` Peter Seiderer
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-02-14 21:43 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 14 Feb 2017 20:45:08 +0100, Peter Seiderer wrote:
> Fixes compile failure with uclibc [1] because of missing stdio.h include:
>
> In file included from io.cc:28:0:
> block.h:219:22: error: ?FILE? has not been declared
> int write_mapfile( FILE * f = 0, const bool timestamp = false,
>
> [1] http://autobuild.buildroot.net/results/4ac0754f1cc5ea934d6437e89d1f4906fb3fd0a8
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> .../ddrescue/0001-io.cc-add-stdio.h-include.patch | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/ddrescue/0001-io.cc-add-stdio.h-include.patch
Applied to master, thanks. Please submit upstream as well. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v1] ddrescue: fix uclibc compile
2017-02-14 21:43 ` Thomas Petazzoni
@ 2017-02-15 13:55 ` Peter Seiderer
0 siblings, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2017-02-15 13:55 UTC (permalink / raw)
To: buildroot
Hello Thomas,
On Tue, 14 Feb 2017 22:43:57 +0100, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Tue, 14 Feb 2017 20:45:08 +0100, Peter Seiderer wrote:
> > Fixes compile failure with uclibc [1] because of missing stdio.h include:
> >
> > In file included from io.cc:28:0:
> > block.h:219:22: error: ?FILE? has not been declared
> > int write_mapfile( FILE * f = 0, const bool timestamp = false,
> >
> > [1] http://autobuild.buildroot.net/results/4ac0754f1cc5ea934d6437e89d1f4906fb3fd0a8
> >
> > Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> > ---
> > .../ddrescue/0001-io.cc-add-stdio.h-include.patch | 36 ++++++++++++++++++++++
> > 1 file changed, 36 insertions(+)
> > create mode 100644 package/ddrescue/0001-io.cc-add-stdio.h-include.patch
>
> Applied to master, thanks. Please submit upstream as well. Thanks!
>
Already submitted upstream:
http://lists.gnu.org/archive/html/bug-ddrescue/2017-02/msg00001.html
Regards,
Peter
> Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-15 13:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 19:45 [Buildroot] [PATCH v1] ddrescue: fix uclibc compile Peter Seiderer
2017-02-14 21:43 ` Thomas Petazzoni
2017-02-15 13:55 ` Peter Seiderer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox