[自分用メモ][DNS][ #unbound ] unbound 1.4.23 Revision 3114 をコンパイルするとエラーが発生した件。

AIX、UNIX、Linux
Unbound - About
Unbound is a validating, recursive, caching DNS resolver. It is designed to be fast and lean and incorporates modern fea...

Unboundの開発版であるSVN RepositoryのChangelogを見ていると、パフォーマンスの改善や機能実装の追加などが色々と盛り込まれているのを確認したところ、ちょっと試してみたくなったのでコンパイルしてみることにしました。

しかし、コンパイルしようとすると./configureは通るのですが、makeが通らないという問題に直面しました。

/usr/bin/ld: .libs/context.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/context.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/context.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/context.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/context.o: Relocations in generic ELF (EM: 40)
.libs/context.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libunbound.la] Error 1

.libs/context.o: could not read symbols: File in wrong formatとはなんぞやという感じなのですが、肝心な情報が見つからずに難儀していたのですが、折よく症状が似ているものについて解決策が掲載されていたので実行してみたところ、問題なくコンパイルが通るようになりました。

[Unbound-users] unbound 1.4.21 + openssl 1.0.1f make fail
./configure --with-libevent --with-pthreads --with-ssl --disable-rpath --disable-static --with-conf-file=/var/unbound/unbound.conf --with-pidfile=/var/run/unbound.pid --enable-sha2 --disable-gost --disable-ecdsa --disable-shared

最後に付けた「--disable-shared」オプションを付与することでコンパイルを通すことが出来るようになりました。

実践DNS DNSSEC時代のDNSの設定と運用 (アスキー書籍)
角川アスキー総合研究所 (2014-02-20)
売り上げランキング: 151,486
3分間DNS基礎講座
3分間DNS基礎講座
posted with amazlet at 19.09.20
網野 衛二
技術評論社
売り上げランキング: 56,250
この記事を書いた人

kometchtech

うつ病を患いながら、IT業界の末席にいるおっさんエンジニア。科学計算をしたことがないのに、HPC分野にお邪魔している。興味のある分野で学習したことをblogにまとめつつ、うつ病の経過症状のメモも置いておく日々。じつはRouterboard User Group JPの中の人でもある。 Amazon欲しいものリスト / Arm板を恵んでくれる人募集中

kometchtechをフォローする
タイトルとURLをコピーしました