From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/owfs: fix build with gcc 10
Date: Sun, 23 Aug 2020 15:04:19 +0200 [thread overview]
Message-ID: <20200823130419.GC8728@scaer> (raw)
In-Reply-To: <20200823101835.3604516-1-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2020-08-23 12:18 +0200, Fabrice Fontaine spake thusly:
> Fixes:
> - http://autobuild.buildroot.org/results/7e9c33d7a1613826f85716403a00dce03dd8daf2
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> .../0001-Fix-compilation-with-GCC10.patch | 41 +++++++++++++++++++
> 1 file changed, 41 insertions(+)
> create mode 100644 package/owfs/0001-Fix-compilation-with-GCC10.patch
>
> diff --git a/package/owfs/0001-Fix-compilation-with-GCC10.patch b/package/owfs/0001-Fix-compilation-with-GCC10.patch
> new file mode 100644
> index 0000000000..49b703ee28
> --- /dev/null
> +++ b/package/owfs/0001-Fix-compilation-with-GCC10.patch
> @@ -0,0 +1,41 @@
> +From 43a4bc6b750c37f585d03b14941f3633ed5348d8 Mon Sep 17 00:00:00 2001
> +From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
> +Date: Tue, 9 Jun 2020 11:30:38 +0300
> +Subject: [PATCH] Fix compilation with GCC10
> +
> +Fixed compilation with -fno-common, which enabled in GCC 10 by default.
> +See https://bugs.gentoo.org/707438.
> +[Retrieved from:
> +https://github.com/owfs/owfs/commit/43a4bc6b750c37f585d03b14941f3633ed5348d8]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + module/owserver/src/c/owserver.c | 2 ++
> + module/owserver/src/include/owserver.h | 2 +-
> + 2 files changed, 3 insertions(+), 1 deletion(-)
> +
> +diff --git a/module/owserver/src/c/owserver.c b/module/owserver/src/c/owserver.c
> +index db29988e..2ed29161 100644
> +--- a/module/owserver/src/c/owserver.c
> ++++ b/module/owserver/src/c/owserver.c
> +@@ -36,6 +36,8 @@
> +
> + #include "owserver.h"
> +
> ++pthread_mutex_t persistence_mutex ;
> ++
> + /* --- Prototypes ------------ */
> + static void SetupAntiloop(int argc, char **argv);
> +
> +diff --git a/module/owserver/src/include/owserver.h b/module/owserver/src/include/owserver.h
> +index 8be582f0..a257ed02 100644
> +--- a/module/owserver/src/include/owserver.h
> ++++ b/module/owserver/src/include/owserver.h
> +@@ -18,7 +18,7 @@
> + #include "ow.h"
> + #include "ow_connection.h"
> +
> +-pthread_mutex_t persistence_mutex ;
> ++extern pthread_mutex_t persistence_mutex ;
> + #define PERSISTENCELOCK _MUTEX_LOCK( persistence_mutex ) ;
> + #define PERSISTENCEUNLOCK _MUTEX_UNLOCK( persistence_mutex ) ;
> +
> --
> 2.28.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2020-08-23 13:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-23 10:18 [Buildroot] [PATCH 1/1] package/owfs: fix build with gcc 10 Fabrice Fontaine
2020-08-23 13:04 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200823130419.GC8728@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox