Bug 246764 - net/asterisk16: port is broken and some modules will not load
Summary: net/asterisk16: port is broken and some modules will not load
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Guido Falsi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-27 05:36 UTC by Brad Smith
Modified: 2020-07-06 15:51 UTC (History)
1 user (show)

See Also:
madpilot: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Smith 2020-05-27 05:36:14 UTC
I was using FreeBSD 11.2. After switching to FreeBSD 12.1 I noticed asterisk16 that I had installed under 11 was now not working.


root@inet-fw:~ # /usr/local/sbin/asterisk -n -f -U asterisk
XSLT support not found. XML documentation may be incomplete.
PBX UUID: 133b5cd2-3ae4-4615-a9f4-6e6e7a632d3c
[May 27 01:33:00] NOTICE[100301]: loader.c:2377 int load_modules(void): 318 modules will be loaded.
[May 27 01:33:00] ERROR[100301]: res_config_sqlite.c:1680 int load_module(void): unable to open database: /var/lib/asterisk/sqlite.db
[May 27 01:33:00] WARNING[100301]: res_config_mysql.c:1247 int load_mysql_config(struct ast_config *, const char *, struct mysql_conn *): MySQL RealTime: No database user found, using 'asterisk' as default.
[May 27 01:33:00] WARNING[100301]: res_config_mysql.c:1253 int load_mysql_config(struct ast_config *, const char *, struct mysql_conn *): MySQL RealTime: No database password found, using 'asterisk' as default.
[May 27 01:33:00] WARNING[100301]: res_config_mysql.c:1259 int load_mysql_config(struct ast_config *, const char *, struct mysql_conn *): MySQL RealTime: No database host found, using localhost via socket.
[May 27 01:33:00] WARNING[100301]: res_config_mysql.c:1265 int load_mysql_config(struct ast_config *, const char *, struct mysql_conn *): MySQL RealTime: No database name found, using 'asterisk' as default.
[May 27 01:33:00] WARNING[100301]: res_config_mysql.c:1271 int load_mysql_config(struct ast_config *, const char *, struct mysql_conn *): MySQL RealTime: No database port found, using 3306 as default.
[May 27 01:33:00] WARNING[100301]: res_config_mysql.c:1288 int load_mysql_config(struct ast_config *, const char *, struct mysql_conn *): MySQL RealTime: No database socket found (and unable to detect a suitable path).
[May 27 01:33:00] NOTICE[100301]: cdr.c:4522 int cdr_toggle_runtime_options(void): CDR simple logging enabled.
[May 27 01:33:00] WARNING[100301]: res_phoneprov.c:1232 struct varshead *get_defaults(void): Unable to find a valid server address or name.
[May 27 01:33:00] NOTICE[100301]: res_smdi.c:1424 int load_module(void): No SMDI interfaces are available to listen on, not starting SMDI listener.
SIP channel loading...
[May 27 01:33:00] WARNING[100301]: sip/config_parser.c:817 void sip_parse_nat_option(const char *, struct ast_flags *, struct ast_flags *): nat=yes is deprecated, use nat=force_rport,comedia instead
[May 27 01:33:00] NOTICE[100301]: chan_sip.c:31972 struct sip_peer *build_peer(const char *, struct ast_variable *, struct ast_variable *, int, int): The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[May 27 01:33:00] WARNING[100301]: chan_sip.c:32476 void display_nat_warning(const char *, int, struct ast_flags *): !!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from the  global setting can make
[May 27 01:33:00] WARNING[100301]: chan_sip.c:32477 void display_nat_warning(const char *, int, struct ast_flags *): !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
[May 27 01:33:00] WARNING[100301]: chan_sip.c:32478 void display_nat_warning(const char *, int, struct ast_flags *): !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
[May 27 01:33:00] WARNING[100301]: chan_sip.c:32479 void display_nat_warning(const char *, int, struct ast_flags *): !!! use the global 'nat' setting and do not set 'nat' per peer/user.
[May 27 01:33:00] WARNING[100301]: chan_sip.c:32480 void display_nat_warning(const char *, int, struct ast_flags *): !!! (config category='voipms' global force_rport='No' peer/user force_rport='Yes')
[May 27 01:33:00] NOTICE[100301]: chan_skinny.c:8459 int config_load(void): Configuring skinny from skinny.conf
[May 27 01:33:00] NOTICE[100301]: confbridge/conf_config_parser.c:2352 int verify_default_profiles(void): Adding default_menu menu to app_confbridge
[May 27 01:33:00] NOTICE[100301]: cdr_radius.c:264 int load_module(void): Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf.
[May 27 01:33:00] NOTICE[100301]: cel_custom.c:95 int load_config(void): No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[May 27 01:33:00] NOTICE[100301]: cel_radius.c:236 int load_module(void): Cannot load radiusclient-ng configuration file /etc/radiusclient-ng/radiusclient.conf.
[May 27 01:33:00] NOTICE[100301]: cel_tds.c:450 int tds_load_module(int): cel_tds has no global category, nothing to configure.
[May 27 01:33:00] WARNING[100301]: cel_tds.c:555 int load_module(void): cel_tds module had config problems; declining load
[May 27 01:33:00] WARNING[100301]: chan_unistim.c:7009 int reload_config(void): Your OS does not support IP_PKTINFO, you must set public_ip.
[May 27 01:33:00] NOTICE[101179]: chan_sip.c:25008 void handle_response_peerpoke(struct sip_pvt *, int, struct sip_request *): Peer '101' is now Reachable. (6ms / 2000ms)
[May 27 01:33:00] NOTICE[101179]: chan_sip.c:25008 void handle_response_peerpoke(struct sip_pvt *, int, struct sip_request *): Peer 'voipms' is now Reachable. (9ms / 2000ms)
[May 27 01:33:00] WARNING[100301]: loader.c:2381 int load_modules(void): Some non-required modules failed to load.
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'chan_pjsip.so': /usr/local/lib/asterisk/modules/chan_pjsip.so: Undefined symbol "ast_sip_cli_traverse_objects"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'func_pjsip_aor.so': /usr/local/lib/asterisk/modules/func_pjsip_aor.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'func_pjsip_contact.so': /usr/local/lib/asterisk/modules/func_pjsip_contact.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'func_pjsip_endpoint.so': /usr/local/lib/asterisk/modules/func_pjsip_endpoint.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_caller_id.so': /usr/local/lib/asterisk/modules/res_pjsip_caller_id.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_config_wizard.so': /usr/local/lib/asterisk/modules/res_pjsip_config_wizard.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_dialog_info_body_generator.so': /usr/local/lib/asterisk/modules/res_pjsip_dialog_info_body_generator.so: Undefined symbol "ast_sip_pubsub_register_body_generator"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_diversion.so': /usr/local/lib/asterisk/modules/res_pjsip_diversion.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_dlg_options.so': /usr/local/lib/asterisk/modules/res_pjsip_dlg_options.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_dtmf_info.so': /usr/local/lib/asterisk/modules/res_pjsip_dtmf_info.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_empty_info.so': /usr/local/lib/asterisk/modules/res_pjsip_empty_info.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_endpoint_identifier_anonymous.so': /usr/local/lib/asterisk/modules/res_pjsip_endpoint_identifier_anonymous.so: Undefined symbol "ast_sip_register_endpoint_identifier_with_name"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_endpoint_identifier_user.so': /usr/local/lib/asterisk/modules/res_pjsip_endpoint_identifier_user.so: Undefined symbol "ast_sip_register_endpoint_identifier_with_name"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_mwi.so': /usr/local/lib/asterisk/modules/res_pjsip_mwi.so: Undefined symbol "ast_sip_register_subscription_handler"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_mwi_body_generator.so': /usr/local/lib/asterisk/modules/res_pjsip_mwi_body_generator.so: Undefined symbol "ast_sip_pubsub_register_body_generator"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_nat.so': /usr/local/lib/asterisk/modules/res_pjsip_nat.so: Undefined symbol "pjsip_notify_method"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_notify.so': /usr/local/lib/asterisk/modules/res_pjsip_notify.so: Undefined symbol "ast_sip_push_task"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_outbound_publish.so': /usr/local/lib/asterisk/modules/res_pjsip_outbound_publish.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_endpoint_identifier_ip.so': /usr/local/lib/asterisk/modules/res_pjsip_endpoint_identifier_ip.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_exten_state.so': /usr/local/lib/asterisk/modules/res_pjsip_exten_state.so: Undefined symbol "ast_sip_subscription_get_endpoint"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_header_funcs.so': /usr/local/lib/asterisk/modules/res_pjsip_header_funcs.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_history.so': /usr/local/lib/asterisk/modules/res_pjsip_history.so: Undefined symbol "PJ_AF_UNSPEC"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_logger.so': /usr/local/lib/asterisk/modules/res_pjsip_logger.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_messaging.so': /usr/local/lib/asterisk/modules/res_pjsip_messaging.so: Undefined symbol "ast_sip_register_service"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_one_touch_record_info.so': /usr/local/lib/asterisk/modules/res_pjsip_one_touch_record_info.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_outbound_authenticator_digest.so': /usr/local/lib/asterisk/modules/res_pjsip_outbound_authenticator_digest.so: Undefined symbol "ast_sip_register_outbound_authenticator"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_outbound_registration.so': /usr/local/lib/asterisk/modules/res_pjsip_outbound_registration.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_path.so': /usr/local/lib/asterisk/modules/res_pjsip_path.so: Undefined symbol "ast_sip_register_supplement"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_phoneprov_provider.so': /usr/local/lib/asterisk/modules/res_pjsip_phoneprov_provider.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_pidf_body_generator.so': /usr/local/lib/asterisk/modules/res_pjsip_pidf_body_generator.so: Undefined symbol "ast_sip_pubsub_register_body_generator"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_pidf_digium_body_supplement.so': /usr/local/lib/asterisk/modules/res_pjsip_pidf_digium_body_supplement.so: Undefined symbol "ast_sip_pubsub_register_body_supplement"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_pidf_eyebeam_body_supplement.so': /usr/local/lib/asterisk/modules/res_pjsip_pidf_eyebeam_body_supplement.so: Undefined symbol "ast_sip_pubsub_register_body_supplement"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_session.so': /usr/local/lib/asterisk/modules/res_pjsip_session.so: Undefined symbol "PJ_AF_INET"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_sips_contact.so': /usr/local/lib/asterisk/modules/res_pjsip_sips_contact.so: Undefined symbol "ast_sip_register_service"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_t38.so': /usr/local/lib/asterisk/modules/res_pjsip_t38.so: Undefined symbol "PJ_AF_INET"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_publish_asterisk.so': /usr/local/lib/asterisk/modules/res_pjsip_publish_asterisk.so: Undefined symbol "ast_sip_publish_client_alloc_datastore"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_pubsub.so': /usr/local/lib/asterisk/modules/res_pjsip_pubsub.so: Undefined symbol "PJ_GUID_STRING_LENGTH"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_refer.so': /usr/local/lib/asterisk/modules/res_pjsip_refer.so: Undefined symbol "pjsip_invite_method"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_registrar.so': /usr/local/lib/asterisk/modules/res_pjsip_registrar.so: Undefined symbol "pjsip_register_method"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_rfc3326.so': /usr/local/lib/asterisk/modules/res_pjsip_rfc3326.so: Undefined symbol "pjsip_bye_method"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_sdp_rtp.so': /usr/local/lib/asterisk/modules/res_pjsip_sdp_rtp.so: Undefined symbol "PJ_AF_INET"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_send_to_voicemail.so': /usr/local/lib/asterisk/modules/res_pjsip_send_to_voicemail.so: Undefined symbol "ast_sip_session_register_supplement_with_module"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_xpidf_body_generator.so': /usr/local/lib/asterisk/modules/res_pjsip_xpidf_body_generator.so: Undefined symbol "ast_sip_pubsub_register_body_generator"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_rtp_asterisk.so': /usr/local/lib/asterisk/modules/res_rtp_asterisk.so: Undefined symbol "PJ_AF_INET"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjproject.so': /usr/local/lib/asterisk/modules/res_pjproject.so: Undefined symbol "PJ_AF_INET"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip.so': /usr/local/lib/asterisk/modules/res_pjsip.so: Undefined symbol "PJ_AF_INET"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_acl.so': /usr/local/lib/asterisk/modules/res_pjsip_acl.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): Error loading module 'res_pjsip_authenticator_digest.so': /usr/local/lib/asterisk/modules/res_pjsip_authenticator_digest.so: Undefined symbol "ast_sip_get_sorcery"
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): res_config_sqlite declined to load.
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): cdr_radius declined to load.
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): cdr_tds declined to load.
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): cel_radius declined to load.
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): cel_tds declined to load.
[May 27 01:33:00] ERROR[100301]: loader.c:2396 int load_modules(void): chan_unistim declined to load.
Asterisk Ready.
Comment 1 Guido Falsi freebsd_committer 2020-05-27 07:37:30 UTC
Hi,

First question is, after upgrading to 12.1 (major version upgrade) have you reinstalled all your ports/packages?

This is standard procedure for major upgrades, since packages are not warranted to be compatible with new major releases.

Also, exactly which version of the port/package are you using? can you show the output of "pkg info '*asterisk*'"?


Another thing to try is using ldd on some of the asterisk modules that failed to load to see if they are missing some library, for example (using default paths):

ldd /usr/local/lib/asterisk/modules/chan_pjsip.so


One change that happened in asterisk port recently is moving it from using external pjsip to using it's own bundled version. While it should not cause problems, just to be on the safe side, make sure you have removed the now unneeded pjsip port too.
Comment 2 Guido Falsi freebsd_committer 2020-05-27 07:39:35 UTC
Another question, are you using locally built ports?

Or are you using binary pakcages? Quarterly or latest?
Comment 3 Brad Smith 2020-05-27 07:52:29 UTC
It was a fresh install. I just copied the config bits over from the previous system.

I used a package.

root@inet-fw:~ # pkg info '*asterisk*'
asterisk16-16.10.0_2

root@inet-fw:~ # ldd /usr/local/lib/asterisk/modules/chan_pjsip.so
/usr/local/lib/asterisk/modules/chan_pjsip.so:
        libthr.so.3 => /lib/libthr.so.3 (0x3f430fea000)
        libc.so.7 => /lib/libc.so.7 (0x3f43101c000)
