チョコミントアイス

Apacheのmake時にエラーが出ます。
OS:CentOS 5.4上でSSL対応Apcaheをソースからインストールしてるのですが、Apacheのmakeを実行すると、下記のエラーが出ます。
◎ぐぐったのですけど、解決策を見つけることはできませんでした。

ssl_util_ssl.c: In function ‘SSL_X509_isSGC’:
ssl_util_ssl.c:297: error: ‘EXTENDED_KEY_USAGE’ undeclared (first use in this function)
ssl_util_ssl.c:297: error: (Each undeclared identifier is reported only once
ssl_util_ssl.c:297: error: for each function it appears in.)
ssl_util_ssl.c:297: error: ‘sk’ undeclared (first use in this function)
ssl_util_ssl.c:306: error: expected expression before ‘)’ token
make[3]: *** [ssl_util_ssl.lo] エラー 1
make[3]: ディレクトリ `/usr/local/src/httpd-2.2.15/modules/ssl' から出ます
make[2]: *** [all-recursive] エラー 1
make[2]: ディレクトリ `/usr/local/src/httpd-2.2.15/modules/ssl' から出ます
make[1]: *** [all-recursive] エラー 1
make[1]: ディレクトリ `/usr/local/src/httpd-2.2.15/modules' から出ます
make: *** [all-recursive] エラー 1
○ここで停止

対応策をご存知の方、教えてください。
◎コンフィグは、./configure --enable-ssl --with-ssl=/usr/local/ssl で実施してます。

なお、Open_sslは、configure ->make->make installまで完了しています。

Versionは、apache:2.2-15
openssl:0.9.6c
です。

宜しくお願いします。

A 回答 (1件)

Apache のリリースに対して OpenSSL が古すぎるのだと思います。


機能面でもセキュリティ面でも不利なので、
せめて 0.9.7 以降を使いましょう。

ちなみに、最新は昨日リリースされた 0.9.8n です。

この回答への補足

ご回答、ありがとうございます。
早速、0.9.8nをダウンロードしてきて、
・./config
・make
したのですが、makeの最後で、
../libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x3cc): first defined here
/usr/bin/ld: Warning: size of symbol `bn_sqr_words' changed from 265 in ../libcrypto.a(bn_asm.o) to 225 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_div_words':
bn-586.s:(.text+0x4f0): multiple definition of `bn_div_words'
../libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x4757): first defined here
/usr/bin/ld: Warning: size of symbol `bn_div_words' changed from 333 in ../libcrypto.a(bn_asm.o) to 23 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_add_words':
bn-586.s:(.text+0x510): multiple definition of `bn_add_words'
../libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x4d5): first defined here
/usr/bin/ld: Warning: size of symbol `bn_add_words' changed from 261 in ../libcrypto.a(bn_asm.o) to 428 in ../libcrypto.a(bn86-elf.o)
../libcrypto.a(bn86-elf.o): In function `bn_sub_words':
bn-586.s:(.text+0x6c0): multiple definition of `bn_sub_words'
../libcrypto.a(bn_asm.o):bn_asm.c:(.text+0x5da): first defined here
/usr/bin/ld: Warning: size of symbol `bn_sub_words' changed from 226 in ../libcrypto.a(bn_asm.o) to 428 in ../libcrypto.a(bn86-elf.o)
collect2: ld はステータス 1 で終了しました
make[2]: *** [link_app.] エラー 1
make[2]: ディレクトリ `/usr/local/src/openssl-0.9.8n/apps' から出ます
make[1]: *** [openssl] エラー 2
make[1]: ディレクトリ `/usr/local/src/openssl-0.9.8n/apps' から出ます
make: *** [build_apps] エラー 1

で、止まってしまいました。
少し調べてみます。
もし、なにかご存知でしたら、教えてください。

補足日時:2010/03/25 19:45
    • good
    • 0
この回答へのお礼

アドバイスありがとうございました。
いろいろ調べた結果、なんとか目途がつきました。
どうもありがとうございました。

お礼日時:2010/03/27 06:41

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!