You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi luasocket developers! While trying to build this library on Open Build Service, I received a warning:
binary-or-shlib-calls-gethostbyname /usr/local/lib/lua/5.1/socket/core.so
binary-or-shlib-calls-gethostbyname /usr/local/lib/lua/5.1/socket/serial.so
binary-or-shlib-calls-gethostbyname /usr/local/lib/lua/5.1/socket/unix.so
binary-or-shlib-calls-gethostbyname /usr/local/lib/lua/5.1/ssl.so
The binary calls gethostbyname(). Please port the code to use getaddrinfo().
It seems like this library is using gethostbyname and gethostbyaddr in src/usocket.h#L23, but these functions are obsolete and have been marked as deprecated in favor of getaddrinfo and getnameinfo. Note that this is explained in the man pages for gethostbyname: https://man7.org/linux/man-pages/man3/gethostbyname.3.html
I couldn't find any existing issues related to this, but if that isn't the case, feel free to close this.
The text was updated successfully, but these errors were encountered:
marcosbc
changed the title
Functions gethostbyname and are deprecated
Functions gethostbyname and gethostbyaddr are deprecated
Aug 8, 2023
PR contributions welcome! Several of us are around and helping to facilitate contributions, but none of us have much spare time for development work in this right now.
Hi luasocket developers! While trying to build this library on Open Build Service, I received a warning:
It seems like this library is using
gethostbyname
andgethostbyaddr
insrc/usocket.h#L23
, but these functions are obsolete and have been marked as deprecated in favor ofgetaddrinfo
andgetnameinfo
. Note that this is explained in the man pages forgethostbyname
: https://man7.org/linux/man-pages/man3/gethostbyname.3.htmlI couldn't find any existing issues related to this, but if that isn't the case, feel free to close this.
The text was updated successfully, but these errors were encountered: