From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 19 23:10:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6911106566C for ; Wed, 19 Jan 2011 23:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8169D8FC13 for ; Wed, 19 Jan 2011 23:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0JNA8U8078283 for ; Wed, 19 Jan 2011 23:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0JNA8m4078282; Wed, 19 Jan 2011 23:10:08 GMT (envelope-from gnats) Resent-Date: Wed, 19 Jan 2011 23:10:08 GMT Resent-Message-Id: <201101192310.p0JNA8m4078282@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Lukes Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997151065672 for ; Wed, 19 Jan 2011 23:07:07 +0000 (UTC) (envelope-from dan@m8-64.freebsd.cz) Received: from m8-64.freebsd.cz (m8-64.freebsd.cz [195.113.20.201]) by mx1.freebsd.org (Postfix) with ESMTP id 34C3D8FC16 for ; Wed, 19 Jan 2011 23:07:06 +0000 (UTC) Received: from m8-64.freebsd.cz (localhost [127.0.0.1]) by m8-64.freebsd.cz (8.14.4/8.14.4) with ESMTP id p0K0Bscx073851 for ; Thu, 20 Jan 2011 01:11:54 +0100 (CET) (envelope-from dan@m8-64.freebsd.cz) Received: (from root@localhost) by m8-64.freebsd.cz (8.14.4/8.14.4/Submit) id p0K0Brpt073850; Thu, 20 Jan 2011 01:11:54 +0100 (CET) (envelope-from dan) Message-Id: <201101200011.p0K0Brpt073850@m8-64.freebsd.cz> Date: Thu, 20 Jan 2011 01:11:54 +0100 (CET) From: Dan Lukes To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/154150: [ patch ] net/asterisk: getifaddrs() misdetected as unavaiable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan Lukes List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 23:10:08 -0000 >Number: 154150 >Category: ports >Synopsis: [ patch ] net/asterisk: getifaddrs() misdetected as unavaiable >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 19 23:10:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 8.1-RELEASE-p2 amd64 >Organization: Obludarium >Environment: net/asterisk/Makefile,v 1.138 2011/01/19 09:01:07 flo >Description: During the configure phase, the ./configure is trying to detect presence of getifaddrs() function unfortunatelly, the test program miss mandatory includes so compilation failed. getifaddrs() is claimed unavaiable The getifaddrs() is used during EID generation. Asterisk can live without it, but it needs to be configured manually. >How-To-Repeat: Compile, install, runn, attach to console. Warning about missing EID will be shown. >Fix: The necesarry includes needs to be added - then the function will be detected properly. The program code itself need not to be changed - the required headers are included already. Only configure needs to be added. There is patch for configure (related to other problems) - the fragment attached bellow needs to be added to it. --- configure.OOO 2011-01-19 23:27:21.000000000 +0100 +++ configure 2011-01-19 23:28:11.000000000 +0100 @@ -27490,6 +27490,8 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +#include +#include #include int main () >Release-Note: >Audit-Trail: >Unformatted: