Compilation errors with 1.1.1b

Sravani Maddukuri sravani.maddukuri at broadcom.com
Fri Mar 1 11:34:19 UTC 2019


Hi,

Earlier our application used OpenSSL version 1.0.2n. Now we wanted to
upgrade to 1.1.1b.
After upgrade when i compile OpenSSL, i see the following errors:

Tried to generate the Makefile with both the ways mentioned below..

But getting compilation errors as attached mainly at places
where DEPRECATEDIN_1_1_0 and DEPRECATEDIN_0_9_8 are used.


./config >> ../build.log \

            no-idea no-md2 no-md4 no-mdc2 no-rc2 no-rc5 \

            -DOPENSSL_SYSNAME_LINUX -DOPENSSL_USE_IPV6
-DOPENSSL_IMPLEMENTS_strncasecmp \

    -DOPENSSL_API_COMPAT=0x1010102fL \

            -ffunction-sections -fdata-sections \

            no-hw shared no-asm


./config >> ../build.log \

            no-idea no-md2 no-md4 no-mdc2 no-rc2 no-rc5 \

            -DOPENSSL_SYSNAME_LINUX -DOPENSSL_USE_IPV6
-DOPENSSL_IMPLEMENTS_strncasecmp \

    disable-deprecated \

            -ffunction-sections -fdata-sections \

            no-hw shared no-asm

Can you please suggest the possible solution to fix the errors?

Regards,
Sravani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20190301/722cd1b5/attachment-0001.html>
-------------- next part --------------
COMPILING....[openssl]   :  vendor/openssl/crypto/cpt_err.c
In file included from ../../../../vendor/openssl/include/openssl/err.h:21:0,
                 from ../../../../vendor/openssl/crypto/cpt_err.c:11:
../../../../vendor/openssl/include/openssl/bio.h:689:27: error: 'struct hostent' declared inside parameter list [-Werror]
 DEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))
                           ^
../../../../vendor/openssl/include/openssl/bio.h:689:27: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
../../../../vendor/openssl/include/openssl/bio.h:689:1: error: return type defaults to 'int' [-Werror=implicit-int]
 DEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))
 ^
../../../../vendor/openssl/include/openssl/bio.h: In function 'DEPRECATEDIN_1_1_0':
../../../../vendor/openssl/include/openssl/bio.h:690:1: error: expected declaration specifiers before 'DEPRECATEDIN_1_1_0'
 DEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))
 ^
../../../../vendor/openssl/include/openssl/bio.h:697:2: error: expected declaration specifiers before ';' token
 };
  ^
../../../../vendor/openssl/include/openssl/bio.h:698:1: error: empty declaration [-Werror]
 enum BIO_sock_info_type {
 ^
../../../../vendor/openssl/include/openssl/bio.h:702:55: error: 'union BIO_sock_info_u' declared inside parameter list [-Werror]
                   enum BIO_sock_info_type type, union BIO_sock_info_u *info);
                                                       ^
In file included from ../../../../vendor/openssl/include/openssl/err.h:22:0,
                 from ../../../../vendor/openssl/crypto/cpt_err.c:11:
../../../../vendor/openssl/include/openssl/lhash.h:24:30: error: storage class specified for parameter 'OPENSSL_LH_NODE'
 typedef struct lhash_node_st OPENSSL_LH_NODE;
                              ^
../../../../vendor/openssl/include/openssl/lhash.h:25:15: error: storage class specified for parameter 'OPENSSL_LH_COMPFUNC'
 typedef int (*OPENSSL_LH_COMPFUNC) (const void *, const void *);
               ^
../../../../vendor/openssl/include/openssl/lhash.h:26:25: error: storage class specified for parameter 'OPENSSL_LH_HASHFUNC'
 typedef unsigned long (*OPENSSL_LH_HASHFUNC) (const void *);
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:27:16: error: storage class specified for parameter 'OPENSSL_LH_DOALL_FUNC'
 typedef void (*OPENSSL_LH_DOALL_FUNC) (void *);
                ^
