Re: [MacPorts] #70208: c-ares now broken: error: ‘F_GETFL’ undeclared (first use in this function)
MacPorts
noreply at macports.org
Sat Jun 15 19:29:50 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 barracuda156):
Replying to [comment:4 ballapete]:
> This failure can easily be fixed with the attached `patch`:
>
> {{{
> [ 30%] Building C object
src/lib/CMakeFiles/c-ares.dir/ares_event_configchg.c.o
> cd
/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/build/src/lib
&& /usr/bin/gcc-4.2 -DCARES_BUILDING_LIBRARY -DHAVE_CONFIG_H=1
-D_DARWIN_C_SOURCE -Dc_ares_EXPORTS
-I/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/build
-I/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
-I/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/include
-I/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 -pipe -Os -DNDEBUG
-I/opt/local/include -Wall -Wextra -Wcast-align -Wconversion
-Wdeclaration-after-statement -Wfloat-equal -Wformat-security -Winit-self
-Wmissing-braces -Wmissing-declarations -Wmissing-format-attribute
-Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wold-style-
definition -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-
overflow -Wstrict-prototypes -Wundef -Wunused -Wvariadic-macros -Wwrite-
strings -Werror=implicit-int -Werror=implicit-function-declaration
-Qunused-arguments -std=gnu89 -arch ppc -mmacosx-version-min=10.5 -fPIC
-MD -MT src/lib/CMakeFiles/c-ares.dir/ares_event_configchg.c.o -MF
CMakeFiles/c-ares.dir/ares_event_configchg.c.o.d -o
CMakeFiles/c-ares.dir/ares_event_configchg.c.o -c
/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_event_configchg.c
> [ 31%] Building C object
src/lib/CMakeFiles/c-ares.dir/ares_event_epoll.c.o
> }}}
>
> but then new failures appear:
>
> {{{
> [ 83%] Building C object
src/lib/CMakeFiles/c-ares.dir/ares_sysconfig_mac.c.o
> cd
/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/build/src/lib
&& /usr/bin/gcc-4.2 -DCARES_BUILDING_LIBRARY -DHAVE_CONFIG_H=1
-D_DARWIN_C_SOURCE -Dc_ares_EXPORTS
-I/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/build
-I/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
-I/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/include
-I/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 -pipe -Os -DNDEBUG
-I/opt/local/include -Wall -Wextra -Wcast-align -Wconversion
-Wdeclaration-after-statement -Wfloat-equal -Wformat-security -Winit-self
-Wmissing-braces -Wmissing-declarations -Wmissing-format-attribute
-Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wold-style-
definition -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-
overflow -Wstrict-prototypes -Wundef -Wunused -Wvariadic-macros -Wwrite-
strings -Werror=implicit-int -Werror=implicit-function-declaration
-Qunused-arguments -std=gnu89 -arch ppc -mmacosx-version-min=10.5 -fPIC
-MD -MT src/lib/CMakeFiles/c-ares.dir/ares_sysconfig_mac.c.o -MF
CMakeFiles/c-ares.dir/ares_sysconfig_mac.c.o.d -o
CMakeFiles/c-ares.dir/ares_sysconfig_mac.c.o -c
/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
> 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:31:29:
error: os/availability.h: No such file or directory
> }}}
>
> The absence of `os/availability.h` produces a long list of errors better
to be looked at in my `main.log` file.
This fixes everything and produces working binaries:
https://github.com/macports/macports-ports/pull/24458
But now it takes forever to merge -_-
--
Ticket URL: <https://trac.macports.org/ticket/70208#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list