[asterisk-bugs] [JIRA] (ASTERISK-23711) Asterisk does not compile when HAVE_PJ_TRANSACTION_GRP_LOCK is not defined

Marcello Ceschia (JIRA) noreply at issues.asterisk.org
Sun May 4 03:54:43 CDT 2014


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

Marcello Ceschia commented on ASTERISK-23711:
---------------------------------------------

1. pjsip cloned from https://github.com/asterisk/pjproject configure flags: --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr --with-external-speex --with-external-gsm --with-external-srtp --disable-g7221-codec --disable-ilbc-codec CFLAGS='-DPJ_HAS_IPV6=1'

2. In include/asterisk/autoconfig.h is not defined

so I checked the configure output and found {noformat}config.status: include/asterisk/autoconfig.h is unchanged {noformat}
After deleting include/asterisk/autoconfig.h and rerun configure HAVE_PJ_TRANSACTION_GRP_LOCK is defined in include/asterisk/autoconfig.h

Nevertheless the problem is, that mutex is not a member of pjsip_transaction, see https://github.com/asterisk/pjproject/blob/master/pjsip/include/pjsip/sip_transaction.h#L90
and the else part generates a compile error.

> Asterisk does not compile when HAVE_PJ_TRANSACTION_GRP_LOCK is not defined
> --------------------------------------------------------------------------
>
>                 Key: ASTERISK-23711
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23711
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 12.2.0
>         Environment: gcc (SUSE Linux) 4.8.1 20130909 
> pjsip 2.2.1
>            Reporter: Marcello Ceschia
>            Assignee: Marcello Ceschia
>            Severity: Critical
>
> {code}
> res_pjsip/pjsip_distributor.c: In function ‘find_dialog’:
> res_pjsip/pjsip_distributor.c:141:21: error: ‘pjsip_transaction’ has no member named ‘mutex’
>   pj_mutex_unlock(tsx->mutex);
>                      ^
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list