At 05:29 PM 3/2/2002 +0800, you wrote:
>Hi Alan;
>I got the error message in Redhat 7.1
>
>==================
>misc.c: In function `ip_hostname':
>misc.c:56: warning: passing arg 4 of `gethostbyaddr_r' from incompatible
>pointer type
>misc.c:56: warning: passing arg 5 of `gethostbyaddr_r' makes pointer from
>integer without a cast
>misc.c:56: warning: passing arg 6 of `gethostbyaddr_r' makes integer from
>pointer without a cast
>misc.c:56: too few arguments to function `gethostbyaddr_r'
>misc.c:56: warning: assignment makes pointer from integer without a cast
>misc.c:40: warning: unused variable `result'
>misc.c: In function `ip_getaddr':
>misc.c:89: warning: passing arg 5 of `gethostbyname_r' from incompatible
>pointer type
>misc.c:89: too few arguments to function `gethostbyname_r'
>misc.c:89: warning: assignment makes pointer from integer without a cast
>gmake[4]: *** [misc.o] Error 1
>gmake[4]: Leaving directory
>`/home/test/freeradius-snapshot-20020226/src/lib'
>gmake[3]: *** [common] Error 1
>=====================

Hi,

You can work around this by undefining a couple of DEFINEs in 
src/include/autoconf.h.  Of course, this means you are still using the 
non-thread safe versions, but at least it compiles and runs.

/* Define if you have the gethostbyaddr_r function.  */
/* #define HAVE_GETHOSTBYADDR_R 1 */
#undef HAVE_GETHOSTBYADDR_R

/* Define if you have the gethostbyname_r function.  */
/* #define HAVE_GETHOSTBYNAME_R 1 */
#undef HAVE_GETHOSTBYNAME_R

Hope this helps.
Randy Moore
Axion Information Technologies, Inc.

email     [EMAIL PROTECTED]
phone   301-408-1200
fax        301-445-3947


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to