While compiling bareos I got this error :


checking for socket... yes
using socket from libc
checking for library containing nanosleep... no
checking for libwrap... configure: error: *** libwrap missing

The missing library on Centos is :

tcp_wrappers-devel

Fix :

yum install tcp_wrappers-devel