[Home]

Summary:ASTERISK-28662: Asterisk install does not compile res_pjsip/config_transport.c
Reporter:Rahmani (Mrahamni)Labels:
Date Opened:2019-12-16 10:17:31.000-0600Date Closed:2019-12-16 18:45:41.000-0600
Priority:CriticalRegression?
Status:Closed/CompleteComponents:pjproject/pjsip
Versions:13.29.2 Frequency of
Occurrence
Related
Issues:
Environment:Centos 6 X64bitAttachments:
Description: https://www.sangoma.com/articles/install-asterisk-13-pjsip-centos-6/?utm_source=digium_redirect

returns below error at this step:

# make && make install

{noformat}
[LD] res_parking.o parking/parking_applications.o parking/parking_bridge.o parking/parking_bridge_features.o parking/parking_controller.o parking/parking_devicestate.o parking/parking_manager.o parking/parking_tests.o parking/parking_ui.o -> res_parking.so
  [CC] res_phoneprov.c -> res_phoneprov.o
  [LD] res_phoneprov.o -> res_phoneprov.so
  [CC] res_pjproject.c -> res_pjproject.o
  [LD] res_pjproject.o -> res_pjproject.so
  [CC] res_pjsip_acl.c -> res_pjsip_acl.o
  [LD] res_pjsip_acl.o -> res_pjsip_acl.so
  [CC] res_pjsip_authenticator_digest.c -> res_pjsip_authenticator_digest.o
  [LD] res_pjsip_authenticator_digest.o -> res_pjsip_authenticator_digest.so
  [CC] res_pjsip.c -> res_pjsip.o
  [CC] res_pjsip/config_auth.c -> res_pjsip/config_auth.o
  [CC] res_pjsip/config_domain_aliases.c -> res_pjsip/config_domain_aliases.o
  [CC] res_pjsip/config_global.c -> res_pjsip/config_global.o
  [CC] res_pjsip/config_system.c -> res_pjsip/config_system.o
  [CC] res_pjsip/config_transport.c -> res_pjsip/config_transport.o
res_pjsip/config_transport.c: In function ‘cipher_name_to_id’:
res_pjsip/config_transport.c:982: error: ‘PJ_SSL_SOCK_MAX_CIPHERS’ undeclared (first use in this function)
res_pjsip/config_transport.c:982: error: (Each undeclared identifier is reported only once
res_pjsip/config_transport.c:982: error: for each function it appears in.)
res_pjsip/config_transport.c:982: warning: unused variable ‘ciphers’
res_pjsip/config_transport.c: In function ‘handle_pjsip_list_ciphers’:
res_pjsip/config_transport.c:1106: error: ‘PJ_SSL_SOCK_MAX_CIPHERS’ undeclared (first use in this function)
res_pjsip/config_transport.c:1106: warning: unused variable ‘ciphers’
make[1]: *** [res_pjsip/config_transport.o] Error 1
make: *** [res] Error 2
{noformat}
Comments:By: Asterisk Team (asteriskteam) 2019-12-16 10:17:33.212-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Kevin Harwell (kharwell) 2019-12-16 18:45:33.845-0600

That guide is a bit outdated now. Please use the instructions on the wiki for installing Asterisk from source [1] as that will be kept more up to date. Specifically in your case you need to configure Asterisk with the pjproject bundled option, {{--with-pjproject-bundled}}. For more information see the pjsip/pjproject on our wiki[2].

[1] https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source
[2] https://wiki.asterisk.org/wiki/display/AST/PJSIP-pjproject