1

我正在尝试在 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() 指定包含在内,我<sys/socket.h>在“network.c”中添加了标题,但我仍然面临同样的问题。

4

0 回答 0