Rsync-2.5.5 on Tru64 UNIX V51.A

Hobson, Paul
Thu, 07 Nov 2002 21:38:01 -0000

David

Sorry about the original message....

length: I wanted to make sure you had the whole picture
format: I keep forgetting when emailing "real" people, that the
brain-dead
"Outlook" sends in "Rich Text" :-))


I applied the changes to the configure.in file -----

# AC_CHECK_FUNCS(getaddrinfo, , AC_LIBOBJ(lib/getaddrinfo))
# 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(getnameinfo, , AC_LIBOBJ(lib/getnameinfo))


----- however experienced the identical error as in my previous message
-----

gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/getaddrinfo.c -o
lib/getaddrinfo.o
lib/getaddrinfo.c: In function `gai_strerror':
lib/getaddrinfo.c:180: `EAI_MAX' undeclared (first use in this function)
lib/getaddrinfo.c:180: (Each undeclared identifier is reported only once
lib/getaddrinfo.c:180: for each function it appears in.)
lib/getaddrinfo.c: In function `str_isnumber':
lib/getaddrinfo.c:206: warning: subscript has type `char'
lib/getaddrinfo.c: In function `ogetaddrinfo':
lib/getaddrinfo.c:262: `EAI_BADHINTS' undeclared (first use in this
function)
lib/getaddrinfo.c:263: `AI_MASK' undeclared (first use in this function)
lib/getaddrinfo.c:353: `EAI_PROTOCOL' undeclared (first use in this
function)
lib/getaddrinfo.c:399: warning: unused variable `pfx'
lib/getaddrinfo.c: In function `get_name':
lib/getaddrinfo.c:476: warning: unused variable `h_error'
*** Exit 1
Stop.


Sorry to be a nuisance...


Paul Hobson

-----Original Message-----
From: David Starks-Browning [mailto:starksb@ebi.ac.uk]
Sent: Thursday, 7 November 2002 9:37 PM
To: Hobson, Paul
Cc: 'rsync@samba.org'
Subject: Rsync-2.5.5 on Tru64 UNIX V51.A


Paul, this message was big enough without also being in HTML!  It was
probably flagged as spam, hence the long delay.

On Friday 25 Oct 02, Hobson, Paul writes:
> Hi
>
> I am trying to compile rsync-2.5.5 on Tru64 UNIX V5.1A
>
> The configure completed sucessfully however the make failed. The
> following is a copy of the configure and make  output. Could you
> please provide advice as to why this is failing and hopefully
> resolution.
>
> Just as a matter of comparison - rsync-2.5.4 make also fails, however,
> rsync-2.4.8 compiled sucessfully on this version of Tru64 5.1A

I also see this problem, on V5.0A and V5.1 as well.

Try the patch described here:

<http://www.mail-archive.com/rsync@lists.samba.org/msg03583.html>

It appears to have been committed, if you want to try a CVS checkout.

(I haven't tried the patch or CVS myself.  My rsync-2.5.5 works because I
built it on DU-4.0D. :-)

Please do report back whether this solves the problem.  We do want
rsync-2.5.6 to build cleanly on Tru64 V5.1A!

Thanks,
David

 -------------------------------------------------------------------
  David Starks-Browning                  | starksb@ebi.ac.uk
  EMBL Outstation --                     |
  The European Bioinformatics Institute  |
  Wellcome Trust Genome Campus           | tel: +44 (1223) 494 616
  Hinxton, Cambridge, CB10 1SD, UK       | fax: +44 (1223) 494 468
 -------------------------------------------------------------------