Skip to content

Instantly share code, notes, and snippets.

@ryopeko
Created May 1, 2012 22:14
Show Gist options
  • Save ryopeko/2571874 to your computer and use it in GitHub Desktop.
Save ryopeko/2571874 to your computer and use it in GitHub Desktop.
ruby-buildで193p194をインストールしたときのopenssl error. opensslはbrew install openssl, brew link opensslでインストール
compiling callback-7.c
installing default libraries
compiling generator.c
compiling callback-8.c
installing default generator libraries
linking shared-object json/ext/generator.bundle
compiling parser.c
installing default parser libraries
linking shared-object json/ext/parser.bundle
compiling complex.c
installing default complex libraries
linking shared-object mathn/complex.bundle
compiling rational.c
installing default rational libraries
linking shared-object mathn/rational.bundle
compiling nkf.c
linking shared-object dl/callback.bundle
compiling objspace.c
installing default objspace libraries
linking shared-object objspace.bundle
installing default nkf libraries
compiling openssl_missing.c
In file included from openssl_missing.c:22:
openssl_missing.h:71: error: conflicting types for ‘HMAC_CTX_copy’
/opt/local/include/openssl/hmac.h:102: error: previous declaration of ‘HMAC_CTX_copy’ was here
openssl_missing.h:95: error: conflicting types for ‘EVP_CIPHER_CTX_copy’
/opt/local/include/openssl/evp.h:459: error: previous declaration of ‘EVP_CIPHER_CTX_copy’ was here
openssl_missing.h:173: error: conflicting types for ‘BN_rand_range’
/opt/local/include/openssl/bn.h:419: error: previous declaration of ‘BN_rand_range’ was here
openssl_missing.h:177: error: conflicting types for ‘BN_pseudo_rand_range’
/opt/local/include/openssl/bn.h:420: error: previous declaration of ‘BN_pseudo_rand_range’ was here
openssl_missing.c:27: error: conflicting types for ‘HMAC_CTX_copy’
/opt/local/include/openssl/hmac.h:102: error: previous declaration of ‘HMAC_CTX_copy’ was here
openssl_missing.c:122: error: conflicting types for ‘EVP_CIPHER_CTX_copy’
/opt/local/include/openssl/evp.h:459: error: previous declaration of ‘EVP_CIPHER_CTX_copy’ was here
openssl_missing.c:270: error: conflicting types for ‘BN_rand_range’
/opt/local/include/openssl/bn.h:419: error: previous declaration of ‘BN_rand_range’ was here
openssl_missing.c:278: error: conflicting types for ‘BN_pseudo_rand_range’
/opt/local/include/openssl/bn.h:420: error: previous declaration of ‘BN_pseudo_rand_range’ was here
openssl_missing.c: In function ‘CONF_get1_default_config_file’:
openssl_missing.c:293: warning: implicit conversion shortens 64-bit value into a 32-bit value
openssl_missing.c:297: warning: implicit conversion shortens 64-bit value into a 32-bit value
openssl_missing.c: In function ‘PEM_def_callback’:
openssl_missing.c:319: warning: implicit conversion shortens 64-bit value into a 32-bit value
openssl_missing.c:333: warning: implicit conversion shortens 64-bit value into a 32-bit value
make[2]: *** [openssl_missing.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
linking shared-object nkf.bundle
make: *** [build-ext] Error 2
@ryopeko
Copy link
Author

ryopeko commented May 1, 2012

切り分けのためtarballからmakeまでやってみたが結果は同じ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment