[asterisk-bugs] [JIRA] (ASTERISK-29660) Build failure when disabling PJSIP support

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Sep 21 11:05:33 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256386#comment-256386 ] 

Friendly Automation commented on ASTERISK-29660:
------------------------------------------------

Change 16489 merged by Friendly Automation:
res_rtp_asterisk.c: Fix build failure when not building with pjproject.

[https://gerrit.asterisk.org/c/asterisk/+/16489|https://gerrit.asterisk.org/c/asterisk/+/16489]

> 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
>            Assignee: 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