Opened 5 months ago
Closed 5 months ago
#70165 closed defect (fixed)
net-snmp fails to build: error: ‘MLD_LISTENER_QUERY’ undeclared (first use in this function)
Reported by: | barracuda156 | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | Cc: | ||
Port: | net-snmp |
Description
libtool: compile: /usr/bin/gcc-4.2 -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/opt/local/include -I/opt/local/include -pipe -Os -arch ppc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -pipe -Os -arch ppc -Udarwin10 -Ddarwin10=darwin10 -c mibgroup/mibII/data_access/at_unix.c -fno-common -DPIC -o mibgroup/mibII/data_access/.libs/at_unix.o libtool: compile: /usr/bin/gcc-4.2 -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/opt/local/include -I/opt/local/include -pipe -Os -arch ppc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -pipe -Os -arch ppc -Udarwin10 -Ddarwin10=darwin10 -c mibgroup/mibII/data_access/at_sysctl.c -o mibgroup/mibII/data_access/at_sysctl.o >/dev/null 2>&1 mibgroup/mibII/kernel_sysctl.c: In function ‘sysctl_read_icmp6_stat’: mibgroup/mibII/kernel_sysctl.c:108: error: ‘MLD_LISTENER_QUERY’ undeclared (first use in this function) mibgroup/mibII/kernel_sysctl.c:108: error: (Each undeclared identifier is reported only once mibgroup/mibII/kernel_sysctl.c:108: error: for each function it appears in.) mibgroup/mibII/kernel_sysctl.c:109: error: ‘MLD_LISTENER_REPORT’ undeclared (first use in this function) mibgroup/mibII/kernel_sysctl.c:131: error: ‘MLD_LISTENER_DONE’ undeclared (first use in this function) make[1]: *** [mibgroup/mibII/kernel_sysctl.lo] Error 1 make[1]: *** Waiting for unfinished jobs....
Attachments (1)
Change History (7)
Changed 5 months ago by barracuda156
comment:1 follow-up: 2 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 5 months ago by barracuda156
Replying to ryandesign:
Looks like
MLD_LISTENER_QUERY
ought to be defined in the system's icmp6.h header. Maybe not on older systems. Or maybe they forgot to include that header.
On my system /usr/include/netinet/icmp6.h
has:
#define MLD6_LISTENER_QUERY 130 /* multicast listener query */ #define MLD6_LISTENER_REPORT 131 /* multicast listener report */ #define MLD6_LISTENER_DONE 132 /* multicast listener done */
But no MLD_* versions.
comment:3 Changed 5 months ago by barracuda156
If these were renamed in 10.6.8 release, then at least 10.4–10.5 will be in trouble just as like: hardly the issue is exclusive to specific builds of 10.6.
comment:4 follow-up: 5 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)
Apple wouldn't have made a breaking change in a stable OS. The rename probably happened prior to the 10.6.0 release, and you're running a 10.6 prerelease.
For compatibility with that and 10.5 and earlier, some subset of this is probably needed:
comment:5 Changed 5 months ago by barracuda156
Replying to ryandesign:
Apple wouldn't have made a breaking change in a stable OS. The rename probably happened prior to the 10.6.0 release, and you're running a 10.6 prerelease.
For compatibility with that and 10.5 and earlier, some subset of this is probably needed:
Maybe add these to legacy-support
by the way?
comment:6 Changed 5 months ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Looks like
MLD_LISTENER_QUERY
ought to be defined in the system's icmp6.h header. Maybe not on older systems. Or maybe they forgot to include that header.