Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre
@ 2020-10-15  6:09 Fabrice Fontaine
  2020-10-15 11:54 ` Thomas Petazzoni
  2020-10-28 14:26 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-10-15  6:09 UTC (permalink / raw)
  To: buildroot

Fix static build failure with sslh version 1.19b and above

Fixes:
 - http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...akefile-fix-static-linking-with-pcre.patch | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/sslh/0001-Makefile-fix-static-linking-with-pcre.patch

diff --git a/package/sslh/0001-Makefile-fix-static-linking-with-pcre.patch b/package/sslh/0001-Makefile-fix-static-linking-with-pcre.patch
new file mode 100644
index 0000000000..5fc3296da5
--- /dev/null
+++ b/package/sslh/0001-Makefile-fix-static-linking-with-pcre.patch
@@ -0,0 +1,41 @@
+From 0d9e004d324cc030c173de04c40db51a0f22bb5c Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 15 Oct 2020 07:58:05 +0200
+Subject: [PATCH] Makefile: fix static linking with pcre
+
+Static build with pcre is broken since version 1.19b and
+https://github.com/yrutschle/sslh/commit/cb90cc97ae64a445242e517847c6e44b7003eda4
+because -lpcre has been replaced by -lpcreposix which will result in
+the following static build failure:
+
+/srv/storage/autobuild/run/instance-1/output-1/host/bin/mipsel-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -static -static -o echosrv echosrv.o probe.o common.o tls.o  -lpcreposix -lconfig -lcap
+/srv/storage/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/8.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: /srv/storage/autobuild/run/instance-1/output-1/host/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpcreposix.a(libpcreposix_la-pcreposix.o): in function `regfree':
+pcreposix.c:(.text+0x120): undefined reference to `pcre_free'
+
+So append -lpcre after -lpcreposix
+
+Fixes:
+ - http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/yrutschle/sslh/pull/280]
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 986cf1c..ecadc22 100644
+--- a/Makefile
++++ b/Makefile
+@@ -43,7 +43,7 @@ endif
+ 
+ ifneq ($(strip $(USELIBPCRE)),)
+ 	CPPFLAGS+=-DLIBPCRE
+-	LIBS:=$(LIBS) -lpcreposix
++	LIBS:=$(LIBS) -lpcreposix -lpcre
+ endif
+ 
+ ifneq ($(strip $(USELIBCONFIG)),)
+-- 
+2.28.0
+
-- 
2.28.0

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

* [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre
  2020-10-15  6:09 [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre Fabrice Fontaine
@ 2020-10-15 11:54 ` Thomas Petazzoni
  2020-10-28 14:26 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-10-15 11:54 UTC (permalink / raw)
  To: buildroot

On Thu, 15 Oct 2020 08:09:01 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix static build failure with sslh version 1.19b and above
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...akefile-fix-static-linking-with-pcre.patch | 41 +++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 package/sslh/0001-Makefile-fix-static-linking-with-pcre.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre
  2020-10-15  6:09 [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre Fabrice Fontaine
  2020-10-15 11:54 ` Thomas Petazzoni
@ 2020-10-28 14:26 ` Peter Korsgaard
  2020-10-28 18:13   ` Fabrice Fontaine
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2020-10-28 14:26 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix static build failure with sslh version 1.19b and above


 > Fixes:
 >  - http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605

Hmm, any idea why we only see this with 1.21c on the autobuilders and
not with 1.20?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre
  2020-10-28 14:26 ` Peter Korsgaard
@ 2020-10-28 18:13   ` Fabrice Fontaine
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2020-10-28 18:13 UTC (permalink / raw)
  To: buildroot

Le mer. 28 oct. 2020 ? 15:26, Peter Korsgaard <peter@korsgaard.com> a ?crit :
>
> >>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
>
>  > Fix static build failure with sslh version 1.19b and above
>
>
>  > Fixes:
>  >  - http://autobuild.buildroot.org/results/a601824fc0c205a6a940e0f9f079ce2c39840605
>
> Hmm, any idea why we only see this with 1.21c on the autobuilders and
> not with 1.20?
Nope, I don't understand why we didn't get this build failure with 1.20.
It should be noted that C++ was, wrongly, mandatory before
35c474f8ee718c7c2189b3e5938337c951a57162, but this should not have
hidden this issue ...
>
> --
> Bye, Peter Korsgaard
Best Regards,

Fabrice

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

end of thread, other threads:[~2020-10-28 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-15  6:09 [Buildroot] [PATCH 1/1] package/sslh: fix static build with pcre Fabrice Fontaine
2020-10-15 11:54 ` Thomas Petazzoni
2020-10-28 14:26 ` Peter Korsgaard
2020-10-28 18:13   ` Fabrice Fontaine

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