我正在尝试在RHEL6上安装collectd。在运行' make'时,我面临以下问题。
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
getsockopt()指定包含在内,我在&#39; network.c&#39;中添加了<sys/socket.h>
标题,但我仍面临同样的问题。