rsync-2.5.5rc1: two problems on Apple Darwin (== MacOS X)

Nelson H. F. Beebe beebe at math.utah.edu
Thu Mar 28 00:45:22 EST 2002


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 at 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 at math.utah.edu  -
- Department of Mathematics, 110 LCB        beebe at acm.org  beebe at computer.org -
- 155 S 1400 E RM 233                       beebe at ieee.org                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------




More information about the rsync mailing list