libpjsip: needs threads
PATCH 1/2 libpjsip: needs threads
Builds without thread support fail with the following error:
../src/pj/os_core_unix.c:45:21: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^compilation terminated.
Fixes:
http://autobuild.buildroot.org/results/744/744431e1b47d22222c4d0b48d5d20649dfeed929/
http://autobuild.buildroot.org/results/a10/a10aca9139054502e055cb61f3925637fc515e12/
--- package/libpjsip/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/libpjsip/Config.in +3 -2
@@ -1,6 +1,7 @@ config BR2_PACKAGE_LIBPJSIP bool "libpjsip" depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS help PJSIP is a free and open source multimedia communication library written in C language implementing standard based
@@ -8,5 +9,5 @@ config BR2_PACKAGE_LIBPJSIP http://www.pjsip.org -comment "libpjsip needs a toolchain w/ C++" - depends on !BR2_INSTALL_LIBSTDCPP +comment "libpjsip needs a toolchain w/ C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
1.9.1
PATCH 2/2 libpjsip: fix optional dependency on libsrtp
libpjsip does not correctly detect whether libsrtp is installed in staging.
Symptom:
.../libpjmedia.so: undefined reference to `srtp_deinit'
collect2: error: ld returned 1 exit status
Fixes:
http://autobuild.buildroot.org/results/305/305fdc8442cd2e8f51b90485be0dca83ffa36603/
http://autobuild.buildroot.org/results/a2f/a2f407c1361ac5c24af122445e84645e9aee309d/
...and other similar failures.
--- package/libpjsip/libpjsip.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/libpjsip/libpjsip.mk +5 -0
@@ -31,6 +31,11 @@ else LIBPJSIP_CONF_OPTS += --disable-ssl endif +ifeq ($(BR2_PACKAGE_LIBSRTP),y) +LIBPJSIP_DEPENDENCIES += libsrtp +LIBPJSIP_CONF_OPTS += --with-external-srtp=$(STAGING_DIR)/usr +endif + ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y) LIBPJSIP_DEPENDENCIES += util-linux endif
Signature · 1 line
1.9.1
PATCH 2/2 libpjsip: fix optional dependency on libsrtp
Dear Luca Ceresoli,
package/libpjsip/libpjsip.mk else · line 37
Quoted 4 lines · Luca Ceresoli
package/libpjsip/libpjsip.mk +4
-0+ifeq ($(BR2_PACKAGE_LIBSRTP),y) +LIBPJSIP_DEPENDENCIES += libsrtp +LIBPJSIP_CONF_OPTS += --with-external-srtp=$(STAGING_DIR)/usr +endif
The --with-external-srtp seems to imply that there is also an "internal/bundled" srtp.
If pjsip indeed needs srtp unconditionally, then we should always depend on it and use the external libsrtp rather than the bundled one.
Can you confirm how libsrtp is used by pjsip?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 libpjsip: fix optional dependency on libsrtp
Quoted 12 lines · Thomas Petazzoni
Dear Luca Ceresoli,
package/libpjsip/libpjsip.mk else · line 37
Quoted 4 lines · Luca Ceresoli
package/libpjsip/libpjsip.mk +4
-0+ifeq ($(BR2_PACKAGE_LIBSRTP),y) +LIBPJSIP_DEPENDENCIES += libsrtp +LIBPJSIP_CONF_OPTS += --with-external-srtp=$(STAGING_DIR)/usr +endifThe --with-external-srtp seems to imply that there is also an "internal/bundled" srtp.
Quoted 2 lines
If pjsip indeed needs srtp unconditionally, then we should always depend on it and use the external libsrtp rather than the bundled one.
Uh, indeed libpjsip always links libsrtp, and ships the internal copy in case the no external one is found.
Updated patch incoming.
Signature · 1 line
Luca
Thomas Petazzoni
AppliedPATCH 1/2 libpjsip: needs threads
In reply to Luca CeresoliDear Luca Ceresoli,
Quoted 7 lines · Luca Ceresoli
Builds without thread support fail with the following error:
../src/pj/os_core_unix.c:45:21: fatal error:pthread.h: No such file or directory#include <pthread.h> ^compilation terminated.
Quoted 8 lines
Fixes:
http://autobuild.buildroot.org/results/744/744431e1b47d22222c4d0b48d5d20649dfeed929/
http://autobuild.buildroot.org/results/a10/a10aca9139054502e055cb61f3925637fc515e12/Signed-off-by Luca Ceresoli <[email protected]>--- package/libpjsip/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com