/lib/libc.so.6: could not read symbols: Bad valueが出たので、「extern int errno;」が書いてあるファイルを探す
http://comp.senseofwonder.org/2009/05/
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld はステータス 1 で終了しました
のようなエラーが表示されることがある。そんな時はソースコードのerror.hを開き、
extern int errno;
の部分を
error.hを探して中を見ても「extern int errno;」が無かったので、「extern int errno」が書いてあるファイルを検索する
grep -R "extern int errno" *
そして見つかったファイルを修正する