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

Make ruby-2.7.5 on Solaris 10 openssl: Could not be configured. It will not be installed. #494

Closed
ghost opened this issue Jan 20, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 20, 2022

/usr/sfw/bin/gmake
.......
openssl:
Could not be configured. It will not be installed.
/export0/home/telegraf/fluentd/ruby_versions/ruby275/ruby-2.7.5/ext/openssl/extconf.rb:111: OpenSSL >= 1.0.1, < 3.0.0 or LibreSSL >= 2.5.0 is required
Check ext/openssl/mkmf.log for more details.

Meanwhile..

which openssl
/opt/csw/bin/amd64/openssl

/opt/csw/bin/amd64/openssl version¶
OpenSSL 1.0.2u 20 Dec 2019

Adding --with-openssl-dir

CC=/usr/sfw/bin/gcc CFLAGS="-std=gnu99" ./configure --with-openssl-dir=/opt/csw/bin/amd64

didn't help:

checking for OpenSSL version >= 1.0.1 and < 3.0.0... -------------------- no

"/usr/sfw/bin/gcc -I../../.ext/include/i386-solaris2.10 -I../.././include -I../.././ext/openssl -I/usr/sfw/include -I/opt/csw
/bin/amd64/include -std=gnu99 -D_XOPEN_SOURCE=600 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -std=gnu99 -c conftest.c"
conftest.c:6: error: size of array `conftest_const' is negative
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: #include
4:
5: /top/
6: int conftest_const[(OPENSSL_VERSION_NUMBER >= 0x10001000L) ? 1 : -1];
/
end */

@rhenium
Copy link
Member

rhenium commented Sep 20, 2022

I hope you already solved this.

CC=/usr/sfw/bin/gcc CFLAGS="-std=gnu99" ./configure --with-openssl-dir=/opt/csw/bin/amd64

I don't know about this platform, but --with-<something>-dir expects the prefix path where the library is installed.

@rhenium rhenium closed this as completed Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant