[asterisk-bugs] [JIRA] (ASTERISK-25727) PJSIP with res_statsd in 13.7.0 is broken
Gergely Dömsödi (JIRA)
noreply at issues.asterisk.org
Wed Jan 27 09:56:33 CST 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-25727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229206#comment-229206 ]
Gergely Dömsödi commented on ASTERISK-25727:
--------------------------------------------
As it turned out during further investigation, the problem could be with fedora rpmbuild's default build options.
Originally, when I reported the issue, I tried to build asterisk from an updated version of Fedora's asterisk .spec file with rpmbuild, and that produced the error above. But when I do a normal {{./configure; make; make install}}, everything seems to start up fine.
Firstly I suspected Fedora 23's default [hardening|https://fedoraproject.org/wiki/Changes/Harden_All_Packages] rules, and I turned it off from the spec file. But this resulted in asterisk not even starting up with the message: {{asterisk: symbol lookup error: /usr/lib64/asterisk/modules/res_pjsip.so: undefined symbol: ast_statsd_log_full_va}}
I attached the debug logs of both the hardened, and the not hardened startup, and the build logs of the not hardened rpm build. Please notice that {{-z relro}} is still in effect. I also tried to turned that out (and other gcc and ld option added by rpmbuild), without success, yet.
So, to summarize:
Vanilla configure, make, make install: works
rpm build with hardening enabled (fedora default): asterisk starts up, but res_pjsip is not loaded, and cannot be loaded
rpm build with hardenind disabled (%undefine _hardened_build): asterisk doesn't even starts with the message above
> PJSIP with res_statsd in 13.7.0 is broken
> ------------------------------------------
>
> Key: ASTERISK-25727
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25727
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip
> Affects Versions: 13.7.0
> Environment: Fedora 23
> Reporter: Gergely Dömsödi
> Assignee: Gergely Dömsödi
>
> I built 13.7.0 on Fedora 23 (gcc 5.3.1) and res_pjsip fails to load with the message: {{Error loading module 'res_pjsip.so': /usr/lib64/asterisk/modules/res_pjsip.so: undefined symbol: ast_statsd_log_full_va}}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list