* [Buildroot] [PATCH] libstrophe: add a patch to fix static builds
@ 2015-09-28 9:17 Vicente Olivert Riera
2015-09-28 19:27 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Vicente Olivert Riera @ 2015-09-28 9:17 UTC (permalink / raw)
To: buildroot
libstrophe.a and libcrypto.a have symbols with equal names, so
executables can't be statically linked with libstrophe and openssl:
sha1dgst.c:(.text+0x1b4c): multiple definition of `SHA1_Update'
sha1dgst.c:(.text+0x1cc0): multiple definition of `SHA1_Final'
sha1dgst.c:(.text+0x1e78): multiple definition of `SHA1_Init
Renaming the internal SHA functions fixes the problem.
Issue reported upstream:
https://github.com/strophe/libstrophe/issues/40
Fixes:
http://autobuild.buildroot.net/results/047/047e319b9d7bf0cdaabc007326a6d67de2c1ee52/
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
package/libstrophe/libstrophe.mk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/package/libstrophe/libstrophe.mk b/package/libstrophe/libstrophe.mk
index e6eb834..60e29d3 100644
--- a/package/libstrophe/libstrophe.mk
+++ b/package/libstrophe/libstrophe.mk
@@ -12,6 +12,7 @@ LIBSTROPHE_AUTORECONF = YES
LIBSTROPHE_LICENSE = MIT or GPLv3
LIBSTROPHE_LICENSE_FILES = MIT-LICENSE.txt GPL-LICENSE.txt
LIBSTROPHE_INSTALL_STAGING = YES
+LIBSTROPHE_PATCH = https://github.com/msantos/libstrophe/commit/b08766c8e46956daba010044b00c97f78b598780.patch
ifeq ($(BR2_PACKAGE_EXPAT),y)
# Passing --without-libxml2 doesn't work, due to how AC_ARG_WITH is
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libstrophe: add a patch to fix static builds
2015-09-28 9:17 [Buildroot] [PATCH] libstrophe: add a patch to fix static builds Vicente Olivert Riera
@ 2015-09-28 19:27 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-09-28 19:27 UTC (permalink / raw)
To: buildroot
Dear Vicente Olivert Riera,
On Mon, 28 Sep 2015 10:17:13 +0100, Vicente Olivert Riera wrote:
> libstrophe.a and libcrypto.a have symbols with equal names, so
> executables can't be statically linked with libstrophe and openssl:
>
> sha1dgst.c:(.text+0x1b4c): multiple definition of `SHA1_Update'
> sha1dgst.c:(.text+0x1cc0): multiple definition of `SHA1_Final'
> sha1dgst.c:(.text+0x1e78): multiple definition of `SHA1_Init
>
> Renaming the internal SHA functions fixes the problem.
>
> Issue reported upstream:
>
> https://github.com/strophe/libstrophe/issues/40
>
> Fixes:
>
> http://autobuild.buildroot.net/results/047/047e319b9d7bf0cdaabc007326a6d67de2c1ee52/
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> package/libstrophe/libstrophe.mk | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-28 19:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28 9:17 [Buildroot] [PATCH] libstrophe: add a patch to fix static builds Vicente Olivert Riera
2015-09-28 19:27 ` Thomas Petazzoni
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.