環境
CentOS6.2 64bit
openssl-1.0.0j
bind-9.6-ESV-R6
opensslインストール
適当に展開して
# ./config
# make
# make install
続いてbind-9.6インストール
途中省略
# make
・
・
途中省略
・
・
lib/isc/.libs ../../lib/isc/.libs/libisc.so -L/usr/local/ssl/lib -lcrypto -ldl -lxml2 -lz -lm -Wl,-soname -Wl,libdns.so.110 -o .libs/libdns.so.110.0.1
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `OPENSSL_ia32cap_P’ can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libdns.la] エラー 1
make[2]: ディレクトリ `/usr/local/src/bind-9.6-ESV-R6/lib/dns’ から出ます
make[1]: *** [subdirs] エラー 1
make[1]: ディレクトリ `/usr/local/src/bind-9.6-ESV-R6/lib’ から出ます
make: *** [subdirs] エラー 1
こんなエラーが出てしまった。
opensslを以下の様に再インストールし、もう一度bindのインストールを行った所、無事インストール出来たので参考までに記録に残します。
# ./config -fPIC shared
# make
# make install