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

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Mon Dec 27 04:44:45 CST 2021


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

Work on ASTERISK-29818 started by Michał Górny.

> 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
>
> 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