[Bug 271131] net/asterisk18: utils.c:99:12: error: static declaration of 'gethostbyname_r' follows non-static declaration
Date: Sat, 13 May 2023 15:05:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271131 --- Comment #7 from O. Hartmann <ohartmann@walstatt.org> --- Hello. The reason why net/asterisk16 and net/asterisk18 are broken on CURRENT and 13-STABLE seems not to be LLVM15 (LLVM14 doesn't work either, at least for me here on 13-STABLE and CURRENT). As one can easily confirm, on the same CURRENT using LLVM14 doesn't work either as on 13-STABLE as I reported using LLVM15. Somehow a GNUautotool check doesn't work properly (in my opinion): main/utils.c checks for a 5- or 6-argument gethostbyname_r(). The enveloping clause is (see line 87): #if !defined(HAVE_GETHOSTBYNAME_R_5) && !defined(HAVE_GETHOSTBYNAME_R_6) ... #endif So, the check would define HAVE_GETHOSTBYNAME_R_5=1, HAVE_GETHOSTBYNAME_R_6=1 on FreeBSD and the static declaration would never be touched. Is this correct? -- You are receiving this mail because: You are the assignee for the bug.