HOME >  メモ > 久しぶりにapacheをコンパイルしてみるとopensslでエラーが発生
ヒラメキ1

久しぶりにapacheをコンパイルしてみるとopensslでエラーが発生

All the time the same error message:
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o)(.text+0x17): In function
`ssl_callback_ServerNameIndication’:
/usr/home/walsimou/install/dns.walsimou.com/apache/httpd-2.2.15/modules/ssl/ssl_engine_kernel.c:1980:
undefined reference to `SSL_get_servername’
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o)(.text+0x2b7): In function
`ssl_find_vhost’:
/usr/home/walsimou/install/dns.walsimou.com/apache/httpd-2.2.15/modules/ssl/ssl_engine_kernel.c:2063:
undefined reference to `SSL_set_SSL_CTX’
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o)(.text+0x1867): In function
`ssl_hook_Fixup’:
/usr/home/walsimou/install/dns.walsimou.com/apache/httpd-2.2.15/modules/ssl/ssl_engine_kernel.c:1139:
undefined reference to `SSL_get_servername’
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o)(.text+0x30a9): In function
`ssl_hook_ReadReq’:
/usr/home/walsimou/install/dns.walsimou.com/apache/httpd-2.2.15/modules/ssl/ssl_engine_kernel.c:120:
undefined reference to `SSL_get_servername’
modules/ssl/.libs/libmod_ssl.a(ssl_engine_vars.o)(.text+0x17be): In function
`ssl_var_lookup’:
/usr/home/walsimou/install/dns.walsimou.com/apache/httpd-2.2.15/modules/ssl/ssl_engine_vars.c:325:
undefined reference to `SSL_get_servername’
gmake[1]: *** [httpd] Error 1
gmake[1]: Leaving directory
`/usr/home/walsimou/install/dns.walsimou.com/apache/httpd-2.2.15′
gmake: *** [all-recursive] Error 1

opensslは、複数の証明書を設定できるように最新のopensslをコンパイルしてインストール

どうやら、パッケージ側ですでにインストールされているのが原因だった。

openssl-devlopをアンインストールすれば無事にコンパイルが完了

たまにインストールすると見慣れないエラーに遭遇するなー