From nobody Tue May 09 19:15:57 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 4QG7DF5jdRz49Lv2 for ; Tue, 9 May 2023 19:15:57 +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 4QG7DF3BNMz4MyQ for ; Tue, 9 May 2023 19:15:57 +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=1683659757; 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=rlcMIsE3LuyzuRzMS9FUc8jUbGWVmJ5wcYiZmQMl0Ss=; b=TLprtxhEoJVDAylrJSjz8kPZNZ2LIASs3XeDK9++FzpEG6/5H7oPm9OnggLfq9p+1NY6Hh HbKi/Fii6aaPfBSvA80TXolDD237IdfxuSrwV11sw29jWszfm5NNzgNu3f2VtZstcAWT2e Yhnn2VaBMgd8aYBss1urm2NhYsi0QNITi69l9472oqtwBlCIBMgbZglFy0TreHbuJl9lok 1KzEvczwidXSSQBLMZTTd1xn7bJ/TvkMbq0W1NgYhHtEorwtEAJYSHuxDV7eMvXJpE9zQ2 r+5wQraCybyxkH5bd+R4CrfhPmi0YsxbqTK6uI4zibbKzXFJd97dNZdVcBOS4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683659757; a=rsa-sha256; cv=none; b=T4rqpyL1Ahu11Ior7CRkvA9loktPQOlRq0iQaXBH2oH0EvQjMf3YKRaPhVtbpgp5M0B9eR fiy9YZ6eeDoonEmMy5CUXRz9N5b5rVwWBotP0ohaP7kNof5LS7GgL7mYN13P7OOq6xkPpX e2YmCsuiF8/JIyeHguiQQPDV/tNVi7uD1gINMhpso8vrZOqAGw+/j5yjIaN5raPTkkyr5Z 9kQbCQz80GRJC71635QXB6J+Kk6lvHtSKGBQb5Jr/SGpxN1U+ogiEecD5s/hfuGo6ToVG5 H3hhTLqIauj4OT9GWarH65zE6zJk9shYIeRnVQ4jeqfyzCTfLNDn10ge2hQLPA== 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 4QG7DF2Fq7zgBm for ; Tue, 9 May 2023 19:15:57 +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 349JFvbD017554 for ; Tue, 9 May 2023 19:15:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 349JFvb0017553 for ports-bugs@FreeBSD.org; Tue, 9 May 2023 19:15:57 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: Tue, 09 May 2023 19:15:57 +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 #6 from O. Hartmann --- Hello, I'm running into the very same issue here on CURRENT builder host, running 13-STABLE jail: =3D>> Building net/asterisk18 build started at Mon May 8 08:36:14 UTC 2023 port directory: /usr/ports/net/asterisk18 package name: asterisk18-18.17.1_1 [...] 13.2-STABLE 1302505 amd64 [...] /net/asterisk18/Makefile Ports top last git commit: ec23a17e0f51 Ports top unclean checkout: no Port dir last git commit: 6ee7f9f1ae2e Port dir unclean checkout: no Poudriere version: poudriere-git-3.3.99.20220831 Host OSVERSION: 1400088 Jail OSVERSION: 1302505 Job Id: 02 poudriere shows the very same error as reported before. My understanding of the techniques of the C code is limited, but looking at= =20 main/utils.c reveals that there is a static declaration of gethostbyname_r() (as reporte= d in the error) for which the comment says it is a replacement for BSD-versions,= see below. Checking the manpages for gethostbyname_r(), found in libc, obviously prototyped in /usr/include/netdb.h definitely states, that the routine is threadsafe AND reentrant! I have not checked with upstream so far, but I found it logic to eliminate = the extranous gehthostbyname_r() routine in main/utils.c with the (clumsy) #ifd= ef clause show below - and the code is compiling. Haven't tested it. I have no idea since when the code starts to bread to determine __FreeBSD_version, but this might be a first approach to a workaround? Otherwise, sorry for the noise, if the suggestion is illogical and ill-advi= ced. [... main/utisl.c ...] /*! \brief Reentrant replacement for gethostbyname for BSD-based systems. \note This routine is derived from code originally written and placed in the public domain by Enzo Michelangeli */ #if !defined(__FreeBSD__) static int gethostbyname_r (const char *name, struct hostent *ret, char *bu= f, size_t buflen, struct hostent **result, int *h_errnop) [...] } #endif --=20 You are receiving this mail because: You are the assignee for the bug.=