mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] efax: New patch to fix build failure with gcc-10
@ 2021-03-16 11:39 Uwe Kleine-König
  2021-03-30 18:07 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2021-03-16 11:39 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 .../0005-Fix-linker-error-with-gcc-10.patch   | 45 +++++++++++++++++++
 patches/efax-0.9/series                       |  3 +-
 2 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch

diff --git a/patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch b/patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch
new file mode 100644
index 000000000000..08f1d0a1a97a
--- /dev/null
+++ b/patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch
@@ -0,0 +1,45 @@
+From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
+Date: Tue, 16 Mar 2021 12:33:05 +0100
+Subject: [PATCH] Fix linker error with gcc-10
+
+This fixes:
+
+	ld: efaxlib.o:(.bss+0x0): multiple definition of `reversebits'; efix.o:(.bss+0x0): first defined here
+	ld: efaxlib.o:(.bss+0x100): multiple definition of `normalbits'; efix.o:(.bss+0x100): first defined here
+	ld: efaxlib.o:(.bss+0x0): multiple definition of `reversebits'; efax.o:(.bss+0x0): first defined here
+	ld: efaxlib.o:(.bss+0x100): multiple definition of `normalbits'; efax.o:(.bss+0x100): first defined here
+	ld: efaxio.o:(.bss+0x0): multiple definition of `reversebits'; efax.o:(.bss+0x0): first defined here
+	ld: efaxio.o:(.bss+0x100): multiple definition of `normalbits'; efax.o:(.bss+0x100): first defined here
+	ld: efaxos.o:(.bss+0x0): multiple definition of `reversebits'; efax.o:(.bss+0x0): first defined here
+	ld: efaxos.o:(.bss+0x100): multiple definition of `normalbits'; efax.o:(.bss+0x100): first defined here
+---
+ efaxlib.c | 2 ++
+ efaxlib.h | 2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/efaxlib.c b/efaxlib.c
+index 4887cd9e5d72..347e8bd326e2 100644
+--- a/efaxlib.c
++++ b/efaxlib.c
+@@ -20,6 +20,8 @@
+ #define DEFWIDTH  1728		/* 215x297 mm image at fax resolution */
+ #define DEFHEIGHT 2287
+ 
++uchar reversebits [ 256 ], normalbits [ 256 ] ;
++
+ extern t4tab wtab [ ( 64 + 27 + 13 ) + 1 ] ; /* T.4 coding tables */
+ extern t4tab btab [ ( 64 + 27 + 13 ) + 1 ] ;
+ 
+diff --git a/efaxlib.h b/efaxlib.h
+index 9c725ae9a934..88505694dc0e 100644
+--- a/efaxlib.h
++++ b/efaxlib.h
+@@ -207,7 +207,7 @@ int runor ( short *a, int na, short *b, int nb, short *c, int *pels ) ;
+ /* Bit reversal lookup tables (note that the `normalbits' array
+    is the one actually used for the bit reversal.  */
+ 
+-uchar reversebits [ 256 ], normalbits [ 256 ] ;
++extern uchar reversebits [ 256 ], normalbits [ 256 ] ;
+ 
+ void initbittab(void) ;
+ 
diff --git a/patches/efax-0.9/series b/patches/efax-0.9/series
index a67ca2181e0a..d4edeefb40ce 100644
--- a/patches/efax-0.9/series
+++ b/patches/efax-0.9/series
@@ -4,4 +4,5 @@
 0002-add-nullpointer-check.patch
 0003-fix-l-option-in-efix.patch
 0004-add-missing-include-file.patch
-# 8338636f38d9624eaaf8c3530518be3d  - git-ptx-patches magic
+0005-Fix-linker-error-with-gcc-10.patch
+# dc070db4a15b5fc5df6ab930fcf4bfdc  - git-ptx-patches magic
-- 
2.29.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

* Re: [ptxdist] [APPLIED] efax: New patch to fix build failure with gcc-10
  2021-03-16 11:39 [ptxdist] [PATCH] efax: New patch to fix build failure with gcc-10 Uwe Kleine-König
@ 2021-03-30 18:07 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-03-30 18:07 UTC (permalink / raw)
  To: ptxdist; +Cc: u.kleine-koenig

