[Buildroot] [PATCH 1/1] package/mtd: add patch to fix host build error with gcc 5.1

Baruch Siach baruch at tkos.co.il
Tue May 26 09:57:30 UTC 2015


Hi Jörg,

On Tue, May 26, 2015 at 11:53:35AM +0200, Jörg Krause wrote:
> diff --git a/package/mtd/0005-Fix-redefinition-build-error.patch b/package/mtd/0005-Fix-redefinition-build-error.patch
> new file mode 100644
> index 0000000..b29c3a5
> --- /dev/null
> +++ b/package/mtd/0005-Fix-redefinition-build-error.patch
> @@ -0,0 +1,70 @@
> +From d00e6c6d623485ced942a018dc9b06a52c8f90e4 Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause at embedded.rocks>
> +Date: Mon, 25 May 2015 16:37:27 +0200
> +Subject: [PATCH 1/1] Fix redefinition build error
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Building host-mtd with C11 (default for gcc 5.1) fails with:
> +  error: redefinition of ‘hashtable_iterator_key’
> +  error: redefinition of ‘hashtable_iterator_value’
> +
> +These two functions are defined both in the header and the C source file.
> +Fix this by removing the definition in the C source file and convert the
> +"extern inline" to "static inline" in the header file.
> +
> +Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>

What is the upstream status of this patch?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list