[asterisk-bugs] [JIRA] (ASTERISK-28440) Runtime Error: res_pjsip.so: undefined symbol: pj_ssl_cipher_name

Reuben Farrelly (JIRA) noreply at issues.asterisk.org
Wed Jun 12 19:43:47 CDT 2019


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

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

Hi Chris,

Yes - for both I was using pjproject-2.8.  

Gentoo has a policy of not using bundled versions, but for the purposes of this test I have compiled from pristine 16.4.0 source code (no patches) and without the Gentoo pjproject package even being installed, and instead only using the bundled version that is pulled in as part of the Asterisk build.

Configure options:

./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/asterisk-16.4.0 --htmldir=/usr/share/doc/asterisk-16.4.0/html --libdir=/usr/lib64 --localstatedir=/var --with-crypto --with-gsm=internal --with-popt --with-ssl --with-z --with-opus --with-jansson-bundled --with-pjproject-bundled --with-cap --with-gmime --without-newt --without-portaudio

I've seen the same problem on two different (almost identical) systems.

Thanks,
Reuben


> Runtime Error:  res_pjsip.so: undefined symbol: pj_ssl_cipher_name
> ------------------------------------------------------------------
>
>                 Key: ASTERISK-28440
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28440
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 16.4.0
>         Environment: Gentoo Linux (updated daily), x86-64 VM
>            Reporter: Reuben Farrelly
>            Assignee: Reuben Farrelly
>              Labels: pjsip
>
> 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