Date: Thu, 20 Jan 2011 01:11:54 +0100 (CET) From: Dan Lukes <dan@obluda.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/154150: [ patch ] net/asterisk: getifaddrs() misdetected as unavaiable Message-ID: <201101200011.p0K0Brpt073850@m8-64.freebsd.cz> Resent-Message-ID: <201101192310.p0JNA8m4078282@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <sys/types.h> +#include <sys/socket.h> #include <ifaddrs.h> int main () >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101200011.p0K0Brpt073850>