[ruby-cvs:78508] 0d7d8b2989 (master): ext/openssl/extconf.rb: do not use -Werror=deprecated-declarations
"Yusuke Endoh" <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Yusuke Endoh 2019-12-05 14:41:38 +0900 (Thu, 05 Dec 2019)
New Revision: 0d7d8b2989
https://github.com/ruby/ruby/commit/0d7d8b2989
Log:
ext/openssl/extconf.rb: do not use -Werror=deprecated-declarations
It fails to build on Solaris:
```
ossl_cipher.c: 関数 ‘ossl_cipher_init’ 内:
ossl_cipher.c:228:2: エラー: ‘EVP_md5’ is deprecated [-Werror=deprecated-declarations]
228 | EVP_BytesToKey(EVP_CIPHER_CTX_cipher(ctx), EVP_md5(), iv,
| ^~~~~~~~~~~~~~
In file included from /usr/include/openssl/x509.h:73,
from /usr/include/openssl/x509v3.h:63,
from ossl.h:23,
from ossl_cipher.c:10:
/usr/include/openssl/evp.h:732:26: 備考: ここで宣言されています
732 | DEPRECATED const EVP_MD *EVP_md5(void);
| ^~~~~~~
```
I agree that `-Werror=` is a good habit, but adding it by default is too
aggressive.
Modified files:
ext/openssl/deprecation.rb
ext/openssl/extconf.rb