Nelson H. F. Beebe
2002-Mar-28 00:45 UTC
rsync-2.5.5rc1: two problems on Apple Darwin (== MacOS X)
There is a small configure glitch for rsync-2.5.5rc1 on Apple Darwin (== MacOS X) [ uname -a Darwin darwin.math.utah.edu 5.2 Darwin Kernel Version 5.2: Fri Dec 7 21:39:35 PST 2001; root:xnu/xnu-201.14.obj~1/RELEASE_PPC Power Macintosh powerpc ] the config.h file gets the line #define INET6 1 The link then fails with /usr/bin/ld: Undefined symbols: _freehostent _getipnodebyaddr Removing the definition of INET6 from config.h and rebuilding resolved the problem. [A search of the rsync.mbox archives shows this reported in mail from Derek Sivers <cdbaby@mac.com> of Wed, 27 Feb 2002 13:20:02 -0600 and followups, with the suggestion to use --disable-ipv6. I'd still rather have it build out-of-the-box without the need for additional configure switches.] There were then two failures in the test suite: ----- chgrp log follows + fromdir=/local/build/rsync-2.5.5rc1/testtmp.chgrp/from + todir=/local/build/rsync-2.5.5rc1/testtmp.chgrp/to + mygrps=+ /local/build/rsync-2.5.5rc1/getgroups + mygrps=10 73 50 887 75 + mkdir /local/build/rsync-2.5.5rc1/testtmp.chgrp/from + name=/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-10 + date + chgrp 10 /local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-10 + name=/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-73 + date + chgrp 73 /local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-73 + name=/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-50 + date + chgrp 50 /local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-50 + name=/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-887 + date + chgrp 887 /local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-887 + name=/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-75 + date + chgrp 75 /local/build/rsync-2.5.5rc1/testtmp.chgrp/from/foo-75 + sleep 2 + failed+ echo Running: "rsync -rtgvvv "/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/" "/local/build/rsync-2.5.5rc1/testtmp.chgrp/to/"" Running: "rsync -rtgvvv "/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/" "/local/build/rsync-2.5.5rc1/testtmp.chgrp/to/"" + eval rsync -rtgvvv "/local/build/rsync-2.5.5rc1/testtmp.chgrp/from/" "/local/build/rsync-2.5.5rc1/testtmp.chgrp/to/" + rsync -rtgvvv /local/build/rsync-2.5.5rc1/testtmp.chgrp/from/ /local/build/rsync-2.5.5rc1/testtmp.chgrp/to/ local_version=20 remote_version=20 local_version=20 remote_version=20 server_recv(2) starting pid=6399 building file list ... make_file(5,.) make_file(5,foo-10) make_file(5,foo-73) make_file(5,foo-50) make_file(5,foo-887) make_file(5,foo-75) done send_file_list done send_files starting recv_file_name(.) recv_file_name(foo-10) recv_file_name(foo-73) recv_file_name(foo-50) recv_file_name(foo-887) recv_file_name(foo-75) received 6 names recv_file_list done get_local_name count=6 /local/build/rsync-2.5.5rc1/testtmp.chgrp/to/ mkdir /local/build/rsync-2.5.5rc1/testtmp.chgrp/to/ : No such file or directory (1) unexpected EOF in read_timeout ----- chgrp log ends FAIL chgrp ----- hardlinks log follows + fromdir=/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from + todir=/local/build/rsync-2.5.5rc1/testtmp.hardlinks/to + mkdir /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from + name1=/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name1 + name2=/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name2 + name3=/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name3 + name4=/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name4 + echo This is the file + ln /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name1 /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name2 + ln /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name2 /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name3 + cp /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name2 /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/name4 + failed+ echo Running: "rsync -aHvv "/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/" "/local/build/rsync-2.5.5rc1/testtmp.hardlinks/to/"" Running: "rsync -aHvv "/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/" "/local/build/rsync-2.5.5rc1/testtmp.hardlinks/to/"" + eval rsync -aHvv "/local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/" "/local/build/rsync-2.5.5rc1/testtmp.hardlinks/to/" + rsync -aHvv /local/build/rsync-2.5.5rc1/testtmp.hardlinks/from/ /local/build/rsync-2.5.5rc1/testtmp.hardlinks/to/ building file list ... done mkdir /local/build/rsync-2.5.5rc1/testtmp.hardlinks/to/ : No such file or directory (1) unexpected EOF in read_timeout ----- hardlinks log ends FAIL hardlinks For comparison, I also ran the Apple-supplied version of rsync through the test suite: % /usr/bin/rsync --version rsync version 2.3.1 protocol version 20 ... env POSIXLY_CORRECT=1 TOOLDIR=`pwd` rsync_bin=/usr/bin/rsync srcdir=. ./runtests.sh ... ----- daemon-gzip-download log follows building configuration /local/build/rsync-2.5.5rc1/testtmp.daemon-gzip-download/ test-rsyncd.conf Running: "/usr/local/bin/rsync-2.3.1 -avvz localhost::test-from/ "/local/build/r sync-2.5.5rc1/testtmp.daemon-gzip-download/to/"" failed to connect to localhost - Connection refused ----- daemon-gzip-download log ends FAIL daemon-gzip-download ----- daemon-gzip-upload log follows building configuration /local/build/rsync-2.5.5rc1/testtmp.daemon-gzip-upload/te st-rsyncd.conf Running: "/usr/local/bin/rsync-2.3.1 -avvz "/local/build/rsync-2.5.5rc1/testtmp. daemon-gzip-upload/from/" localhost::test-to/" failed to connect to localhost - Connection refused ----- daemon-gzip-upload log ends FAIL daemon-gzip-upload ----- daemon log follows building configuration /local/build/rsync-2.5.5rc1/testtmp.daemon/test-rsyncd.co nf failed to connect to localhost - Connection refused ----- daemon log ends FAIL daemon So, the old version failed three tests, but different ones from the new version. ------------------------------------------------------------------------------- - Nelson H. F. Beebe Tel: +1 801 581 5254 - - Center for Scientific Computing FAX: +1 801 585 1640, +1 801 581 4148 - - University of Utah Internet e-mail: beebe@math.utah.edu - - Department of Mathematics, 110 LCB beebe@acm.org beebe@computer.org - - 155 S 1400 E RM 233 beebe@ieee.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe - -------------------------------------------------------------------------------
Martin Pool
2002-Mar-28 16:11 UTC
rsync-2.5.5rc1: two problems on Apple Darwin (== MacOS X)
On 27 Mar 2002, "Nelson H. F. Beebe" <beebe@math.utah.edu> wrote:> [A search of the rsync.mbox archives shows this reported in mail > from Derek Sivers <cdbaby@mac.com> of Wed, 27 Feb 2002 13:20:02 -0600 > and followups, with the suggestion to use --disable-ipv6. I'd still > rather have it build out-of-the-box without the need for additional > configure switches.]Yes, I agree that would be better. Perhaps we can look for the presence of freehostent..> get_local_name count=6 /local/build/rsync-2.5.5rc1/testtmp.chgrp/to/ > mkdir /local/build/rsync-2.5.5rc1/testtmp.chgrp/to/ : No such file or directory (1) > unexpected EOF in read_timeoutAre you really sure you're using 2.5.5rc1? It's just that I'm pretty sure that message no longer comes out in that format. If you updated your build directory from a previous version, you might need to do "make clean" first. If you're doing "make installcheck" you need to do "make install" first. (See v1.141 vs 1.148 of main.c) If the error still occurs, could you please set a debug breakpoint in do_mkdir and see what's happening?> For comparison, I also ran the Apple-supplied version of rsync through > the test suite: > > % /usr/bin/rsync --version > rsync version 2.3.1 protocol version 20 > ...The three tests that fail depend upon debug hooks that were added after 2.3 was released, so they should be expected to fail with 2.3.1. Thanks, -- Martin