Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2023 15:05:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271131] net/asterisk18: utils.c:99:12: error: static declaration of 'gethostbyname_r' follows non-static declaration
Message-ID:  <bug-271131-7788-9uTrXYrfNr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271131-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271131-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271131

--- 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 CURR=
ENT
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=3D1, HAVE_GETHOSTBYNAME_R=
_6=3D1
on FreeBSD and the static declaration would never be touched.

Is this correct?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271131-7788-9uTrXYrfNr>