../../../../vendor/openssl/include/openssl/lhash.h:28:16: error: storage class specified for parameter 'OPENSSL_LH_DOALL_FUNCARG'
 typedef void (*OPENSSL_LH_DOALL_FUNCARG) (void *, void *);
                ^
../../../../vendor/openssl/include/openssl/lhash.h:29:25: error: storage class specified for parameter 'OPENSSL_LHASH'
 typedef struct lhash_st OPENSSL_LHASH;
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:72:22: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 int OPENSSL_LH_error(OPENSSL_LHASH *lh);
                      ^
../../../../vendor/openssl/include/openssl/lhash.h:73:1: error: expected declaration specifiers before 'OPENSSL_LHASH'
 OPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:74:22: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void OPENSSL_LH_free(OPENSSL_LHASH *lh);
                      ^
../../../../vendor/openssl/include/openssl/lhash.h:75:25: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data);
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:76:25: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data);
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:77:27: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void *OPENSSL_LH_retrieve(OPENSSL_LHASH *lh, const void *data);
                           ^
../../../../vendor/openssl/include/openssl/lhash.h:78:23: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void OPENSSL_LH_doall(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNC func);
                       ^
../../../../vendor/openssl/include/openssl/lhash.h:78:42: error: expected declaration specifiers or '...' before 'OPENSSL_LH_DOALL_FUNC'
 void OPENSSL_LH_doall(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNC func);
                                          ^
../../../../vendor/openssl/include/openssl/lhash.h:79:27: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg);
                           ^
../../../../vendor/openssl/include/openssl/lhash.h:79:46: error: expected declaration specifiers or '...' before 'OPENSSL_LH_DOALL_FUNCARG'
 void OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg);
                                              ^
../../../../vendor/openssl/include/openssl/lhash.h:81:42: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 unsigned long OPENSSL_LH_num_items(const OPENSSL_LHASH *lh);
                                          ^
../../../../vendor/openssl/include/openssl/lhash.h:81:56: error: expected ';', ',' or ')' before '*' token
 unsigned long OPENSSL_LH_num_items(const OPENSSL_LHASH *lh);
                                                        ^
../../../../vendor/openssl/include/openssl/lhash.h:82:46: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 unsigned long OPENSSL_LH_get_down_load(const OPENSSL_LHASH *lh);
                                              ^
../../../../vendor/openssl/include/openssl/lhash.h:82:60: error: expected ';', ',' or ')' before '*' token
 unsigned long OPENSSL_LH_get_down_load(const OPENSSL_LHASH *lh);
                                                            ^
../../../../vendor/openssl/include/openssl/lhash.h:83:31: error: expected declaration specifiers or '...' before 'OPENSSL_LHASH'
 void OPENSSL_LH_set_down_load(OPENSSL_LHASH *lh, unsigned long down_load);
                               ^
../../../../vendor/openssl/include/openssl/lhash.h:86:29: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 void OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp);
                             ^
../../../../vendor/openssl/include/openssl/lhash.h:86:43: error: expected ';', ',' or ')' before '*' token
 void OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp);
                                           ^
../../../../vendor/openssl/include/openssl/lhash.h:87:34: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 void OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp);
                                  ^
../../../../vendor/openssl/include/openssl/lhash.h:87:48: error: expected ';', ',' or ')' before '*' token
 void OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp);
                                                ^
../../../../vendor/openssl/include/openssl/lhash.h:88:40: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 void OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp);
                                        ^
../../../../vendor/openssl/include/openssl/lhash.h:88:54: error: expected ';', ',' or ')' before '*' token
 void OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp);
                                                      ^
../../../../vendor/openssl/include/openssl/lhash.h:90:33: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 void OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
                                 ^
../../../../vendor/openssl/include/openssl/lhash.h:90:47: error: expected ';', ',' or ')' before '*' token
 void OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
                                               ^
../../../../vendor/openssl/include/openssl/lhash.h:91:38: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 void OPENSSL_LH_node_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
                                      ^
../../../../vendor/openssl/include/openssl/lhash.h:91:52: error: expected ';', ',' or ')' before '*' token
 void OPENSSL_LH_node_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
                                                    ^
