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

Michał Górny (JIRA) noreply at issues.asterisk.org
Fri Dec 24 03:55:44 CST 2021


Michał Górny created ASTERISK-29818:
---------------------------------------

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


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