Bug 8016

Summary: collectd fails to build, network.c:171:19: error: 'IPV6_MULTICAST_HOPS' undeclared
Product: buildroot Reporter: Kevin Dankwardt <kdankwardt>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: blocker CC: buildroot
Priority: P5    
Version: 2015.02   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: The buildroot .config file

Description Kevin Dankwardt 2015-04-15 18:15:20 UTC
Created attachment 5996 [details]
The buildroot .config file

Trying to build an x86_64 toolchain on x86_64.



make[5]: Entering directory '/home/kevin/x86_64-toolchain/buildroot/output/build/collectd-5.4.2/src/libcollectdclient'
  CC       libcollectdclient_la-client.lo
  CC       libcollectdclient_la-network.lo
  CC       libcollectdclient_la-network_buffer.lo
network.c: In function 'server_open_socket':
network.c:171:19: error: 'IPV6_MULTICAST_HOPS' undeclared (first use in this function)
         optname = IPV6_MULTICAST_HOPS;
                   ^
network.c:171:19: note: each undeclared identifier is reported only once for each function it appears in
network.c:173:19: error: 'IPV6_UNICAST_HOPS' undeclared (first use in this function)
         optname = IPV6_UNICAST_HOPS;
                   ^
Makefile:570: recipe for target 'libcollectdclient_la-network.lo' failed
Comment 1 Gustavo Zacarias 2015-04-16 12:15:09 UTC
You can't change toolchain options without doing a complete rebuild, that's the problem.