Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compile Openssl as npm run build:openssl:docker Failed #4

Open
LRYang123 opened this issue Jun 27, 2023 · 0 comments
Open

Cross-compile Openssl as npm run build:openssl:docker Failed #4

LRYang123 opened this issue Jun 27, 2023 · 0 comments

Comments

@LRYang123
Copy link

I want to export some functions from OpenSSL 3.1 library, so I try to re-build OpenSSL library by Docker as you provided. But I got some error as following:
`In file included from ssl/d1_lib.c:10:
In file included from include/internal/e_os.h:14:
In file included from include/openssl/opensslconf.h:15:
include/openssl/macros.h:147:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

^
In file included from ssl/bio_ssl.c:14:
In file included from include/openssl/crypto.h:20:
include/openssl/macros.h:147:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

^
In file included from ssl/d1_srtp.c:17:
In file included from include/openssl/objects.h:14:
include/openssl/macros.h:147:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

^
In file included from ssl/methods.c:11:
include/openssl/macros.h:147:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

^
/emsdk/upstream/emscripten/emcc -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR=""/usr/local/ssl"" -DENGINESDIR=""/usr/local/libx32/engines-3"" -DMODULESDIR=""/usr/local/libx32/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o ssl/libssl-lib-pqueue.o ssl/pqueue.c
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:15:
In file included from include/internal/e_os.h:14:
In file included from include/openssl/opensslconf.h:15:
include/openssl/macros.h:147:4: error: "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

error "OPENSSL_API_COMPAT expresses an impossible API compatibility level"

^
In file included from ssl/bio_ssl.c:14:
In file included from include/openssl/crypto.h:36:
include/openssl/types.h:99:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM);
^
int
include/openssl/types.h:100:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM_const);
^
int
include/openssl/types.h:100:10: error: a parameter list without types is only allowed in a function definition
STACK_OF(BIGNUM_const);
^
In file included from ssl/d1_lib.c:10:
In file included from include/internal/e_os.h:17:
In file included from include/openssl/crypto.h:36:
include/openssl/types.h:99:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM);
^
int
include/openssl/types.h:100:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM_const);
^
int
include/openssl/types.h:100:10: error: a parameter list without types is only allowed in a function definition
STACK_OF(BIGNUM_const);
^
In file included from In file included from ssl/d1_lib.c:10:
In file included from include/internal/e_os.h:17:
include/openssl/crypto.h:182:5: error: type name requires a specifier or qualifier
STACK_OF(void) *sk;
^
ssl/bio_ssl.c:14include/openssl/crypto.h:182:19: error: expected ';' at end of declaration list
STACK_OF(void) *sk;
^
;
include/openssl/crypto.h:185:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
int
include/openssl/crypto.h:185:34: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:40: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:46: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:47: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
;
:
include/openssl/crypto.h:182:5: error: type name requires a specifier or qualifier
STACK_OF(void) *sk;
^
include/openssl/crypto.h:182:19: error: expected ';' at end of declaration list
STACK_OF(void) *sk;
^
;
include/openssl/crypto.h:185:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
int
include/openssl/crypto.h:185:34: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:40: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:46: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:47: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
;
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:15:
In file included from include/internal/e_os.h:17:
In file included from include/openssl/crypto.h:36:
include/openssl/types.h:99:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM);
^
int
include/openssl/types.h:100:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM_const);
^
int
include/openssl/types.h:100:10: error: a parameter list without types is only allowed in a function definition
STACK_OF(BIGNUM_const);
^
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:15:
In file included from include/internal/e_os.h:17:
include/openssl/crypto.h:182:5: error: type name requires a specifier or qualifier
STACK_OF(void) *sk;
^
include/openssl/crypto.h:182:19: error: expected ';' at end of declaration list
STACK_OF(void) *sk;
^
;
In file included from ssl/bio_ssl.c:15:
In file included from include/internal/bio.h:15:
include/openssl/bio.h:304:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
int
include/openssl/bio.h:304:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/bio_ssl.c:15:
In file included from include/internal/bio.h:15:
include/openssl/bio.h:304:44: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
;
include/openssl/crypto.h:185:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
int
include/openssl/crypto.h:185:34: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:40: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:46: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:47: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
;
In file included from ssl/methods.c:12:
In file included from include/openssl/objects.h:20:
In file included from include/openssl/bio.h:30:
In file included from include/openssl/crypto.h:36:
include/openssl/types.h:99:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM);
^
int
include/openssl/types.h:100:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM_const);
^
int
include/openssl/types.h:100:10: error: a parameter list without types is only allowed in a function definition
STACK_OF(BIGNUM_const);
^
In file included from ssl/d1_srtp.c:17:
In file included from include/openssl/objects.h:20:
In file included from include/openssl/bio.h:30:
In file included from include/openssl/crypto.h:36:
include/openssl/types.h:99:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM);
^
int
include/openssl/types.h:100:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
STACK_OF(BIGNUM_const);
^
int
include/openssl/types.h:100:10: error: a parameter list without types is only allowed in a function definition
STACK_OF(BIGNUM_const);
^
In file included from ssl/bio_ssl.c:16:
In file included from include/openssl/err.h:30:
include/openssl/lhash.h:295:26: error: unknown type name 'OPENSSL_STRING'
DEFINE_LHASH_OF_INTERNAL(OPENSSL_STRING);
^
include/openssl/lhash.h:295:26: error: unknown type name 'OPENSSL_STRING'
include/openssl/lhash.h:295:26: error: unknown type name 'OPENSSL_STRING'
include/openssl/lhash.h:295:26: error: unknown type name 'OPENSSL_STRING'
include/openssl/lhash.h:295:26: error: unknown type name 'OPENSSL_STRING'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/emsdk/upstream/emscripten/emcc -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR=""/usr/local/ssl"" -DENGINESDIR=""/usr/local/libx32/engines-3"" -DMODULESDIR=""/usr/local/libx32/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o ssl/libssl-lib-s3_enc.o ssl/s3_enc.c
In file included from ssl/methods.c:12:
In file included from include/openssl/objects.h:20:
In file included from include/openssl/bio.h:30:
include/openssl/crypto.h:182:5: error: type name requires a specifier or qualifier
STACK_OF(void) *sk;
^
include/openssl/crypto.h:182:19: error: expected ';' at end of declaration list
STACK_OF(void) *sk;
^
;
include/openssl/crypto.h:185:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
int
include/openssl/crypto.h:185:34: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:40: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:46: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:47: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
;
In file included from ssl/d1_lib.c:12:
In file included from include/openssl/objects.h:20:
include/openssl/bio.h:304:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
int
include/openssl/bio.h:304:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/d1_lib.c:12:
In file included from include/openssl/objects.h:20:
include/openssl/bio.h:304:44: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
;
In file included from In file included from ssl/methods.cssl/d1_srtp.c::1712:
:
In file included from In file included from include/openssl/objects.hinclude/openssl/objects.h::2020:
:
In file included from include/openssl/bio.hinclude/openssl/bio.h:30::
304:include/openssl/crypto.h1::182 :5error: :type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
error: type name requires a specifier or qualifier
STACK_OF(void) *sk;
^
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
int
include/openssl/bio.h:304:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/methods.c:12:
In file included from include/openssl/objects.h:20:
include/openssl/bio.h:304:44: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
;
include/openssl/crypto.h:182:19: error: expected ';' at end of declaration list
STACK_OF(void) *sk;
^
;
include/openssl/crypto.h:185:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
int
include/openssl/crypto.h:185:34: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:40: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:46: error: 'void' must be the first and only parameter if specified
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
include/openssl/crypto.h:185:47: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
;
In file included from ssl/d1_srtp.c:17:
In file included from include/openssl/objects.h:20:
include/openssl/bio.h:304:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
int
include/openssl/bio.h:304:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/d1_srtp.c:17:
In file included from include/openssl/objects.h:20:
include/openssl/bio.h:304:44: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
;
/emsdk/upstream/emscripten/emcc -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR=""/usr/local/ssl"" -DENGINESDIR=""/usr/local/libx32/engines-3"" -DMODULESDIR=""/usr/local/libx32/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o ssl/libssl-lib-s3_lib.o ssl/s3_lib.c
In file included from ssl/methods.c:12:
In file included from include/openssl/objects.h:21:
include/openssl/asn1.h:132:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
int
include/openssl/asn1.h:132:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/methods.c:12:
In file included from include/openssl/objects.h:21:
include/openssl/asn1.h:132:65: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
;
include/openssl/asn1.h:234:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(ASN1_STRING_TABLE, ASN1_STRING_TABLE, ASN1_STRING_TABLE)
^
int
include/openssl/asn1.h:234:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from ssl/d1_lib.c:12:
In file included from include/openssl/objects.h:21:
include/openssl/asn1.h:132:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
int
include/openssl/asn1.h:132:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/d1_lib.c:12:
In file included from include/openssl/objects.h:21:
include/openssl/asn1.h:132:65: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
;
include/openssl/asn1.h:234:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(ASN1_STRING_TABLE, ASN1_STRING_TABLE, ASN1_STRING_TABLE)
^
int
include/openssl/asn1.h:234:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from ssl/d1_srtp.c:17:
In file included from include/openssl/objects.h:21:
include/openssl/asn1.h:132:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
int
include/openssl/asn1.h:132:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/d1_srtp.c:17:
In file included from include/openssl/objects.h:21:
include/openssl/asn1.h:132:65: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
;
include/openssl/asn1.h:234:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(ASN1_STRING_TABLE, ASN1_STRING_TABLE, ASN1_STRING_TABLE)
^
int
include/openssl/asn1.h:234:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:23:
include/openssl/bio.h:304:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
int
include/openssl/bio.h:304:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:23:
include/openssl/bio.h:304:44: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(BIO, BIO, BIO)
^
;
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:24:
In file included from include/openssl/dsa.h:26:
include/openssl/asn1.h:132:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
int
include/openssl/asn1.h:132:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
In file included from ssl/d1_msg.c:10:
In file included from ssl/ssl_local.h:24:
In file included from include/openssl/dsa.h:26:
include/openssl/asn1.h:132:65: error: expected ';' after top level declarator
SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)
^
;
include/openssl/asn1.h:234:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
SKM_DEFINE_STACK_OF_INTERNAL(ASN1_STRING_TABLE, ASN1_STRING_TABLE, ASN1_STRING_TABLE)
^
int
include/openssl/asn1.h:234:1: error: conflicting types for 'SKM_DEFINE_STACK_OF_INTERNAL'
include/openssl/crypto.h:185:1: note: previous declaration is here
SKM_DEFINE_STACK_OF_INTERNAL(void, void, void)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/emsdk/upstream/emscripten/emcc -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR=""/usr/local/ssl"" -DENGINESDIR=""/usr/local/libx32/engines-3"" -DMODULESDIR=""/usr/local/libx32/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o ssl/libssl-lib-s3_msg.o ssl/s3_msg.c
/emsdk/upstream/emscripten/emcc -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR=""/usr/local/ssl"" -DENGINESDIR=""/usr/local/libx32/engines-3"" -DMODULESDIR=""/usr/local/libx32/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o ssl/libssl-lib-ssl_asn1.o ssl/ssl_asn1.c
20 errors generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/libx32/engines-3" -DMODULESDIR="/usr/local/libx32/ossl-modules" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c ssl/bio_ssl.c -o ssl/libssl-lib-bio_ssl.o' failed (returned 1)
20 errors generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/libx32/engines-3" -DMODULESDIR="/usr/local/libx32/ossl-modules" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c ssl/d1_srtp.c -o ssl/libssl-lib-d1_srtp.o' failed (returned 1)
make: *** [Makefile:4887: ssl/libssl-lib-bio_ssl.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:4893: ssl/libssl-lib-d1_srtp.o] Error 1
20 errors generated.
20 errors generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/libx32/engines-3" -DMODULESDIR="/usr/local/libx32/ossl-modules" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c ssl/methods.c -o ssl/libssl-lib-methods.o' failed (returned 1)
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/libx32/engines-3" -DMODULESDIR="/usr/local/libx32/ossl-modules" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c ssl/d1_msg.c -o ssl/libssl-lib-d1_msg.o' failed (returned 1)
make: *** [Makefile:4895: ssl/libssl-lib-methods.o] Error 1
make: *** [Makefile:4891: ssl/libssl-lib-d1_msg.o] Error 1
20 errors generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/libx32/engines-3" -DMODULESDIR="/usr/local/libx32/ossl-modules" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c ssl/d1_lib.c -o ssl/libssl-lib-d1_lib.o' failed (returned 1)
make: *** [Makefile:4889: ssl/libssl-lib-d1_lib.o] Error 1
In file included from ssl/pqueue.c:10:
In file included from ssl/ssl_local.h:26:
In file included from include/openssl/ssl.h:36:
include/openssl/pem.h:405:44: error: unknown type name 'X509_INFO'
int PEM_X509_INFO_write_bio(BIO *bp, const X509_INFO *xi, EVP_CIPHER *enc,
^
include/openssl/pem.h:441:26: error: unknown type name 'X509_REQ'
DECLARE_PEM_rw(X509_REQ, X509_REQ)
^
include/openssl/pem.h:441:26: error: unknown type name 'X509_REQ'
include/openssl/pem.h:441:26: error: unknown type name 'X509_REQ'
include/openssl/pem.h:441:26: error: unknown type name 'X509_REQ'
include/openssl/pem.h:441:26: error: unknown type name 'X509_REQ'
include/openssl/pem.h:441:26: error: unknown type name 'X509_REQ'
include/openssl/pem.h:442:33: error: unknown type name 'X509_REQ'
DECLARE_PEM_write(X509_REQ_NEW, X509_REQ)
^
include/openssl/pem.h:442:33: error: unknown type name 'X509_REQ'
include/openssl/pem.h:445:23: error: unknown type name 'PKCS7'
DECLARE_PEM_rw(PKCS7, PKCS7)
^
include/openssl/pem.h:445:23: error: unknown type name 'PKCS7'
include/openssl/pem.h:445:23: error: unknown type name 'PKCS7'
include/openssl/pem.h:445:23: error: unknown type name 'PKCS7'
include/openssl/pem.h:445:23: error: unknown type name 'PKCS7'
include/openssl/pem.h:445:23: error: unknown type name 'PKCS7'
include/openssl/pem.h:446:40: error: unknown type name 'NETSCAPE_CERT_SEQUENCE'
DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE)
^
include/openssl/pem.h:446:40: error: unknown type name 'NETSCAPE_CERT_SEQUENCE'
include/openssl/pem.h:446:40: error: unknown type name 'NETSCAPE_CERT_SEQUENCE'
include/openssl/pem.h:446:40: error: unknown type name 'NETSCAPE_CERT_SEQUENCE'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
emcc: error: '/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -Werror=implicit-function-declaration --sysroot=/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I. -Iinclude -mx32 -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSLDIR="/usr/local/ssl" -DENGINESDIR="/usr/local/libx32/engines-3" -DMODULESDIR="/usr/local/libx32/ossl-modules" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c ssl/pqueue.c -o ssl/libssl-lib-pqueue.o' failed (returned 1)
make: *** [Makefile:4897: ssl/libssl-lib-pqueue.o] Error 1
emmake: error: 'make -j 16 build_generated libssl.a libcrypto.a apps/openssl' failed (returned 2)
mv: cannot stat 'apps/openssl': No such file or directory
cp: cannot stat 'apps/openssl.js': No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:openssl:docker: docker run --rm -v $(pwd):$(pwd) -w $(pwd)/emscr/builds/openssl -u $(id -u):$(id -g) --platform linux/amd64 emscripten/emsdk /bin/bash ./build.sh ${ARG}
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:openssl:docker script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lyang3/.npm/_logs/2023-06-27T03_04_10_033Z-debug.log`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant