[Bug 271131] net/asterisk18: utils.c:99:12: error: static declaration of 'gethostbyname_r' follows non-static declaration
Date: Sat, 13 May 2023 17:47:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271131 --- Comment #9 from O. Hartmann <ohartmann@walstatt.org> --- (In reply to Mina Galić from comment #8) I understand the logic o the check that six arguments includes five arguments, see foryourself. And both checks set to logical 1 "qualifies" for the existence of a reentrant gethostbyname_r(). Well ... I try to focus on a practical solution. My attempt to compile the original port (asterisk18) with the latest patch for LLVM14 also failed. Either the base framework (Mk) has made changes, or LLVM prior to 15/14 did not check for the bailing-out ambigous declaration of gethostbyname_r() and I'm curious whether the compiler has always on FreeBSD picked up the "wrong" function (libc has the more recent one, according to the head comment of the file main/utils.c in asterisk18, it has been edited last time 2006). In the latter case, the whole #if statement should be enveloped into #if !defined(__FreeBSD__) #endif This is the way I do the workaround. net/asterisk18 compiles and as for now, I didn't realise any problems while operating the binary - for now. I can provide the patch here - but I fear I have made myself a fool by discussing "my naive" impressions (I do not active develop ...). -- You are receiving this mail because: You are the assignee for the bug.