sstephenson/rbenv — Issue #132: Build failed when installing REE as it complains about OpenSSL 
Author: damian
Created: 2011-10-28 13:18:14+00:00
State: open

I'm running Ubuntu 11.10 and can't install ree-1.8.7-2011.03, though installing 1.8.7-p352 worked fine. OpenSSL is installed. See below a snippet of the log from the build failure. I can't figure out as to why this is happening?

ossl_x509name.c: In function ‘ossl_x509name_initialize’:
ossl_x509name.c:143:35: warning: passing argument 2 of ‘d2i_X509_NAME’ from incompatible pointer type [enabled by default]
/usr/include/openssl/x509.h:828:1: note: expected ‘const unsigned char **’ but argument is of type ‘unsigned char **’
/usr/bin/gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -fPIC -g -O2 -c ossl_x509crl.c
/usr/bin/gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -fPIC -g -O2 -c ossl.c
/usr/bin/gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -fPIC -g -O2 -c ossl_pkcs12.c
/usr/bin/gcc -I/opt/local/include -I. -I/opt/local/include -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -I'/home/damian/.rbenv/versions/ree-1.8.7-2011.03/include' -fPIC -g -O2 -c ossl_ssl.c
ossl_ssl.c:101:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:101:5: warning: (near initialization for ‘ossl_ssl_method_tab[0].func’) [enabled by default]
ossl_ssl.c:102:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:102:5: warning: (near initialization for ‘ossl_ssl_method_tab[1].func’) [enabled by default]
ossl_ssl.c:103:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:103:5: warning: (near initialization for ‘ossl_ssl_method_tab[2].func’) [enabled by default]
ossl_ssl.c:104:1: error: ‘SSLv2_method’ undeclared here (not in a function)
ossl_ssl.c:105:1: error: ‘SSLv2_server_method’ undeclared here (not in a function)
ossl_ssl.c:106:1: error: ‘SSLv2_client_method’ undeclared here (not in a function)
ossl_ssl.c:107:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:107:5: warning: (near initialization for ‘ossl_ssl_method_tab[6].func’) [enabled by default]
ossl_ssl.c:108:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:108:5: warning: (near initialization for ‘ossl_ssl_method_tab[7].func’) [enabled by default]
ossl_ssl.c:109:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:109:5: warning: (near initialization for ‘ossl_ssl_method_tab[8].func’) [enabled by default]
ossl_ssl.c:110:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:110:5: warning: (near initialization for ‘ossl_ssl_method_tab[9].func’) [enabled by default]
ossl_ssl.c:111:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:111:5: warning: (near initialization for ‘ossl_ssl_method_tab[10].func’) [enabled by default]
ossl_ssl.c:112:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:112:5: warning: (near initialization for ‘ossl_ssl_method_tab[11].func’) [enabled by default]
ossl_ssl.c: In function ‘ossl_ssl_get_cipher’:
ossl_ssl.c:1224:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
make[1]: *** [ossl_ssl.o] Error 1
make[1]: Leaving directory `/tmp/ruby-build.20111028140052.26318/ruby-enterprise-1.8.7-2011.03/source/ext/openssl'
make: *** [all] Error 1