Thanks, applied as bacbc3d82198f2c17286f1e022f5a1d1134231aa.

Michael

[sent from post-receive hook]

On Tue, 30 Mar 2021 20:07:54 +0200, Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> Message-Id: <20210316113921.28962-1-u.kleine-koenig@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch b/patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch
> new file mode 100644
> index 000000000000..08f1d0a1a97a
> --- /dev/null
> +++ b/patches/efax-0.9/0005-Fix-linker-error-with-gcc-10.patch
> @@ -0,0 +1,45 @@
> +From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
> +Date: Tue, 16 Mar 2021 12:33:05 +0100
> +Subject: [PATCH] Fix linker error with gcc-10
> +
> +This fixes:
> +
> +	ld: efaxlib.o:(.bss+0x0): multiple definition of `reversebits'; efix.o:(.bss+0x0): first defined here
> +	ld: efaxlib.o:(.bss+0x100): multiple definition of `normalbits'; efix.o:(.bss+0x100): first defined here
> +	ld: efaxlib.o:(.bss+0x0): multiple definition of `reversebits'; efax.o:(.bss+0x0): first defined here
> +	ld: efaxlib.o:(.bss+0x100): multiple definition of `normalbits'; efax.o:(.bss+0x100): first defined here
> +	ld: efaxio.o:(.bss+0x0): multiple definition of `reversebits'; efax.o:(.bss+0x0): first defined here
> +	ld: efaxio.o:(.bss+0x100): multiple definition of `normalbits'; efax.o:(.bss+0x100): first defined here
> +	ld: efaxos.o:(.bss+0x0): multiple definition of `reversebits'; efax.o:(.bss+0x0): first defined here
> +	ld: efaxos.o:(.bss+0x100): multiple definition of `normalbits'; efax.o:(.bss+0x100): first defined here
> +---
> + efaxlib.c | 2 ++
> + efaxlib.h | 2 +-
> + 2 files changed, 3 insertions(+), 1 deletion(-)
> +
> +diff --git a/efaxlib.c b/efaxlib.c
> +index 4887cd9e5d72..347e8bd326e2 100644
> +--- a/efaxlib.c
> ++++ b/efaxlib.c
> +@@ -20,6 +20,8 @@
> + #define DEFWIDTH  1728		/* 215x297 mm image at fax resolution */
> + #define DEFHEIGHT 2287
> + 
> ++uchar reversebits [ 256 ], normalbits [ 256 ] ;
> ++
> + extern t4tab wtab [ ( 64 + 27 + 13 ) + 1 ] ; /* T.4 coding tables */
> + extern t4tab btab [ ( 64 + 27 + 13 ) + 1 ] ;
> + 
> +diff --git a/efaxlib.h b/efaxlib.h
> +index 9c725ae9a934..88505694dc0e 100644
> +--- a/efaxlib.h
> ++++ b/efaxlib.h
> +@@ -207,7 +207,7 @@ int runor ( short *a, int na, short *b, int nb, short *c, int *pels ) ;
> + /* Bit reversal lookup tables (note that the `normalbits' array
> +    is the one actually used for the bit reversal.  */
> + 
> +-uchar reversebits [ 256 ], normalbits [ 256 ] ;
> ++extern uchar reversebits [ 256 ], normalbits [ 256 ] ;
> + 
> + void initbittab(void) ;
> + 
> diff --git a/patches/efax-0.9/series b/patches/efax-0.9/series
> index a67ca2181e0a..d4edeefb40ce 100644
> --- a/patches/efax-0.9/series
> +++ b/patches/efax-0.9/series
> @@ -4,4 +4,5 @@
>  0002-add-nullpointer-check.patch
>  0003-fix-l-option-in-efix.patch
>  0004-add-missing-include-file.patch
> -# 8338636f38d9624eaaf8c3530518be3d  - git-ptx-patches magic
> +0005-Fix-linker-error-with-gcc-10.patch
> +# dc070db4a15b5fc5df6ab930fcf4bfdc  - git-ptx-patches magic

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

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

end of thread, other threads:[~2021-03-30 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 11:39 [ptxdist] [PATCH] efax: New patch to fix build failure with gcc-10 Uwe Kleine-König
2021-03-30 18:07 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox