Installing Bernstein’s ucspi-tcp on CentOS 5

This is a companion to installing daemontools on CentOS 5. I ran into trouble when trying to get ucspi-tcp to compile. When I ran

$ make

I would get

/usr/bin/ld: errno: TLS definition in /lib/ section .tbss mismatches non-TLS reference in envdir.o 

and the install process would halt prematurely.

The problem appears to be identical to the problem with compiling daemontools on CentOS 5. Just before the step that says:

Compile the ucspi-tcp programs:


Type the following:

$ vim 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:

$ make
This entry was posted in SysAdmin and tagged , , , , , , . Bookmark the permalink.

One Response to Installing Bernstein’s ucspi-tcp on CentOS 5

  1. thanks says:


Leave a Reply