id summary reporter owner description type status priority milestone component version resolution keywords cc port 58060 Build error on Ubuntu when libmd-dev is installed: unknown type name ‘SHA2_CTX’ / conflicting types for ‘SHA256_CTX’ mojca Mihai Moldovan "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." defect closed Low base fixed Ionic