From nobody Sat May 13 17:47:21 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QJY492zKNz4Bbg7 for ; Sat, 13 May 2023 17:47:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QJY491xMyz3NQ1 for ; Sat, 13 May 2023 17:47:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684000041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gwm3Nc1862RMU/tw6IiSbFo7ARxNZ/sig8rwSCS730I=; b=HjgxBZ5o2V/xQXekr8Pdg5MPJ/nfDBihiP7uMPIEl3f6+5EZqXvBR63Yf01Ozh8q4HYWK+ MAxMif2G+UL99kx+O90B6yI+aihOR2YPT/kS3EQqb8R7PSpQrF7EWCXXmuv6PK3Q5p9vuI CylUUmLhy81p/Uv9X5f9qIYN4qxYnH6Vxa2rrP+0M1VUEEHJ3X0X/Wt5k9G9F1tTgkoyMd aXbzr7G5h4sgZcxG4mzk8muvGETeNxAJt47MlqnDXB+wctoEkd5+RI8Nu3NHIlBwFub+ED OXU4kWIlXieVOACpBNh+5WqAxEHJvwYwc6ddX12SM/cG0IOgNcqWcijjwS62TQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684000041; a=rsa-sha256; cv=none; b=G5uGvlXsFcYhOanbjpgMa4iGF1EukzVadk2BxpoPmgdWy98OLx+GQsRJ5mU0F+qsFtgfTC 7ZzRsMwcHZgXHErwHGV7SltocW+oiTAPf4AkJWS6D46OsVEyyZnoZctSlaiod4Ahh03BSR TaZW5dm2X2wzPa57kEoKBIEGJfz6ijEdbLLSz6F9HJJrd9wiCM7xYSgvD6c/F/CRbYgbXA B9hKvaIGJ5GmfwGXEJdB5f04RFlEIVzYmKG/JQtQq5gX5UXPghz2XtXIMCQdyoypzA+CPR L73D6068qOMk+3wvr9dZskyPg7hg4+7c9DlJGyKcABxd8eS4kNFsp2bW2uaScg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QJY490t6PzQpT for ; Sat, 13 May 2023 17:47:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34DHlLuD073196 for ; Sat, 13 May 2023 17:47:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34DHlLCt073195 for ports-bugs@FreeBSD.org; Sat, 13 May 2023 17:47:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Sat, 13 May 2023 17:47:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartmann@walstatt.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271131 --- Comment #9 from O. Hartmann --- (In reply to Mina Gali=C4=87 from comment #8) I understand the logic o the check that six arguments includes five argumen= ts, 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 t= he=20 bailing-out ambigous declaration of gethostbyname_r() and I'm curious wheth= er 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 who= le #if statement should be enveloped into=20 #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 ...). --=20 You are receiving this mail because: You are the assignee for the bug.=