[asterisk-bugs] [JIRA] (ASTERISK-29660) Build failure when disabling PJSIP support
Guido Falsi (JIRA)
noreply at issues.asterisk.org
Fri Sep 17 14:43:33 CDT 2021
Guido Falsi created ASTERISK-29660:
--------------------------------------
Summary: Build failure when disabling PJSIP support
Key: ASTERISK-29660
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29660
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_rtp_asterisk
Affects Versions: 16.21.0, 18.7.0
Environment: Seeing this on asterisk, but should apply to any OS
Reporter: Guido Falsi
Severity: Major
In the asterisk port there is an option to disable PJSIP support, passing "--without-pjproject --without-pjproject-bundled" to the configure script.
WIth the latest RC versions this causes a build failure:
{quote}
res_rtp_asterisk.c:9041:22: error: use of undeclared identifier 'stunaddr_lock'; did you mean 'stunaddr_name'?
ast_rwlock_rdlock(&stunaddr_lock);
^~~~~~~~~~~~~
stunaddr_name
{quote}
(more errors follow, same error for 16 and 18)
Looking at {{res_rtp_asterisk.c}} it looks like most of the code involving {{stunaddr_lock}} is inside {{#ifdef HAVE_PJPROJECT}} blocks, including its definition.
I'm going to submit a patch adding more {{#ifdef HAVE_PJPROJECT}} on the code using the missing definitions, so it builds, not sure if this is the correct fix though.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list