[MacPorts] #58060: Build error on Ubuntu: unknown type name ‘SHA2_CTX’ / conflicting types for ‘SHA256_CTX’

MacPorts noreply at macports.org
Wed Feb 13 15:02:12 UTC 2019


#58060: Build error on Ubuntu: unknown type name ‘SHA2_CTX’ / conflicting types for
‘SHA256_CTX’
--------------------+--------------------
 Reporter:  mojca   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 I tried to build base on Ubuntu. I'll try to provide more information, but
 here's when it gets stuck for me when building macports base:
 {{{
 cc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -std=c99 -Wextra -Wall
 -pedantic     -DHAVE_CONFIG_H -I/path-to/macports-base/src -I/path-to
 /macports-base/src -I. -I/path-to/macports-base/vendor/vendor-
 destroot/opt/local/libexec/macports/include -I./../compat -fPIC
 sha256cmd.c -o sha256cmd.o
 In file included from sha256cmd.c:66:0:
 /usr/include/sha256.h:34:9: error: unknown type name ‘SHA2_CTX’
  typedef SHA2_CTX SHA256_CTX;
          ^~~~~~~~
 /usr/include/sha256.h:34:18: error: conflicting types for ‘SHA256_CTX’
  typedef SHA2_CTX SHA256_CTX;
                   ^~~~~~~~~~
 In file included from /usr/include/sha256.h:32:0,
                  from sha256cmd.c:66:
 ./sha2.h:52:3: note: previous declaration of ‘SHA256_CTX’ was here
  } SHA256_CTX;
    ^~~~~~~~~~
 ../../Mk/macports.tea.mk:2: recipe for target 'sha256cmd.o' failed
 make[2]: *** [sha256cmd.o] Error 1
 make[2]: Leaving directory '/home/mo
 }}}
 I suspect that one of the dependencies might be missing. I'll attach more
 logs later.

-- 
Ticket URL: <https://trac.macports.org/ticket/58060>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list