Opened 11 months ago
Closed 11 months ago
#68947 closed defect (fixed)
c-ares @1.24.0 broken on <10.9: undeclared IFF_UP, IFF_LOOPBACK
Reported by: | barracuda156 | Owned by: | barracuda156 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | tiger, leopard, snowleopard, lion, mountainlion | Cc: | |
Port: | c-ares |
Description
https://github.com/c-ares/c-ares/issues/672
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_c-ares/c-ares/work/c-ares-1.24.0/src/lib/ares__iface_ips.c: In function 'ares__iface_ips_enumerate': /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_c-ares/c-ares/work/c-ares-1.24.0/src/lib/ares__iface_ips.c:460:28: error: 'IFF_UP' undeclared (first use in this function) 460 | if (!(ifa->ifa_flags & IFF_UP)) { | ^~~~~~ /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_c-ares/c-ares/work/c-ares-1.24.0/src/lib/ares__iface_ips.c:460:28: note: each undeclared identifier is reported only once for each function it appears in /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_c-ares/c-ares/work/c-ares-1.24.0/src/lib/ares__iface_ips.c:464:26: error: 'IFF_LOOPBACK' undeclared (first use in this function); did you mean 'IN_LOOPBACKNET'? 464 | if (ifa->ifa_flags & IFF_LOOPBACK) { | ^~~~~~~~~~~~ | IN_LOOPBACKNET make[2]: *** [src/lib/CMakeFiles/c-ares.dir/ares__iface_ips.c.o] Error 1
Change History (3)
comment:1 Changed 11 months ago by barracuda156
comment:2 Changed 11 months ago by kencu (Ken)
this fix is in legacysupport too, so we usually just use that rather than pester upstreams
comment:3 Changed 11 months ago by barracuda156
Owner: | set to barracuda156 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fix from upstream: https://github.com/bradh352/c-ares/commit/b48cb72
Confirmed to work.