openssl: complie failed on CentOS 7
make install failed on CentOS 7 x64(kernel 4.9.86-30) with gcc 7.3.1 20180303
install libcrypto.a -> /data/src/openssl/.openssl/lib/libcrypto.a
install libssl.a -> /data/src/openssl/.openssl/lib/libssl.a
install libcrypto.so.1.1 -> /data/src/openssl/.openssl/lib/libcrypto.so.1.1
link /data/src/openssl/.openssl/lib/libcrypto.so -> /data/src/openssl/.openssl/lib/libcrypto.so.1.1
install libcrypto.so -> /data/src/openssl/.openssl/lib/libcrypto.so
install libcrypto.so.1.1 -> /data/src/openssl/.openssl/lib/libcrypto.so
ar: /data/src/openssl/.openssl/lib/libcrypto.so: File format not recognized
ar: /data/src/openssl/.openssl/lib/libcrypto.so.new: File format not recognized
make: *** [Makefile:328: install_dev] Error 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (13 by maintainers)
Links to this issue
Commits related to this issue
- util/dofile.pl: require Text::Template 1.46 or newer The reason is that we override Text::Template::append_text_to_output(), and it didn't exist before Text::Template 1.46. Fixes #6641 — committed to levitte/openssl by levitte 6 years ago
- util/dofile.pl: require Text::Template 1.46 or newer The reason is that we override Text::Template::append_text_to_output(), and it didn't exist before Text::Template 1.46. Fixes #6641 Reviewed-by:... — committed to openssl/openssl by levitte 6 years ago
- util/dofile.pl: require Text::Template 1.46 or newer The reason is that we override Text::Template::append_text_to_output(), and it didn't exist before Text::Template 1.46. Fixes #6641 Reviewed-by:... — committed to openssl/openssl by levitte 6 years ago
- Correct docs for RHEL 7, because this issue identified an incompatibility with the os distributed flavor of Text::Template, resolved by breaking the build in 1.1.1; https://github.com/openssl/openssl/... — committed to vmware-tanzu/oss-httpd-build by wrowe 6 years ago
Ah, I looked through the changelog for Text::Template, and the changes indicate that
Text::Template->append_text_to_outputcame in version 1.46. That means that any version older than that will fail in exactly this way (i.e.output_offandoutput_onhave no effect).using cpan to upgrade it. other way you could compile it by yourself.
So I suppose that @kn007 has an older
Text::Template, which can be confirmed like this: