openssl icon indicating copy to clipboard operation
openssl copied to clipboard

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

Open dmitriklein opened this issue 3 years ago • 0 comments

/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 */

dmitriklein avatar Jan 20 '22 23:01 dmitriklein