'SOL_SOCKET' undeclared (first use in this function) while installing collectd in RHEL6

1.4k views Asked by At

I am trying to install collectd on RHEL6. While running 'make', i am facing the below issue.

error:
network.c: In function 'network_bind_socket':
network.c:1854: error: 'SOL_SOCKET' undeclared (first use in this function)
network.c:1854: error: (Each undeclared identifier is reported only once
network.c:1854: error: for each function it appears in.)
network.c:1854: error: 'SO_REUSEADDR' undeclared (first use in this function)
make[3]: *** [network_la-network.lo] Error 1

The getsockopt() specifies be included and i have added <sys/socket.h> header in the 'network.c', still I am facing the same issue.

0

There are 0 answers