Subject: | Glibc deprecation warnings |
Glibc, starting [0] with version 2.28, has declared a number of host name resolution constants deprecated, so now building Socket.xs on such systems results in the following compilation warnings:
./const-xs.inc: In function ‘boot_Socket’:
./const-xs.inc:128:13: warning: AI_IDN_ALLOW_UNASSIGNED is deprecated
{ "AI_IDN_ALLOW_UNASSIGNED", 23, AI_IDN_ALLOW_UNASSIGNED },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./const-xs.inc:131:13: warning: AI_IDN_USE_STD3_ASCII_RULES is deprecated
{ "AI_IDN_USE_STD3_ASCII_RULES", 27, AI_IDN_USE_STD3_ASCII_RULES },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./const-xs.inc:383:13: warning: NI_IDN_ALLOW_UNASSIGNED is deprecated
{ "NI_IDN_ALLOW_UNASSIGNED", 23, NI_IDN_ALLOW_UNASSIGNED },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./const-xs.inc:386:13: warning: NI_IDN_USE_STD3_ASCII_RULES is deprecated
{ "NI_IDN_USE_STD3_ASCII_RULES", 27, NI_IDN_USE_STD3_ASCII_RULES },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0] https://lists.gnu.org/archive/html/info-gnu/2018-08/msg00000.html