[asterisk-bugs] [JIRA] (ASTERISK-28440) pjsip: configure does not detect LibreSSL

Reuben Farrelly (JIRA) noreply at issues.asterisk.org
Thu Apr 16 07:33:25 CDT 2020


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

Reuben Farrelly commented on ASTERISK-28440:
--------------------------------------------

I haven't tested with 15.x and 16.x for some time now.  Last time I did so both of those major versions experienced this issue.

I have however tested and presently run 17.x releases - and the issue does not appear to be present in that line of code.  Asterisk builds and runs fine on this release with exactly the same options and exactly the same environment.  I've completed at least two upgrades within 17.x now and have not seen the issue since, so I've come to the conclusion that something committed in 17.x has resolved the problem (but I don't know what...).

> pjsip: configure does not detect LibreSSL
> -----------------------------------------
>
>                 Key: ASTERISK-28440
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28440
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip, Resources/res_pjsip
>    Affects Versions: 16.4.0
>         Environment: Gentoo Linux (updated daily), x86-64 VM
>            Reporter: Reuben Farrelly
>            Assignee: Unassigned
>            Severity: Minor
>              Labels: pjsip
>         Attachments: config.log, pjproject-config.log
>
>
> There seems to be a new regression in pjsip in Asterisk 16.x.  The build runs successfully to completion, but there is an issue at runtime which is preventing pjsip from starting.
> Here's the startup log:
> [Jun  9 16:10:03] Asterisk 16.4.0 built by portage @ supercell on a x86_64 running Linux on 2019-06-09 06:07:01 UTC
> [Jun  9 16:10:03] NOTICE[28908] loader.c: 295 modules will be loaded.
> [Jun  9 16:10:03] NOTICE[28908] cdr.c: CDR simple logging enabled.
> [Jun  9 16:10:03] WARNING[28908] res_phoneprov.c: Unable to find a valid server address or name.
> [Jun  9 16:10:03] NOTICE[28908] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
> [Jun  9 16:10:03] NOTICE[28908] chan_skinny.c: Configuring skinny from skinny.conf
> [Jun  9 16:10:03] ERROR[28908] ari/config.c: No configured users for ARI
> [Jun  9 16:10:03] NOTICE[28908] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
> [Jun  9 16:10:03] NOTICE[28908] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
> [Jun  9 16:10:03] WARNING[28908] loader.c: Some non-required modules failed to load.
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_refer.so', missing dependencies: res_pjsip, res_pjsip_session, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_empty_info.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_pubsub.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_transport_websocket.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_one_touch_record_info.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_sdp_rtp.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_session.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_sips_contact.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_pidf_body_generator.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_header_funcs.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_endpoint_identifier_ip.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_diversion.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_path.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_messaging.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_pidf_eyebeam_body_supplement.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_xpidf_body_generator.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_outbound_publish.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_outbound_authenticator_digest.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_endpoint_identifier_anonymous.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_mwi.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip.so': /usr/lib64/asterisk/modules/res_pjsip.so: undefined symbol: pj_ssl_cipher_name
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_acl.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'func_pjsip_endpoint.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_pidf_digium_body_supplement.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_logger.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_rfc3326.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_authenticator_digest.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_phoneprov_provider.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_mwi_body_generator.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_dialog_info_body_generator.so', missing dependencies: res_pjsip, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'func_pjsip_aor.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_publish_asterisk.so', missing dependencies: res_pjsip, res_pjsip_outbound_publish, res_pjsip_pubsub
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_registrar.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_t38.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_send_to_voicemail.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_dlg_options.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'chan_pjsip.so': /usr/lib64/asterisk/modules/chan_pjsip.so: undefined symbol: ast_sip_cli_traverse_objects
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'func_pjsip_contact.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_dtmf_info.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_exten_state.so', missing dependencies: res_pjsip, res_pjsip_pubsub, res_pjsip_outbound_publish
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_notify.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_history.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_config_wizard.so': /usr/lib64/asterisk/modules/res_pjsip_config_wizard.so: undefined symbol: ast_sip_get_sorcery
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_outbound_registration.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_caller_id.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_nat.so', missing dependencies: res_pjsip, res_pjsip_session
> [Jun  9 16:10:03] ERROR[28908] loader.c: Error loading module 'res_pjsip_endpoint_identifier_user.so', missing dependency: res_pjsip
> [Jun  9 16:10:03] ERROR[28908] loader.c: cel_sqlite3_custom declined to load.
> [Jun  9 16:10:03] ERROR[28908] loader.c: cdr_syslog declined to load.
> [Jun  9 16:10:03] ERROR[28908] loader.c: cdr_sqlite3_custom declined to load.
> Further investigation suggests that it is the res_pjsip.so which is failing to load.
> If I manually attempt to load it there is a more interesting error:
> supercell*CLI> module load res_pjsip.so
> Unable to load module res_pjsip.so
> Command 'module load res_pjsip.so' failed.
> [Jun  9 16:11:25] ERROR[28997]: loader.c:281 module_load_error: Error loading module 'res_pjsip.so': /usr/lib64/asterisk/modules/res_pjsip.so: undefined symbol: pj_ssl_cipher_name
> supercell*CLI> 
> This error does not occur with Asterisk 15.7.2 (and earlier versions) but so far occurs with 16.3.0 and 16.4.0.  I haven't tested earlier 16.x releases.  In my testing I have compiled with identical configure options, and on the exact same system for both.  The problem is 100% reproducible.
> The system has LibreSSL-2.9.2 as the SSL provider (with all versions, including those that work).
> I posted this on the Asterisk Community Forum about 2 weeks ago but didn't receive a response:
> https://community.asterisk.org/t/pjsip-module-error-undefined-symbol-pj-ssl-cipher-name/79365
> A full and verbose startup log is posted at https://drive.google.com/file/d/14A4gXC8WRxFE7Zig2PVa-BulzvGY5IEw/view
> This bug is currently preventing me from migration from Asterisk 15.7.2 to version 16.



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



More information about the asterisk-bugs mailing list