[asterisk-bugs] [Asterisk 0010383]: wrong configure.ac check for gethostbyname_r on some platforms

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Aug 5 11:07:11 CDT 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10383 
====================================================================== 
Reported By:                rizzo
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   10383
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!): 78148 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-05-2007 11:06 CDT
Last Modified:              08-05-2007 11:07 CDT
====================================================================== 
Summary:                    wrong configure.ac check for gethostbyname_r on some
platforms
Description: 
A recent addition to configure.ac
http://svn.digium.com/view/asterisk?view=rev&revision=77864
to check for gethostbyname_r fails on some platforms (e.g
FreeBSD) as the test uses NULL without including some required header.
This affects both trunk and 1.4

The following change (in two places in configure.ac) should fix the
problem,
i am not committing it because cannot test it on other platforms.
I am not sure what is the proper header to include to make sure NULL
is defined, though.

-        AC_LANG_PROGRAM([#include <netdb.h>],
+        AC_LANG_PROGRAM([#include <stdlib.h>
+                       #include <netdb.h>],

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-05-07 11:07  rizzo          Status                   new => assigned     
08-05-07 11:07  rizzo          Assigned To               => file            
======================================================================




More information about the asterisk-bugs mailing list