* [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl
@ 2020-09-13 16:52 Fabrice Fontaine
2020-09-13 16:52 ` [Buildroot] [PATCH 2/2] package/sofia-sip: fix build without openssl Fabrice Fontaine
2020-09-13 20:14 ` [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2020-09-13 16:52 UTC (permalink / raw)
To: buildroot
Use --with-openssl=pkg-config otherwise sofia-sip will fail to retrieve
openssl dependencies resulting in the following build failure:
/srv/storage/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../libsofia-sip-ua/.libs/libsofia-sip-ua.a(tport_type_ws.o): in function `tport_ws_deinit_primary':
tport_type_ws.c:(.text+0x2c): undefined reference to `SSL_CTX_free'
/srv/storage/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../libsofia-sip-ua/.libs/libsofia-sip-ua.a(tport_type_ws.o): in function `tport_ws_init_primary_secure':
pkg-config option has been added to freeswitch sofia-sip since 2007 and
https://github.com/freeswitch/sofia-sip/commit/044ac9d8fa7e840cf3e38c3fa7f8cacd0d21b3ea
Fixes:
- http://autobuild.buildroot.org/results/8a0c9dbad74a3b358f90c7a3b56b638c4bdb8045
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/sofia-sip/sofia-sip.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/sofia-sip/sofia-sip.mk b/package/sofia-sip/sofia-sip.mk
index 54b48a7048..0ce0340d87 100644
--- a/package/sofia-sip/sofia-sip.mk
+++ b/package/sofia-sip/sofia-sip.mk
@@ -20,7 +20,7 @@ SOFIA_SIP_CONF_OPTS += --without-glib
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SOFIA_SIP_CONF_OPTS += --with-openssl
+SOFIA_SIP_CONF_OPTS += --with-openssl=pkg-config
SOFIA_SIP_DEPENDENCIES += openssl
else
SOFIA_SIP_CONF_OPTS += --without-openssl
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] package/sofia-sip: fix build without openssl
2020-09-13 16:52 [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl Fabrice Fontaine
@ 2020-09-13 16:52 ` Fabrice Fontaine
2020-09-13 20:14 ` [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2020-09-13 16:52 UTC (permalink / raw)
To: buildroot
HTTP-related modules are enabled by default and depend on openssl since
https://github.com/freeswitch/sofia-sip/commit/5b4103a12596ea01b4cdbb21b75826a085d557aa
Fixes:
- http://autobuild.buildroot.org/results/95b6c489fed07d6fe626200ea057c83756d54deb
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/sofia-sip/sofia-sip.mk | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/sofia-sip/sofia-sip.mk b/package/sofia-sip/sofia-sip.mk
index 0ce0340d87..ef1b35fa2c 100644
--- a/package/sofia-sip/sofia-sip.mk
+++ b/package/sofia-sip/sofia-sip.mk
@@ -20,10 +20,14 @@ SOFIA_SIP_CONF_OPTS += --without-glib
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SOFIA_SIP_CONF_OPTS += --with-openssl=pkg-config
+SOFIA_SIP_CONF_OPTS += \
+ --enable-nth \
+ --with-openssl=pkg-config
SOFIA_SIP_DEPENDENCIES += openssl
else
-SOFIA_SIP_CONF_OPTS += --without-openssl
+SOFIA_SIP_CONF_OPTS += \
+ --disable-nth \
+ --without-openssl
endif
ifeq ($(BR2_ENABLE_DEBUG),y)
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl
2020-09-13 16:52 [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl Fabrice Fontaine
2020-09-13 16:52 ` [Buildroot] [PATCH 2/2] package/sofia-sip: fix build without openssl Fabrice Fontaine
@ 2020-09-13 20:14 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-09-13 20:14 UTC (permalink / raw)
To: buildroot
On Sun, 13 Sep 2020 18:52:25 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Use --with-openssl=pkg-config otherwise sofia-sip will fail to retrieve
> openssl dependencies resulting in the following build failure:
>
> /srv/storage/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../libsofia-sip-ua/.libs/libsofia-sip-ua.a(tport_type_ws.o): in function `tport_ws_deinit_primary':
> tport_type_ws.c:(.text+0x2c): undefined reference to `SSL_CTX_free'
> /srv/storage/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../libsofia-sip-ua/.libs/libsofia-sip-ua.a(tport_type_ws.o): in function `tport_ws_init_primary_secure':
>
> pkg-config option has been added to freeswitch sofia-sip since 2007 and
> https://github.com/freeswitch/sofia-sip/commit/044ac9d8fa7e840cf3e38c3fa7f8cacd0d21b3ea
>
> Fixes:
> - http://autobuild.buildroot.org/results/8a0c9dbad74a3b358f90c7a3b56b638c4bdb8045
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/sofia-sip/sofia-sip.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Both applied to master. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-13 20:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13 16:52 [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl Fabrice Fontaine
2020-09-13 16:52 ` [Buildroot] [PATCH 2/2] package/sofia-sip: fix build without openssl Fabrice Fontaine
2020-09-13 20:14 ` [Buildroot] [PATCH 1/2] package/sofia-sip: fix static build with openssl 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.