Skip to content

Instantly share code, notes, and snippets.

@allavena
Created January 18, 2017 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allavena/4010ccbfef638fb4f6be0e30bed239f9 to your computer and use it in GitHub Desktop.
Save allavena/4010ccbfef638fb4f6be0e30bed239f9 to your computer and use it in GitHub Desktop.
RVM OpenSSL compilation failure
linking shared-object mathn/rational.so
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/mathn/rational'
make[2]: Entering directory '/home/andre/.rvm/src/ruby-2.3.3/ext/nkf'
compiling nkf.c
In file included from nkf.c:62:0:
nkf-utf8/nkf.c: In function ‘module_connection’:
nkf-utf8/nkf.c:5710:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (nkf_enc_unicode_p(output_encoding))
^~
nkf-utf8/nkf.c:5713:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
if (x0201_f == NKF_UNSPECIFIED) {
^~
linking shared-object json/ext/parser.so
linking shared-object date_core.so
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/json/parser'
make[2]: Entering directory '/home/andre/.rvm/src/ruby-2.3.3/ext/objspace'
compiling object_tracing.c
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/date'
make[2]: Entering directory '/home/andre/.rvm/src/ruby-2.3.3/ext/openssl'
compiling ossl_ocsp.c
In file included from ossl.h:57:0,
from ossl_ocsp.c:11:
/usr/include/openssl/asn1_mac.h:10:2: error: #error "This file is obsolete; please update your software."
#error "This file is obsolete; please update your software."
^~~~~
In file included from ossl.h:222:0,
from ossl_ocsp.c:11:
openssl_missing.h:78:35: error: macro "EVP_MD_CTX_create" passed 1 arguments, but takes just 0
EVP_MD_CTX *EVP_MD_CTX_create(void);
^
In file included from /usr/include/openssl/x509.h:23:0,
from /usr/include/openssl/x509v3.h:14,
from ossl.h:58,
from ossl_ocsp.c:11:
openssl_missing.h:82:6: error: expected declaration specifiers or ‘...’ before ‘(’ token
void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
^
openssl_missing.h:90:6: error: expected declaration specifiers or ‘...’ before ‘(’ token
void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
^
ossl_ocsp.c: In function ‘ossl_ocspbres_add_status’:
ossl_ocsp.c:716:35: error: dereferencing pointer to incomplete type ‘OCSP_SINGLERESP {aka struct ocsp_single_response_st}’
sk_X509_EXTENSION_pop_free(single->singleExtensions, X509_EXTENSION_free);
^~
ossl_ocsp.c: In function ‘ossl_ocspcid_get_serial’:
ossl_ocsp.c:974:33: error: dereferencing pointer to incomplete type ‘OCSP_CERTID {aka struct ocsp_cert_id_st}’
return asn1integer_to_num(id->serialNumber);
^~
ossl_ocsp.c:975:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:301: recipe for target 'ossl_ocsp.o' failed
make[2]: *** [ossl_ocsp.o] Error 1
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/openssl'
exts.mk:210: recipe for target 'ext/openssl/all' failed
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
installing default nkf libraries
compiling objspace_dump.c
compiling objspace.c
linking shared-object json/ext/generator.so
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/json/generator'
linking shared-object objspace.so
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/objspace'
linking shared-object nkf.so
make[2]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3/ext/nkf'
make[1]: Leaving directory '/home/andre/.rvm/src/ruby-2.3.3'
uncommon.mk:203: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
++ return 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment