On Mon, Oct 06, 2003 at 04:52:47PM +0800, Rohaizam Abu Bakar wrote:
> Paul,
> 
> as requested... a bit extra line ..
> 
> 
> configure:7978: checking gethostbyaddr_r() syntax
> configure:7990: gcc -o
> conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -D
> NDEBUG   conftest.c  1>&5
> configure: In function `main':
> configure:7986: warning: implicit declaration of function `gethostbyaddr_r'
> configure:8068: checking gethostbyname_r() syntax
> configure:8080: gcc -o
> conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -D
> NDEBUG   conftest.c  1>&5
> configure: In function `main':
> configure:8076: warning: implicit declaration of function `gethostbyname_r'

I send a patch for this to the devel list... at least I think so...

Here it is again.

Oliver.

Index: configure.in
===================================================================
RCS file: /source/radiusd/configure.in,v
retrieving revision 1.177.2.6
diff -u -r1.177.2.6 configure.in
--- configure.in        5 Aug 2003 16:31:31 -0000       1.177.2.6
+++ configure.in        22 Aug 2003 08:09:58 -0000
@@ -648,18 +648,18 @@
 
 gethostbyaddrrstyle=""
 AC_MSG_CHECKING([gethostbyaddr_r() syntax])
-AC_TRY_COMPILE([#include <netdb.h>], [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, 
NULL, NULL) ], [
+AC_TRY_LINK([#include <netdb.h>], [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, 
NULL) ], [
        AC_DEFINE(GETHOSTBYADDRRSTYLE, GNUSTYLE)
        gethostbyaddrrstyle=GNU
 ])
 if test "x$gethostbyaddrrstyle" = "x"; then
-       AC_TRY_COMPILE([#include <netdb.h>], [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 
0, NULL) ] , [
+       AC_TRY_LINK([#include <netdb.h>], [ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, 
NULL) ] , [
                AC_DEFINE(GETHOSTBYADDRRSTYLE, SYSVSTYLE)
                gethostbyaddrrstyle=SYSV
        ])
 fi
 if test "x$gethostbyaddrrstyle" = "x"; then
-       AC_TRY_COMPILE([#include <netdb.h>], [ gethostbyaddr(NULL, 0, 0)  ], [
+       AC_TRY_LINK([#include <netdb.h>], [ gethostbyaddr(NULL, 0, 0)  ], [
                AC_DEFINE(GETHOSTBYADDRRSTYLE, BSDSTYLE)
                gethostbyaddrrstyle=BSD
                AC_MSG_WARN([ ****** BSD Style gethostbyaddr might NOT be thread-safe! 
****** ])
@@ -674,18 +674,18 @@
 
 gethostbynamerstyle=""
 AC_MSG_CHECKING([gethostbyname_r() syntax])
-AC_TRY_COMPILE([#include <netdb.h>], [ gethostbyname_r(NULL, NULL, NULL, 0, NULL, 
NULL) ], [
+AC_TRY_LINK([#include <netdb.h>], [ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) 
], [
        AC_DEFINE(GETHOSTBYNAMERSTYLE, GNUSTYLE)
        gethostbynamerstyle=GNU
 ])
 if test "x$gethostbynamerstyle" = "x"; then
-       AC_TRY_COMPILE([#include <netdb.h>], [ gethostbyname_r(NULL, NULL, NULL, 0, 
NULL) ] , [
+       AC_TRY_LINK([#include <netdb.h>], [ gethostbyname_r(NULL, NULL, NULL, 0, NULL) 
] , [
                AC_DEFINE(GETHOSTBYNAMERSTYLE, SYSVSTYLE)
                gethostbynamerstyle=SYSV
        ])
 fi
 if test "x$gethostbynamerstyle" = "x"; then
-       AC_TRY_COMPILE([#include <netdb.h>], [ gethostbyname(NULL)  ], [
+       AC_TRY_LINK([#include <netdb.h>], [ gethostbyname(NULL)  ], [
                AC_DEFINE(GETHOSTBYNAMERSTYLE, BSDSTYLE)
                gethostbynamerstyle=BSD
                AC_MSG_WARN([ ****** BSD Style gethostbyname might NOT be thread-safe! 
****** ])

Reply via email to