ports/154150: [ patch ] net/asterisk: getifaddrs() misdetected as unavaiable
Dan Lukes
dan at obluda.cz
Wed Jan 19 23:10:08 UTC 2011
>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:
More information about the freebsd-ports-bugs
mailing list