../../../../vendor/openssl/include/openssl/lhash.h:92:44: error: type defaults to 'int' in declaration of 'OPENSSL_LHASH' [-Werror=implicit-int]
 void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
                                            ^
../../../../vendor/openssl/include/openssl/lhash.h:92:58: error: expected ';', ',' or ')' before '*' token
 void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);
                                                          ^
../../../../vendor/openssl/include/openssl/lhash.h:119:25: error: empty declaration [-Werror]
 # define LHASH_OF(type) struct lhash_st_##type
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:122:5: note: in expansion of macro 'LHASH_OF'
     LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:126:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:131:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:135:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:139:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:143:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:147:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:151:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:155:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:159:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:163:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:167:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:171:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:176:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:119:25: error: empty declaration [-Werror]
 # define LHASH_OF(type) struct lhash_st_##type
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:179:5: note: in expansion of macro 'LHASH_OF'
     LHASH_OF(type)
     ^
../../../../vendor/openssl/include/openssl/lhash.h:197:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_STRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:119:25: error: empty declaration [-Werror]
 # define LHASH_OF(type) struct lhash_st_##type
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:122:5: note: in expansion of macro 'LHASH_OF'
     LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:126:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:131:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:135:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:139:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:143:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:147:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:151:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:155:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:159:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:163:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:167:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:171:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:176:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:119:25: error: empty declaration [-Werror]
 # define LHASH_OF(type) struct lhash_st_##type
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:179:5: note: in expansion of macro 'LHASH_OF'
     LHASH_OF(type)
     ^
../../../../vendor/openssl/include/openssl/lhash.h:207:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(OPENSSL_CSTRING);
 ^
In file included from ../../../../vendor/openssl/include/openssl/err.h:34:0,
                 from ../../../../vendor/openssl/crypto/cpt_err.c:11:
/projects/nwsoft-toolchains/xldk/iproc-a9-84783422/arm-buildroot-linux-gnueabi/sysroot/usr/include/errno.h:37:13: error: storage class specified for parameter '__errno_location'
 extern int *__errno_location (void) __THROW __attribute_const__;
             ^
/projects/nwsoft-toolchains/xldk/iproc-a9-84783422/arm-buildroot-linux-gnueabi/sysroot/usr/include/errno.h:45:14: error: storage class specified for parameter 'program_invocation_name'
 extern char *program_invocation_name;
              ^
/projects/nwsoft-toolchains/xldk/iproc-a9-84783422/arm-buildroot-linux-gnueabi/sysroot/usr/include/errno.h:46:14: error: storage class specified for parameter 'program_invocation_short_name'
 extern char *program_invocation_short_name;
              ^
/projects/nwsoft-toolchains/xldk/iproc-a9-84783422/arm-buildroot-linux-gnueabi/sysroot/usr/include/errno.h:52:13: error: storage class specified for parameter 'error_t'
 typedef int error_t;
             ^
In file included from ../../../../vendor/openssl/crypto/cpt_err.c:11:0:
../../../../vendor/openssl/include/openssl/err.h:50:3: error: storage class specified for parameter 'ERR_STATE'
 } ERR_STATE;
   ^
../../../../vendor/openssl/include/openssl/err.h:215:3: error: storage class specified for parameter 'ERR_STRING_DATA'
 } ERR_STRING_DATA;
   ^
In file included from ../../../../vendor/openssl/include/openssl/err.h:22:0,
                 from ../../../../vendor/openssl/crypto/cpt_err.c:11:
../../../../vendor/openssl/include/openssl/lhash.h:119:25: error: empty declaration [-Werror]
 # define LHASH_OF(type) struct lhash_st_##type
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:122:5: note: in expansion of macro 'LHASH_OF'
     LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/err.h:217:17: error: type defaults to 'int' in declaration of 'ERR_STRING_DATA' [-Werror=implicit-int]
 DEFINE_LHASH_OF(ERR_STRING_DATA);
                 ^
../../../../vendor/openssl/include/openssl/lhash.h:124:52: note: in definition of macro 'DEFINE_LHASH_OF'
         lh_##type##_new(unsigned long (*hfn)(const type *), \
                                                    ^
