getaddrinfo.c error compiling rsync on tru64 5.1A

martin sigilfredo cabrera martincab at hotmail.com
Wed Apr 10 09:18:02 EST 2002


Thanks for answering, I tried your suggestions with no luck. i've used your 
1.147 version of configure.in file and after doing ./configure i modified 
config.h. Please give me any clue to find out what is wrong.

My files are:
_________configure.in________
# diff configure.in configure.in.ori
8c8
< RSYNC_VERSION=2.5.6cvs
---
>RSYNC_VERSION=2.5.5
256c256
< AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h 
sys/un.h)
---
>AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h)
329,341c329
< # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
< # something else so we must include <netdb.h> to get the
< # redefinition.
< AC_CHECK_FUNCS(getaddrinfo, ,
<       [AC_MSG_CHECKING([for getaddrinfo by including <netdb.h>])
<       AC_TRY_LINK([#include <sys/types.h>
<       #include <sys/socket.h>
<       #include <netdb.h>],[getaddrinfo(NULL, NULL, NULL, NULL);],
<               [AC_MSG_RESULT([yes])
<               AC_DEFINE(HAVE_GETADDRINFO, 1,
<                       [Define if you have the `getaddrinfo' function.])],
<               [AC_MSG_RESULT([no])
<               AC_LIBOBJ(lib/getaddrinfo)])])
---
>AC_CHECK_FUNCS(getaddrinfo, , AC_LIBOBJ(lib/getaddrinfo))
374c362
< AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod mknod 
mkfifo)
---
>AC_CHECK_FUNCS(waitpid wait4 getcwd strdup strerror chown chmod 
>mknod)_________end configure.in________

_________config.h________
# diff config.h config.h.ori
71d70
< #define HAVE_GETADDRINFO 1
_________end config.h________

Thanks
Martin

>From: Albert Chin <rsync at lists.thewrittenword.com>
>To: MARTIN CABRERA <martincab at hotmail.com>
>CC: rsync at lists.samba.org
>Subject: Re: getaddrinfo.c error compiling rsync on tru64 5.1A
>Date: Wed, 10 Apr 2002 00:41:15 -0500
>
>On Tue, Apr 09, 2002 at 10:08:44PM +0000, MARTIN CABRERA wrote:
> > i've applied albert chin's patch on configure.in file:
> > http://lists.samba.org/pipermail/rsync/2002-January/005726.html,
> >
> > but i still getting the error:
> >
> > cc: Error: lib/getaddrinfo.c, line 180: In this statement, "EAI_MAX" is 
>not
> > declared. (undeclared)
>
>Is HAVE_GETADDRINFO defined in config.h? What version are you running?
>You might want to try the latest CVS.
>
>--
>albert chin (china at thewrittenword.com)


Martin Sigilfredo Cabrera

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.





More information about the rsync mailing list