Details
Description
When server is built on MacOS the following warnings are produced by compiler on processing the file mysys_ssl/openssl.c
In case MariaDB serer is build with -DCMAKE_BUILD_TYPE=Debug it results in build error.
In other words, debug build can't be finished successfully on MacOS.
In file included from /Users/shulga/projects/mariadb/server-10.2-MDEV-23564/mysys_ssl/openssl.c:33:
|
In file included from /usr/local/include/openssl/evp.h:16:
|
In file included from /usr/local/include/openssl/bio.h:20:
|
/usr/local/include/openssl/crypto.h:206:10: warning: 'CRYPTO_cleanup_all_ex_data' macro redefined [-Wmacro-redefined]
|
# define CRYPTO_cleanup_all_ex_data() while(0) continue
|
^
|
/Users/shulga/projects/mariadb/server-10.2-MDEV-23564/include/ssl_compat.h:46:9: note: previous definition is here
|
#define CRYPTO_cleanup_all_ex_data()
|
^
|
In file included from /Users/shulga/projects/mariadb/server-10.2-MDEV-23564/mysys_ssl/openssl.c:33:
|
/usr/local/include/openssl/evp.h:501:10: warning: 'EVP_MD_CTX_init' macro redefined [-Wmacro-redefined]
|
# define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx))
|
^
|
/Users/shulga/projects/mariadb/server-10.2-MDEV-23564/include/ssl_compat.h:33:9: note: previous definition is here
|
#define EVP_MD_CTX_init(X) do { bzero((X), EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0)
|
^
|
In file included from /Users/shulga/projects/mariadb/server-10.2-MDEV-23564/mysys_ssl/openssl.c:33:
|
/usr/local/include/openssl/evp.h:627:11: warning: 'EVP_CIPHER_CTX_init' macro redefined [-Wmacro-redefined]
|
# define EVP_CIPHER_CTX_init(c) EVP_CIPHER_CTX_reset(c)
|
^
|
/Users/shulga/projects/mariadb/server-10.2-MDEV-23564/include/ssl_compat.h:35:9: note: previous definition is here
|
#define EVP_CIPHER_CTX_init(X) do { bzero((X), EVP_CIPHER_CTX_SIZE); EVP_CIPHER_CTX_reset(X); } while(0)
|
^
|
In file included from /Users/shulga/projects/mariadb/server-10.2-MDEV-23564/mysys_ssl/openssl.c:33:
|
/usr/local/include/openssl/evp.h:866:11: warning: 'EVP_cleanup' macro redefined [-Wmacro-redefined]
|
# define EVP_cleanup() while(0) continue
|
^
|
/Users/shulga/projects/mariadb/server-10.2-MDEV-23564/include/ssl_compat.h:44:9: note: previous definition is here
|
#define EVP_cleanup()
|
^
|
4 warnings generated.
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.2.35 [ 25022 ] | |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.5.7 [ 25019 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.5.7 [ 25019 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.2.35 [ 25022 ] |
Description |
When server is built on MacOS the following warnings are produced by compiler on processing the file mysys_ssl/openssl.c
In case MariaDB serer is build with -DCMAKE_BUILD_TYPE=Debug it results in build error. In other words, debug build can't be finished successfully on MacOS. In file included from /Users/shulga/projects/mariadb/server-10.2- In file included from /usr/local/include/openssl/evp.h:16: In file included from /usr/local/include/openssl/bio.h:20: /usr/local/include/openssl/crypto.h:206:10: warning: 'CRYPTO_cleanup_all_ex_data' macro redefined [-Wmacro-redefined] # define CRYPTO_cleanup_all_ex_data() while(0) continue ^ /Users/shulga/projects/mariadb/server-10.2- #define CRYPTO_cleanup_all_ex_data() ^ In file included from /Users/shulga/projects/mariadb/server-10.2- /usr/local/include/openssl/evp.h:501:10: warning: 'EVP_MD_CTX_init' macro redefined [-Wmacro-redefined] # define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx)) ^ /Users/shulga/projects/mariadb/server-10.2- #define EVP_MD_CTX_init(X) do { bzero((X), EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0) ^ In file included from /Users/shulga/projects/mariadb/server-10.2- /usr/local/include/openssl/evp.h:627:11: warning: 'EVP_CIPHER_CTX_init' macro redefined [-Wmacro-redefined] # define EVP_CIPHER_CTX_init(c) EVP_CIPHER_CTX_reset(c) ^ /Users/shulga/projects/mariadb/server-10.2- #define EVP_CIPHER_CTX_init(X) do { bzero((X), EVP_CIPHER_CTX_SIZE); EVP_CIPHER_CTX_reset(X); } while(0) ^ In file included from /Users/shulga/projects/mariadb/server-10.2- /usr/local/include/openssl/evp.h:866:11: warning: 'EVP_cleanup' macro redefined [-Wmacro-redefined] # define EVP_cleanup() while(0) continue ^ /Users/shulga/projects/mariadb/server-10.2- #define EVP_cleanup() ^ 4 warnings generated. |
When server is built on MacOS the following warnings are produced by compiler on processing the file mysys_ssl/openssl.c
In case MariaDB serer is build with -DCMAKE_BUILD_TYPE=Debug it results in build error. In other words, debug build can't be finished successfully on MacOS. {noformat} In file included from /Users/shulga/projects/mariadb/server-10.2- In file included from /usr/local/include/openssl/evp.h:16: In file included from /usr/local/include/openssl/bio.h:20: /usr/local/include/openssl/crypto.h:206:10: warning: 'CRYPTO_cleanup_all_ex_data' macro redefined [-Wmacro-redefined] # define CRYPTO_cleanup_all_ex_data() while(0) continue ^ /Users/shulga/projects/mariadb/server-10.2- #define CRYPTO_cleanup_all_ex_data() ^ In file included from /Users/shulga/projects/mariadb/server-10.2- /usr/local/include/openssl/evp.h:501:10: warning: 'EVP_MD_CTX_init' macro redefined [-Wmacro-redefined] # define EVP_MD_CTX_init(ctx) EVP_MD_CTX_reset((ctx)) ^ /Users/shulga/projects/mariadb/server-10.2- #define EVP_MD_CTX_init(X) do { bzero((X), EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0) ^ In file included from /Users/shulga/projects/mariadb/server-10.2- /usr/local/include/openssl/evp.h:627:11: warning: 'EVP_CIPHER_CTX_init' macro redefined [-Wmacro-redefined] # define EVP_CIPHER_CTX_init(c) EVP_CIPHER_CTX_reset(c) ^ /Users/shulga/projects/mariadb/server-10.2- #define EVP_CIPHER_CTX_init(X) do { bzero((X), EVP_CIPHER_CTX_SIZE); EVP_CIPHER_CTX_reset(X); } while(0) ^ In file included from /Users/shulga/projects/mariadb/server-10.2- /usr/local/include/openssl/evp.h:866:11: warning: 'EVP_cleanup' macro redefined [-Wmacro-redefined] # define EVP_cleanup() while(0) continue ^ /Users/shulga/projects/mariadb/server-10.2- #define EVP_cleanup() ^ 4 warnings generated. {noformat} |
Assignee | Dmitry Shulga [ JIRAUSER47315 ] | Sergei Golubchik [ serg ] |
Priority | Minor [ 4 ] | Major [ 3 ] |
Assignee | Sergei Golubchik [ serg ] | Dmitry Shulga [ JIRAUSER47315 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.2.35 [ 25022 ] | |
Fix Version/s | 10.4.15 [ 24507 ] | |
Fix Version/s | 10.3.25 [ 24506 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.3.26 [ 25021 ] | |
Fix Version/s | 10.4.16 [ 25020 ] | |
Fix Version/s | 10.5.7 [ 25019 ] | |
Fix Version/s | 10.6.0 [ 24431 ] | |
Fix Version/s | 10.3.25 [ 24506 ] | |
Fix Version/s | 10.4.15 [ 24507 ] |
Workflow | MariaDB v3 [ 114419 ] | MariaDB v4 [ 158456 ] |