Installing Bernstein’s daemontools on CentOS 5

I was running into trouble trying to get daemontools to compile. When I ran

package/install

[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:

package/install

Type the following:

$ vim src/conf-cc

Then append the following to the first line (which starts with “gcc”…):

 -include /usr/include/errno.h

Now you can continue on your merry way and type:

package/install

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:

SV:123456:respawn:/command/svscanboot

Start the svscan dæmon by running

init q
This entry was posted in SysAdmin and tagged , , , , , , . Bookmark the permalink.

3 Responses to Installing Bernstein’s daemontools on CentOS 5

  1. Pingback: Installing Bernstein’s ucspi-tcp on CentOS 5 | James Reuben Knowles

  2. goll says:

    Thanks a ton!!

    Your solution worked well on CentOS 5.5 x86_64

    cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">