5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o

Posted at

daemontoolsを以下のページに従ってインストールしようとしたらエラーが。
http://cr.yp.to/daemontools/install.html

# package/install
・
・
・
/usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
/lib64/libc.so.6: could not read symbols: Bad value
collect2: ld はステータス 1 で終了しました
make: *** [envdir] エラー 1

64bitOSだとうまくいかないみたいです。
compile/conf-ccを編集して解決。
編集前

gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings

編集後

gcc -O2 --include /usr/include/errno.h

上記のように書き換え、再度package/installを実行すると成功しました。

5
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?