在Linux系统中编译daemontools,结果出来了如下错误信息:
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [envdir] Error 1
Copying commands into ./command...
cp: cannot stat `compile/svscan': No such file or directory
解决方法很简单,在src/conf-cc的后面加上:
-include /usr/include/errno.h