風は北向き ブログ

時の狭間で 今 お前を待つ

apache httpd 2.2.25 make (ubuntu 12.04) SSL コンパイルエラー対応

apacheの2.2.25をmakeしてたのですが、コンパイルエラーになってしまいました。

ssl_engine_io.c: In function ‘ssl_io_filter_connect’:
ssl_engine_io.c:1082:36: error: ‘SSL_PROTOCOL_SSLV2’ undeclared (first use in this function)
ssl_engine_io.c:1082:36: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [ssl_engine_io.slo] Error 1

ASF Bugzilla – Bug 55194 をみて修正するとうまくいくようになりました

L1082行付近 変更前

if (hostname_note &&
    sc->proxy->protocol != SSL_PROTOCOL_SSLV2 &&
    sc->proxy->protocol != SSL_PROTOCOL_SSLV3 &&

変更後

if (hostname_note &&
//      sc->proxy->protocol != SSL_PROTOCOL_SSLV2 &&
        sc->proxy->protocol != SSL_PROTOCOL_SSLV3 &&

です。