在RHEL6中安装collectd时,'SOL_SOCKET'未声明(在此函数中首次使用)

时间:2014-12-12 06:49:27

标签: c sockets tcp network-programming collectd

我正在尝试在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>标题,但我仍面临同样的问题。

0 个答案:

没有答案