Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed when installing REE as it complains about OpenSSL #132

Closed
damian opened this issue Oct 28, 2011 · 1 comment
Closed

Build failed when installing REE as it complains about OpenSSL #132

damian opened this issue Oct 28, 2011 · 1 comment

Comments

@damian
Copy link

damian commented Oct 28, 2011

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

@josh
Copy link
Contributor

josh commented Oct 28, 2011

This is a ruby-build issue.

But I think you just need to pass some extra configure flags or something.

@josh josh closed this as completed Oct 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants