J
Juan Matias
I got this error compiling Ruby (ruby-1.8.6-p287) on OSX (10.5.6, Darwin
Kernel Version 9.6.0):
openssl_missing.h:123: error: conflicting types for 'BN_rand_range'
/usr/local/include/openssl/bn.h:411: error: previous declaration of
'BN_rand_range' was here
openssl_missing.h:124: error: conflicting types for
'BN_pseudo_rand_range'
/usr/local/include/openssl/bn.h:412: error: previous declaration of
'BN_pseudo_rand_range' was here
make[1]: *** [openssl_missing.o] Error 1
These functions were declared in two different files. Once in
include/openssl/bn.h and again in
ruby-1.8.6-p287/ext/openssl/openssl_missing.h
I solved it commenting these two lines in include/openssl/bn.h[411,412].
Kernel Version 9.6.0):
openssl_missing.h:123: error: conflicting types for 'BN_rand_range'
/usr/local/include/openssl/bn.h:411: error: previous declaration of
'BN_rand_range' was here
openssl_missing.h:124: error: conflicting types for
'BN_pseudo_rand_range'
/usr/local/include/openssl/bn.h:412: error: previous declaration of
'BN_pseudo_rand_range' was here
make[1]: *** [openssl_missing.o] Error 1
These functions were declared in two different files. Once in
include/openssl/bn.h and again in
ruby-1.8.6-p287/ext/openssl/openssl_missing.h
I solved it commenting these two lines in include/openssl/bn.h[411,412].