Opened 4 months ago

Closed 3 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)

main.log (546.7 KB) - added by barracuda156 4 months ago.

Download all attachments as: .zip

Change History (7)

Changed 4 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

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.

comment:2 in reply to:  1 Changed 4 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 4 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 Changed 4 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:

https://github.com/NetApp/freebsd/blob/01b67530d514ab49a9a5bc1b4f738b333cbca86a/usr.sbin/mld6query/mld6.c#L59-L76

comment:5 in reply to:  4 Changed 4 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:

https://github.com/NetApp/freebsd/blob/01b67530d514ab49a9a5bc1b4f738b333cbca86a/usr.sbin/mld6query/mld6.c#L59-L76

Maybe add these to legacy-support by the way?

comment:6 Changed 3 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 6f8e47b1a1f445d05f5e0d9e50ee150eb79a8800/macports-ports (master):

net-snmp: fix for older systems

Fixes: #70165

Note: See TracTickets for help on using tickets.