All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/zchunk: fix symbol conflict
@ 2022-05-05 20:24 James Hilliard
  2022-05-05 20:40 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2022-05-05 20:24 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard

Backport a patch to fix a symbol conflict issue.

Fixes:
 - http://autobuild.buildroot.net/results/225/22590a7038a40da3700d56c1f82f7dc74225702a

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 ...002-zck-declare-write_data-as-static.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/zchunk/0002-zck-declare-write_data-as-static.patch

diff --git a/package/zchunk/0002-zck-declare-write_data-as-static.patch b/package/zchunk/0002-zck-declare-write_data-as-static.patch
new file mode 100644
index 0000000000..3c48ab3d50
--- /dev/null
+++ b/package/zchunk/0002-zck-declare-write_data-as-static.patch
@@ -0,0 +1,34 @@
+From 477c4e891bd4d9e41fcbaa07cd1a37c0975df5cc Mon Sep 17 00:00:00 2001
+From: James Hilliard <james.hilliard1@gmail.com>
+Date: Wed, 4 May 2022 16:32:48 -0600
+Subject: [PATCH] zck: declare write_data as static
+
+This needs to be declared static to avoid a symbol conflict:
+io.c:(.text+0xe8): multiple definition of `write_data'; src/zck.p/zck.c.o:zck.c:(.text+0x1f4): first defined here
+
+Fixes:
+ - http://autobuild.buildroot.net/results/225/22590a7038a40da3700d56c1f82f7dc74225702a
+
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+[james.hilliard1@gmail.com: backport from upstream commit
+477c4e891bd4d9e41fcbaa07cd1a37c0975df5cc]
+---
+ src/zck.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/zck.c b/src/zck.c
+index 7727479..83b2630 100644
+--- a/src/zck.c
++++ b/src/zck.c
+@@ -159,7 +159,7 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) {
+ 
+ static struct argp argp = {options, parse_opt, args_doc, doc};
+ 
+-void write_data(zckCtx *zck, char *data, ssize_t in_size) {
++static void write_data(zckCtx *zck, char *data, ssize_t in_size) {
+     if(zck_write(zck, data, in_size) < 0) {
+         LOG_ERROR("%s", zck_get_error(zck));
+         exit(1);
+-- 
+2.25.1
+
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/zchunk: fix symbol conflict
  2022-05-05 20:24 [Buildroot] [PATCH 1/1] package/zchunk: fix symbol conflict James Hilliard
@ 2022-05-05 20:40 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-05-05 20:40 UTC (permalink / raw)
  To: James Hilliard, buildroot



On 05/05/2022 22:24, James Hilliard wrote:
> Backport a patch to fix a symbol conflict issue.
> 
> Fixes:
>   - http://autobuild.buildroot.net/results/225/22590a7038a40da3700d56c1f82f7dc74225702a
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...002-zck-declare-write_data-as-static.patch | 34 +++++++++++++++++++
>   1 file changed, 34 insertions(+)
>   create mode 100644 package/zchunk/0002-zck-declare-write_data-as-static.patch
> 
> diff --git a/package/zchunk/0002-zck-declare-write_data-as-static.patch b/package/zchunk/0002-zck-declare-write_data-as-static.patch
> new file mode 100644
> index 0000000000..3c48ab3d50
> --- /dev/null
> +++ b/package/zchunk/0002-zck-declare-write_data-as-static.patch
> @@ -0,0 +1,34 @@
> +From 477c4e891bd4d9e41fcbaa07cd1a37c0975df5cc Mon Sep 17 00:00:00 2001
> +From: James Hilliard <james.hilliard1@gmail.com>
> +Date: Wed, 4 May 2022 16:32:48 -0600
> +Subject: [PATCH] zck: declare write_data as static
> +
> +This needs to be declared static to avoid a symbol conflict:
> +io.c:(.text+0xe8): multiple definition of `write_data'; src/zck.p/zck.c.o:zck.c:(.text+0x1f4): first defined here
> +
> +Fixes:
> + - http://autobuild.buildroot.net/results/225/22590a7038a40da3700d56c1f82f7dc74225702a
> +
> +Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> +[james.hilliard1@gmail.com: backport from upstream commit
> +477c4e891bd4d9e41fcbaa07cd1a37c0975df5cc]
> +---
> + src/zck.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/zck.c b/src/zck.c
> +index 7727479..83b2630 100644
> +--- a/src/zck.c
> ++++ b/src/zck.c
> +@@ -159,7 +159,7 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) {
> +
> + static struct argp argp = {options, parse_opt, args_doc, doc};
> +
> +-void write_data(zckCtx *zck, char *data, ssize_t in_size) {
> ++static void write_data(zckCtx *zck, char *data, ssize_t in_size) {
> +     if(zck_write(zck, data, in_size) < 0) {
> +         LOG_ERROR("%s", zck_get_error(zck));
> +         exit(1);
> +--
> +2.25.1
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-05 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 20:24 [Buildroot] [PATCH 1/1] package/zchunk: fix symbol conflict James Hilliard
2022-05-05 20:40 ` Arnout Vandecappelle

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.