ladeiko / node-apple-receipt-verify

A Node.js module for In-App-Purchase receipt validation for iOS.
MIT License
92 stars 25 forks source link

Issue when building on Cloud Run #11

Closed clacdesdoigts closed 4 years ago

clacdesdoigts commented 5 years ago

Hi there, Using the latest version (v1.7.1) of your plugin, we've got issues on preinstall phase when building on Google Cloud environment.

This is the error:

> node-apple-receipt-verify@1.7.1 preinstall /usr/src/app/node_modules/node-apple-receipt-verify
> mkdir -p bin && cd src && make clean && make || true

rm -f checkreceipt
rm -f ReceiptAttribute.o Payload.o INTEGER.o NativeEnumerated.o NativeInteger.o asn_SET_OF.o constr_SEQUENCE.o constr_SET_OF.o OCTET_STRING.o BIT_STRING.o asn_codecs_prim.o ber_tlv_length.o ber_tlv_tag.o ber_decoder.o der_encoder.o constr_TYPE.o constraints.o xer_support.o xer_decoder.o xer_encoder.o per_support.o per_decoder.o per_encoder.o per_opentype.o main.o
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o ReceiptAttribute.o -c ReceiptAttribute.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o Payload.o -c Payload.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o INTEGER.o -c INTEGER.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o NativeEnumerated.o -c NativeEnumerated.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o NativeInteger.o -c NativeInteger.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o asn_SET_OF.o -c asn_SET_OF.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o constr_SEQUENCE.o -c constr_SEQUENCE.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o constr_SET_OF.o -c constr_SET_OF.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o OCTET_STRING.o -c OCTET_STRING.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o BIT_STRING.o -c BIT_STRING.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o asn_codecs_prim.o -c asn_codecs_prim.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o ber_tlv_length.o -c ber_tlv_length.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o ber_tlv_tag.o -c ber_tlv_tag.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o ber_decoder.o -c ber_decoder.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o der_encoder.o -c der_encoder.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o constr_TYPE.o -c constr_TYPE.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o constraints.o -c constraints.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o xer_support.o -c xer_support.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o xer_decoder.o -c xer_decoder.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o xer_encoder.o -c xer_encoder.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o per_support.o -c per_support.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o per_decoder.o -c per_decoder.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o per_encoder.o -c per_encoder.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o per_opentype.o -c per_opentype.c
cc -I. -I/usr/local/openssl/include -I/opt/local/include -I/usr/local/include  -o main.o -c main.c
main.c: In function 'validate':
main.c:153:16: error: storage size of 'evp_ctx' isn't known
     EVP_MD_CTX evp_ctx;
                ^~~~~~~
Makefile:106: recipe for target 'main.o' failed
make: *** [main.o] Error 1
jlinx commented 4 years ago

I have the same issue on macOS 10.14.16 with version 1.7.2 and the latest stable version of node (v13.8). Did you find a solution?

ladeiko commented 4 years ago

I have the same issue on macOS 10.14.16 with version 1.7.2 and the latest stable version of node (v13.8). Did you find a solution?

Where openssl is installed?

ladeiko commented 4 years ago

See v1.8.0