Opened 5 years ago

#59641 assigned defect

mariadb @5.5.66: error: unknown type name 'SHA1_CONTEXT'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: mariadb

Description

mariadb doesn't build:

/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:95:28: error: unknown type name 'SHA1_CONTEXT'; did you mean 'SHA1_CTX'?
static void SHA1PadMessage(SHA1_CONTEXT*);
                           ^~~~~~~~~~~~
                           SHA1_CTX
/opt/local/include/sha1.h:24:3: note: 'SHA1_CTX' declared here
} SHA1_CTX;
  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:96:37: error: unknown type name 'SHA1_CONTEXT'; did you mean 'SHA1_CTX'?
static void SHA1ProcessMessageBlock(SHA1_CONTEXT*);
                                    ^~~~~~~~~~~~
                                    SHA1_CTX
/opt/local/include/sha1.h:24:3: note: 'SHA1_CTX' declared here
} SHA1_CTX;
  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:126:22: error: unknown type name 'SHA1_CONTEXT'; did you mean 'SHA1_CTX'?
int mysql_sha1_reset(SHA1_CONTEXT *context)
                     ^~~~~~~~~~~~
                     SHA1_CTX
/opt/local/include/sha1.h:24:3: note: 'SHA1_CTX' declared here
} SHA1_CTX;
  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:133:12: error: no member named 'Length' in 'SHA1_CTX'
  context->Length                 = 0;
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:134:12: error: no member named 'Message_Block_Index' in 'SHA1_CTX'
  context->Message_Block_Index    = 0;
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:136:12: error: no member named 'Intermediate_Hash' in 'SHA1_CTX'
  context->Intermediate_Hash[0]   = sha_const_key[0];
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:137:12: error: no member named 'Intermediate_Hash' in 'SHA1_CTX'
  context->Intermediate_Hash[1]   = sha_const_key[1];
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:138:12: error: no member named 'Intermediate_Hash' in 'SHA1_CTX'
  context->Intermediate_Hash[2]   = sha_const_key[2];
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:139:12: error: no member named 'Intermediate_Hash' in 'SHA1_CTX'
  context->Intermediate_Hash[3]   = sha_const_key[3];
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:140:12: error: no member named 'Intermediate_Hash' in 'SHA1_CTX'
  context->Intermediate_Hash[4]   = sha_const_key[4];
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:142:12: error: no member named 'Computed' in 'SHA1_CTX'
  context->Computed   = 0;
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:143:12: error: no member named 'Corrupted' in 'SHA1_CTX'
  context->Corrupted  = 0;
  ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:145:10: error: use of undeclared identifier 'SHA_SUCCESS'
  return SHA_SUCCESS;
         ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:166:23: error: unknown type name 'SHA1_CONTEXT'; did you mean 'SHA1_CTX'?
int mysql_sha1_result(SHA1_CONTEXT *context,
                      ^~~~~~~~~~~~
                      SHA1_CTX
/opt/local/include/sha1.h:24:3: note: 'SHA1_CTX' declared here
} SHA1_CTX;
  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/stacktrace.c:141:21: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
  heap_end= (char*) sbrk(0);
                    ^
/usr/include/unistd.h:585:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/usr/include/sys/cdefs.h:176:37: /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:167:44: error: use of undeclared identifier 'SHA1_HASH_SIZE'
note                      uint8 Message_Digest[SHA1_HASH_SIZE])
                                           ^
: expanded from macro '__deprecated'
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:179:17: error: no member named 'Computed' in 'SHA1_CTX'
  if (!context->Computed)
       ~~~~~~~  ^
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:183:28: error#define __deprecated    __attribute__((deprecated))
                                       ^
: no member named 'Message_Block' in 'SHA1_CTX'
    bzero((char*) context->Message_Block,64);
                  ~~~~~~~  ^
/usr/include/secure/_strings.h:53:27: note: expanded from macro 'bzero'
                __builtin___memset_chk (dest, 0, __VA_ARGS__, __darwin_obsz0 (dest))
                                        ^~~~
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:183:28: error: no member named 'Message_Block' in 'SHA1_CTX'
    bzero((char*) context->Message_Block,64);
                  ~~~~~~~  ^
/usr/include/secure/_strings.h:53:65: note: expanded from macro 'bzero'
                __builtin___memset_chk (dest, 0, __VA_ARGS__, __darwin_obsz0 (dest))
                                                                              ^~~~
/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0'
#define __darwin_obsz0(object) __builtin_object_size (object, 0)
                                                      ^~~~~~
/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_databases_mariadb/mariadb/work/mariadb-5.5.66/mysys/sha1.c:184:14: error: no member named 'Length' in 'SHA1_CTX'
    context->Length   = 0;    /* and clear length  */
    ~~~~~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Attachments (1)

main.log.bz2 (13.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 5 years ago.

Download all attachments as: .zip

Change History (1)

Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added
Note: See TracTickets for help on using tickets.