../../../../vendor/openssl/include/openssl/lhash.h:124:57: error: expected ';', ',' or ')' before '*' token
         lh_##type##_new(unsigned long (*hfn)(const type *), \
                                                         ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:125:25: error: expected ';', ',' or ')' before 'int'
                         int (*cfn)(const type *, const type *)) \
                         ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:131:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:134:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
     static ossl_unused ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \
                                         ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:138:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
     static ossl_unused ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \
                                         ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:142:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
     static ossl_unused ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \
                                         ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:147:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:151:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:155:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:159:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:163:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:167:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/lhash.h:171:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { \
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
../../../../vendor/openssl/include/openssl/err.h:217:17: error: expected declaration specifiers or '...' before 'ERR_STRING_DATA'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
                 ^
../../../../vendor/openssl/include/openssl/lhash.h:175:73: note: in definition of macro 'DEFINE_LHASH_OF'
                                                           void (*doall)(type *)) \
                                                                         ^
../../../../vendor/openssl/include/openssl/lhash.h:119:25: error: empty declaration [-Werror]
 # define LHASH_OF(type) struct lhash_st_##type
                         ^
../../../../vendor/openssl/include/openssl/lhash.h:179:5: note: in expansion of macro 'LHASH_OF'
     LHASH_OF(type)
     ^
../../../../vendor/openssl/include/openssl/err.h:217:1: note: in expansion of macro 'DEFINE_LHASH_OF'
 DEFINE_LHASH_OF(ERR_STRING_DATA);
 ^
In file included from ../../../../vendor/openssl/crypto/cpt_err.c:11:0:
../../../../vendor/openssl/include/openssl/err.h:248:31: error: expected declaration specifiers or '...' before 'ERR_STRING_DATA'
 int ERR_load_strings(int lib, ERR_STRING_DATA *str);
                               ^
../../../../vendor/openssl/include/openssl/err.h:249:34: error: type defaults to 'int' in declaration of 'ERR_STRING_DATA' [-Werror=implicit-int]
 int ERR_load_strings_const(const ERR_STRING_DATA *str);
                                  ^
../../../../vendor/openssl/include/openssl/err.h:249:50: error: expected ';', ',' or ')' before '*' token
 int ERR_load_strings_const(const ERR_STRING_DATA *str);
                                                  ^
../../../../vendor/openssl/include/openssl/err.h:250:33: error: expected declaration specifiers or '...' before 'ERR_STRING_DATA'
 int ERR_unload_strings(int lib, ERR_STRING_DATA *str);
                                 ^
../../../../vendor/openssl/include/openssl/err.h:259:1: error: expected declaration specifiers before 'DEPRECATEDIN_1_1_0'
 DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
 ^
../../../../vendor/openssl/crypto/cpt_err.c:16:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRYPTO_str_functs'
 static const ERR_STRING_DATA CRYPTO_str_functs[] = {
                              ^
../../../../vendor/openssl/crypto/cpt_err.c:54:2: error: expected declaration specifiers before ';' token
 };
  ^
../../../../vendor/openssl/crypto/cpt_err.c:56:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CRYPTO_str_reasons'
 static const ERR_STRING_DATA CRYPTO_str_reasons[] = {
                              ^
../../../../vendor/openssl/crypto/cpt_err.c:64:2: error: expected declaration specifiers before ';' token
 };
  ^
../../../../vendor/openssl/crypto/cpt_err.c:69:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
In file included from ../../../../vendor/openssl/include/openssl/err.h:21:0,
                 from ../../../../vendor/openssl/crypto/cpt_err.c:11:
../../../../vendor/openssl/include/openssl/bio.h:689:1: error: old-style parameter declarations in prototyped function definition
 DEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))
 ^
../../../../vendor/openssl/crypto/cpt_err.c:77:1: error: expected '{' at end of input
 }
 ^
../../../../vendor/openssl/crypto/cpt_err.c:77:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
make[2]: *** [vendor/_fp_vend_openssl_crypto/cpt_err.o] Error 1
make[1]: *** [openssl] Error 2
make: *** [openssl] Error 2



More information about the openssl-users mailing list