[asterisk-bugs] [JIRA] (ASTERISK-29818) Build failure on NetBSD due to hmac function collision

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Feb 3 06:47:09 CST 2022


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

Asterisk Team updated ASTERISK-29818:
-------------------------------------

    Target Release Version/s: 16.24.0

> Build failure on NetBSD due to hmac function collision
> ------------------------------------------------------
>
>                 Key: ASTERISK-29818
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29818
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: GIT
>         Environment: NetBSD 9.2 (amd64)
>            Reporter: Michał Górny
>            Assignee: Michał Górny
>      Target Release: 16.24.0
>
>
> When building Asterisk on NetBSD, the build fails with the following error:
> {code}
>    [CC] utils.c -> utils.o
> In file included from utils.c:50:0:
> /home/mgorny/asterisk/include/asterisk/sha1.h:302:12: error: conflicting types for 'hmac'
>  extern int hmac(SHAversion whichSha, /* which SHA algorithm to use */
>             ^~~~
> In file included from /home/mgorny/asterisk/include/asterisk/compat.h:41:0,
>                  from /home/mgorny/asterisk/include/asterisk.h:22,
>                  from utils.c:30:
> /usr/include/stdlib.h:305:10: note: previous declaration of 'hmac' was here
>  ssize_t  hmac(const char *, const void *, size_t, const void *, size_t, void *,
>           ^~~~
> {code}
> It seems that this function isn't actually used anywhere.



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



More information about the asterisk-bugs mailing list