I was running into trouble trying to get daemontools to compile. When I ran
[2008-11-24 Update: fixed editing oversight]
I would get
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
and the install process would halt prematurely.
weblocust wrote the answer on this page:
After you have untarred the daemontools file, go to the: admin/package/src directory and find the file: conf-cc edit this and add the following to the parameter line for gcc: -include /usr/include/errno.h
Save it and run the commands as told to in the daemontools installation instructions. It should then work.
In other words, when following the daemontools installation instructions, just before the step that says:
Compile and set up the daemontools programs:
Type the following:
$ vim src/conf-cc
Then append the following to the first line (which starts with “gcc”…):
Now you can continue on your merry way and type:
After everything compiles and installs cleanly, /etc/inittab will have been modified to start the svscan dæmon at boot time. Verify that the following line was appended to /etc/inittab:
Start the svscan dæmon by running