Re: [MacPorts] #70208: c-ares now broken: error: ‘F_GETFL’ undeclared (first use in this function)
MacPorts
noreply at macports.org
Sat Jun 15 20:50:35 UTC 2024
#70208: c-ares now broken: error: ‘F_GETFL’ undeclared (first use in this function)
---------------------------+-----------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords: tiger, leopard, snowleopard
Port: c-ares |
---------------------------+-----------------------------------------
Comment (by ballapete):
After removing `os/availability.h` `GCC 4.2` reports:
{{{
In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_net_c-
ares/c-ares/work/c-ares-1.30.0/src/lib/ares_sysconfig_mac.c:54:
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_net_c-
ares/c-ares/work/c-ares-1.30.0/src/lib/thirdparty/apple/dnsinfo.h:113:
warning: no previous prototype for ‘dns_configuration_notify_key’
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_net_c-
ares/c-ares/work/c-ares-1.30.0/src/lib/thirdparty/apple/dnsinfo.h: In
function ‘dns_configuration_notify_key’:
}}}
`src/lib/thirdparty/apple/dnsinfo.h` has the prototype – guarded by
statements I do not know how to interpret:
{{{
__BEGIN_DECLS
/*
* DNS configuration access APIs
*/
const char *
dns_configuration_notify_key (void)
API_AVAILABLE(macos(10.4), ios(2.0));
dns_config_t *
dns_configuration_copy (void)
API_AVAILABLE(macos(10.4), ios(2.0));
void
dns_configuration_free (dns_config_t *config)
API_AVAILABLE(macos(10.4), ios(2.0));
void
_dns_configuration_ack (dns_config_t *config,
const char *bundle_id)
API_AVAILABLE(macos(10.8), ios(6.0));
__END_DECLS
}}}
Maybe `GCC7` is an appropriate `compiler`?
--
Ticket URL: <https://trac.macports.org/ticket/70208#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list