[asterisk-bugs] [JIRA] (ASTERISK-29616) res_rtp_asterisk: sqrt(.) requires the header math.h.

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Oct 13 05:59:51 CDT 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-29616:
-------------------------------------

    Target Release Version/s: 19.0.0

> res_rtp_asterisk: sqrt(.) requires the header math.h.
> -----------------------------------------------------
>
>                 Key: ASTERISK-29616
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29616
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_rtp_asterisk
>    Affects Versions: 16.20.0, 18.6.0
>            Reporter: Alexander Traud
>            Assignee: Alexander Traud
>      Target Release: 16.21.0, 18.7.0, 19.0.0
>
>
> {code}res_rtp_asterisk.c: In function ‘calc_mean_and_standard_deviation’:
> res_rtp_asterisk.c:3357:13: warning: implicit declaration of function ‘sqrt’ [-Wimplicit-function-declaration]
>   *std_dev = sqrt((last_sum_of_squares + (delta1 * delta2)) / *count);
>              ^~~~
> res_rtp_asterisk.c:3357:13: warning: incompatible implicit declaration of built-in function ‘sqrt’
> res_rtp_asterisk.c:3357:13: note: include ‘<math.h>’ or provide a declaration of ‘sqrt’{code}Found this, while making Asterisk 18 with several jobs (3). This issue is caused by the fix for ASTERISK-29364 ([Gerrit-15689|https://gerrit.asterisk.org/15689], commit [0fc906a|https://github.com/asterisk/asterisk/commit/0fc906a]. Therefore, it was introduced with Asterisk [16.18|https://github.com/asterisk/asterisk/commit/bd42639] and [18.4|https://github.com/asterisk/asterisk/commit/17c86dc].



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



More information about the asterisk-bugs mailing list