Comment 4 Guido Falsi freebsd_committer 2020-05-27 08:49:06 UTC
(In reply to Brad Smith from comment #3)
> It was a fresh install. I just copied the config bits over from the previous system.
> 
> I used a package.
> 
> root@inet-fw:~ # pkg info '*asterisk*'
> asterisk16-16.10.0_2

This comes from ports head. Is this from the "official" latest package set or are you building packages using your own poudriere setup?


I've tried reproduce this problem in a virtual machine with 12.1, by installing the astterisk16 port from the latest official package set, but it does not fail in such a way. If you are using official packages I can't understand the issue. Maybe you downloaded a bad package? have you tried forcing a reinstall?

If you are building your own packages could you share the full build log for the asterisk16 port? Are you compi9ling with custom options or a custom configuration?

The error looks quite similar to one error I got when moving the asterisk port from external pjsip to the bundled one, which I solved with the second hunk of files/patch-third-party_pjproject_Makefile in the port.

In this case the error looks slightly different, but looks like some symbols did not make it into the library, which is strange, that's why I'd like to see some build logs and cannot imagine how this could happen with the official package which is not showing such behaviour on my machine, nor is showing the package I'm building on my poudriere.
Comment 5 Guido Falsi freebsd_committer 2020-06-12 17:50:08 UTC
Any news? Is this still an issue after the latest updates?
Comment 6 Guido Falsi freebsd_committer 2020-07-06 15:51:36 UTC
No feedback. In the while the asterisk port has received various updates.

If this is still an issue, please reopen this bug or file a new one.

Thaanks!