[MacPorts] #72654: py-pycares needs C11: ares.h: error: redefinition of typedef ‘ares_socklen_t’

MacPorts noreply at macports.org
Thu Jun 26 05:09:19 UTC 2025


#72654: py-pycares needs C11: ares.h: error: redefinition of typedef
‘ares_socklen_t’
--------------------------+------------------------
 Reporter:  barracuda156  |      Owner:  ipglider
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.7
 Keywords:                |       Port:  py-pycares
--------------------------+------------------------
 {{{
 --->  Building py311-pycares
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 pycares/py311-pycares/work/pycares-4.9.0" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-pycares/py311-pycares/work
 * Getting build dependencies for wheel...
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning:
 License classifiers are deprecated.
 !!

 ********************************************************************************
         Please consider removing the following classifiers in favor of a
 SPDX license expression:

         License :: OSI Approved :: MIT License

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   self._finalize_license_expression()
 running egg_info
 writing src/pycares.egg-info/PKG-INFO
 writing dependency_links to src/pycares.egg-info/dependency_links.txt
 writing requirements to src/pycares.egg-info/requires.txt
 writing top-level names to src/pycares.egg-info/top_level.txt
 reading manifest file 'src/pycares.egg-info/SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 warning: no files found matching 'tox.ini'
 warning: no previously-included files matching '__pycache__' found under
 directory '*'
 warning: no previously-included files matching '*.py[co]' found under
 directory '*'
 warning: no previously-included files matching '*.[ao]' found under
 directory '*'
 warning: no previously-included files matching '*.so' found under
 directory '*'
 no previously-included directories found matching 'docs/_build'
 adding license file 'LICENSE'
 writing manifest file 'src/pycares.egg-info/SOURCES.txt'
 * Building wheel...
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning:
 License classifiers are deprecated.
 !!

 ********************************************************************************
         Please consider removing the following classifiers in favor of a
 SPDX license expression:

         License :: OSI Approved :: MIT License

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   self._finalize_license_expression()
 running bdist_wheel
 running build
 running build_py
 creating build/lib.macosx-10.6-ppc-cpython-311/pycares
 copying src/pycares/__init__.py -> build/lib.macosx-10.6-ppc-
 cpython-311/pycares
 copying src/pycares/__main__.py -> build/lib.macosx-10.6-ppc-
 cpython-311/pycares
 copying src/pycares/_version.py -> build/lib.macosx-10.6-ppc-
 cpython-311/pycares
 copying src/pycares/errno.py -> build/lib.macosx-10.6-ppc-
 cpython-311/pycares
 copying src/pycares/utils.py -> build/lib.macosx-10.6-ppc-
 cpython-311/pycares
 copying src/pycares/py.typed -> build/lib.macosx-10.6-ppc-
 cpython-311/pycares
 running build_ext
 generating cffi module 'build/temp.macosx-10.6-ppc-cpython-311/_cares.c'
 creating build/temp.macosx-10.6-ppc-cpython-311
 building '_cares' extension
 creating build/temp.macosx-10.6-ppc-cpython-311/build/temp.macosx-10.6
 -ppc-cpython-311
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib/dsa
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib/event
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib/legacy
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib/record
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib/str
 creating build/temp.macosx-10.6-ppc-cpython-311/deps/c-ares/src/lib/util
 /usr/bin/gcc-4.2 -Os -arch ppc -isysroot/ -DHAVE_CONFIG_H=1
 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1
 -DCARES_THREADS=1 -DCARES_STATICLIB=1 -DHAVE_KQUEUE=1 -DHAVE_SYS_TYPES_H=1
 -DHAVE_SYS_EVENT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_FCNTL_H=1 -DHAVE_PIPE=1
 -Ideps/build-config/config_darwin -Ideps/build-config/include
 -Ideps/c-ares/src/lib/include -Ideps/c-ares/src/lib -Ideps/c-ares/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
 -c build/temp.macosx-10.6-ppc-cpython-311/_cares.c -o
 build/temp.macosx-10.6-ppc-cpython-311/build/temp.macosx-10.6-ppc-
 cpython-311/_cares.o
 In file included from build/temp.macosx-10.6-ppc-cpython-311/_cares.c:584:
 deps/c-ares/include/ares.h:97: error: redefinition of typedef
 ‘ares_socklen_t’
 deps/build-config/include/ares_build.h:191: error: previous declaration of
 ‘ares_socklen_t’ was here
 deps/c-ares/include/ares.h:98: error: redefinition of typedef
 ‘ares_ssize_t’
 deps/build-config/include/ares_build.h:205: error: previous declaration of
 ‘ares_ssize_t’ was here
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_create_query’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:1188: warning:
 ‘ares_create_query’ is deprecated (declared at
 deps/c-ares/include/ares.h:959)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_create_query’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:1267: warning:
 ‘ares_create_query’ is deprecated (declared at
 deps/c-ares/include/ares.h:959)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_get_servers’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:1713: warning:
 ‘ares_get_servers’ is deprecated (declared at
 deps/c-ares/include/ares.h:1184)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_get_servers’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:1751: warning:
 ‘ares_get_servers’ is deprecated (declared at
 deps/c-ares/include/ares.h:1184)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_gethostbyname’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:1936: warning:
 ‘ares_gethostbyname’ is deprecated (declared at
 deps/c-ares/include/ares.h:881)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_gethostbyname’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:1995: warning:
 ‘ares_gethostbyname’ is deprecated (declared at
 deps/c-ares/include/ares.h:881)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_getsock’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2160: warning:
 ‘ares_getsock’ is deprecated (declared at deps/c-ares/include/ares.h:904)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_getsock’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2204: warning:
 ‘ares_getsock’ is deprecated (declared at deps/c-ares/include/ares.h:904)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_init’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2343: warning: ‘ares_init’
 is deprecated (declared at deps/c-ares/include/ares.h:488)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_init’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2366: warning: ‘ares_init’
 is deprecated (declared at deps/c-ares/include/ares.h:488)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_mkquery’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2494: warning:
 ‘ares_mkquery’ is deprecated (declared at deps/c-ares/include/ares.h:963)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_mkquery’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2567: warning:
 ‘ares_mkquery’ is deprecated (declared at deps/c-ares/include/ares.h:963)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_a_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2582: warning:
 ‘ares_parse_a_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1100)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_a_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2648: warning:
 ‘ares_parse_a_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1100)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_aaaa_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2663: warning:
 ‘ares_parse_aaaa_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1104)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_aaaa_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2729: warning:
 ‘ares_parse_aaaa_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1104)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_caa_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2744: warning:
 ‘ares_parse_caa_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1107)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_caa_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2788: warning:
 ‘ares_parse_caa_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1107)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_mx_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2803: warning:
 ‘ares_parse_mx_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1120)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_mx_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2847: warning:
 ‘ares_parse_mx_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1120)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_naptr_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2862: warning:
 ‘ares_parse_naptr_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1129)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_naptr_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2906: warning:
 ‘ares_parse_naptr_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1129)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_ns_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2921: warning:
 ‘ares_parse_ns_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1114)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_ns_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2965: warning:
 ‘ares_parse_ns_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1114)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_ptr_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:2980: warning:
 ‘ares_parse_ptr_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1111)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_ptr_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3047: warning:
 ‘ares_parse_ptr_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1111)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_soa_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3062: warning:
 ‘ares_parse_soa_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1132)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_soa_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3106: warning:
 ‘ares_parse_soa_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1132)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_srv_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3121: warning:
 ‘ares_parse_srv_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1117)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_srv_reply’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3165: warning:
 ‘ares_parse_srv_reply’ is deprecated (declared at
 deps/c-ares/include/ares.h:1117)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_parse_txt_reply_ext’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3180: warning:
 ‘ares_parse_txt_reply_ext’ is deprecated (declared at
 deps/c-ares/include/ares.h:1126)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_parse_txt_reply_ext’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3224: warning:
 ‘ares_parse_txt_reply_ext’ is deprecated (declared at
 deps/c-ares/include/ares.h:1126)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_query’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3291: warning:
 ‘ares_query’ is deprecated (declared at deps/c-ares/include/ares.h:838)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_query’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3356: warning:
 ‘ares_query’ is deprecated (declared at deps/c-ares/include/ares.h:838)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_search’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3473: warning:
 ‘ares_search’ is deprecated (declared at deps/c-ares/include/ares.h:861)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_search’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3538: warning:
 ‘ares_search’ is deprecated (declared at deps/c-ares/include/ares.h:861)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_send’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3553: warning: ‘ares_send’
 is deprecated (declared at deps/c-ares/include/ares.h:818)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_send’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3612: warning: ‘ares_send’
 is deprecated (declared at deps/c-ares/include/ares.h:818)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_d_ares_set_servers’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3775: warning:
 ‘ares_set_servers’ is deprecated (declared at
 deps/c-ares/include/ares.h:1169)
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c: In function
 ‘_cffi_f_ares_set_servers’:
 build/temp.macosx-10.6-ppc-cpython-311/_cares.c:3813: warning:
 ‘ares_set_servers’ is deprecated (declared at
 deps/c-ares/include/ares.h:1169)
 error: command '/usr/bin/gcc-4.2' failed with exit code 1

 ERROR Backend subprocess exited when trying to invoke build_wheel
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 pycares/py311-pycares/work/pycares-4.9.0" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-pycares/py311-pycares/work
 Exit code: 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/72654>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list