pip can't build pycares. How can I substitute `getservbyport_r()`?

I don't have much to add except that NetBSD also lacks this function. Here's the error excerpt
deps/c-ares/src/lib/ares_getnameinfo.c:300:15: error: call to undeclared function 'getservbyport_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
300 | if (getservbyport_r(port, proto, &se, (void *)tmpbuf,
| ^
deps/c-ares/src/lib/ares_getnameinfo.c:300:15: error: call to undeclared function 'getservbyport_r'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
300 | if (getservbyport_r(port, proto, &se, (void *)tmpbuf,
| ^
Solution:
for me it works, and this is reportedly a very old error that only affects old versions of pycares.
Jump to solution
6 Replies
owokitty
owokitty2w ago
which version of pycares are you trying to install?
Solution
owokitty
owokitty2w ago
for me it works, and this is reportedly a very old error that only affects old versions of pycares.
owokitty
owokitty2w ago
No description
VISΛGE
VISΛGEOP7d ago
4.4.0 apparently well the script i was trying to use is uber toast anyways. will try making a new one
owokitty
owokitty7d ago
if you still get stuck later, let me know what script you are trying to use

Did you find this page helpful?