Re: rsync 2.5.5 Tru64 5.1

2002-07-14 Thread Zoong Pham

On Sat, Jul 13, 2002 at 04:29:00PM -0500, Dang, Tan wrote:
 Sorry about being so vague.  This is the error I get on make
 
 
 cc -I. -I. -g -DHAVE_CONFIG_H -c lib/getaddrinfo.c -o lib/getaddrinfo.o
 cc: Error: lib/getaddrinfo.c, line 180: In this statement, EAI_MAX is not
 declared. (undeclared)

Check this in your source tree: rsync-2.5.5/patches/rsync_zoong_tru64.diff
Hope it helps.
-- 
Zoong Pham
UNIX Systems Administrator

PGP public key is available on request

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



Re: Largest file system being synced

2002-06-27 Thread Zoong Pham

On Thu, Jun 27, 2002 at 11:30:39AM -0400, Granzow, Doug (NCI) wrote:
 
 I am currently syncing 1.3 terabytes of files using rsync.  This is spread
 across about 12 filesystems all on the same server.  Unfortunately we are
 planning to move away from rsync because it is taking too long to run and it
 takes up too much memory (some of the rsync processes take up 1.5 GB of RAM

What tool are you moving to?
Did you use rsync for any databases.
My company is considering using rsync to mirror some databases.

Thanks,
-- 
Zoong Pham[EMAIL PROTECTED]
UNIX Systems AdministratorMercy Health and Aged Care Inc.

To get my PGP public key, email me with the subject:
Request for Zoong Pham's PGP public key

-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



Re: Bug in compile of rsync 2.5.4 on Tru64 UNIX V5.1a using cc

2002-03-21 Thread Zoong Pham

Hi Eckert,

On Thu, Mar 21, 2002 at 03:15:39PM -0500, Eckert, Robert D wrote:
 Greetings, here is the output of the 'configure' step and
 the compile step (using the Compaq cc compiler that comes 
 with Tru64 V5.1A. The configure reported success and most of
 the compile steps cam through error/warning free except for
 the one that stumbled. Can someone help me out here? I am willing
 to provide a binary for Tru64 V5.1A if we can swat this bug.

I had the same problem. I managed to have rsync compiled OK on my
Tru64 5.1 box with helps from couple of people from this list.
Try with the patch I attach here. 
I am not a C programmer so you'd better check to make sure it is
correct.

 We depend greatly on Rsync to keep a fresh backup of our 
 70gb storage system that is the backend of http://www.indiana.edu/,
 Indiana University's main web site to the Internet. 

I plan to do the same here instead of Tru64 vdump and vrestore
once I am sure backups by rsync is as reliable as vdump/vrestore.
Do you use rsync for root, usr partitions and and database files?
Have you had any problem with rsync so far?

Cheers,
-- 
Zoong Pham[EMAIL PROTECTED]
UNIX Systems AdministratorMercy Health and Aged Care Inc.

To get my PGP public key, email me with the subject:
Request for Zoong Pham's PGP public key




diff -u -r rsync-2.5.4/batch.c rsync-2.5.4.new/batch.c
--- rsync-2.5.4/batch.c Thu Feb  7 08:20:48 2002
+++ rsync-2.5.4.new/batch.c Fri Mar 22 09:24:01 2002
@@ -405,7 +405,15 @@
 
/* FIXME: This will break if s-count is ever not exactly an int. */
write_batch_csums_file(flist_entry, sizeof(int));
+   if (s) {
+   write_batch_csums_file(s-count,  sizeof(int));
+   }
+   else if (!s) {
+   write_batch_csums_file(int_zero,  sizeof(int));
+   }
+   /*
write_batch_csums_file(s ? s-count : int_zero, sizeof(int));
+   */

if (s) {
for (i = 0; i  s-count; i++) {
diff -u -r rsync-2.5.4/config.h.in rsync-2.5.4.new/config.h.in
--- rsync-2.5.4/config.h.in Thu Feb 28 10:15:55 2002
+++ rsync-2.5.4.new/config.h.in Fri Mar 22 09:24:01 2002
@@ -140,6 +140,9 @@
 /* Define if you have the `mknod' function. */
 #undef HAVE_MKNOD
 
+/* Define if you have the `mkfifo' function. */
+#undef HAVE_MKFIFO
+
 /* Define if you have the `mtrace' function. */
 #undef HAVE_MTRACE
 
@@ -244,6 +247,9 @@
 
 /* Define if you have the sys/socket.h header file. */
 #undef HAVE_SYS_SOCKET_H
+
+/* Define if you have the sys/un.h header file. */
+#undef HAVE_SYS_UN_H
 
 /* Define if you have the sys/stat.h header file. */
 #undef HAVE_SYS_STAT_H
diff -u -r rsync-2.5.4/configure rsync-2.5.4.new/configure
--- rsync-2.5.4/configure   Wed Mar 13 11:03:50 2002
+++ rsync-2.5.4.new/configure   Fri Mar 22 09:24:01 2002
@@ -3414,7 +3414,7 @@
 fi
 done
 
-for ac_header in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h
+for ac_header in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h sys/un.h
 do
 as_ac_Header=`echo ac_cv_header_$ac_header | $as_tr_sh`
 echo $as_me:3420: checking for $ac_header 5
@@ -6165,7 +6165,7 @@
 fi
 rm -f conftest.data
 
-for ac_func in waitpid wait4 getcwd strdup strerror chown chmod mknod
+for ac_func in waitpid wait4 getcwd strdup strerror chown chmod mknod mkfifo
 do
 as_ac_var=`echo ac_cv_func_$ac_func | $as_tr_sh`
 echo $as_me:6171: checking for $ac_func 5
diff -u -r rsync-2.5.4/configure.in rsync-2.5.4.new/configure.in
--- rsync-2.5.4/configure.inWed Mar 13 11:03:34 2002
+++ rsync-2.5.4.new/configure.inFri Mar 22 09:24:01 2002
@@ -242,7 +242,7 @@
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h unistd.h 
utime.h grp.h)
 AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
-AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h)
+AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h sys/un.h)
 AC_CHECK_HEADERS(glob.h alloca.h mcheck.h sys/sysctl.h arpa/inet.h arpa/nameser.h)
 AC_CHECK_HEADERS(netdb.h)
 AC_CHECK_HEADERS(malloc.h)
@@ -315,7 +315,19 @@
 AC_CHECK_FUNCS(inet_ntop, , AC_LIBOBJ(lib/inet_ntop)) 
 AC_CHECK_FUNCS(inet_pton, , AC_LIBOBJ(lib/inet_pton))
 
-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_MSG_CHECKING([for getaddrinfo])
+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))
 
 AC_CHECK_MEMBER([struct sockaddr.sa_len], 
@@ -348,7 +360,7 @@
 dnl AC_FUNC_MEMCMP
 
 AC_FUNC_UTIME_NULL

Suspicious sizes by different C compilers

2002-03-18 Thread Zoong Pham

Hi all,
On my Alpha box running Tru64 5.1, rsync-2.5.4 compiled by GNU gcc
3.0.1 anh GNU make 3.79.1 has this size: 4562848.
The same version of rsync compiled by Compaq C compiler V6.3-028 and
Compaq make has this size: 655424.
It is about _7 times_ smaller!

I did a quick test and they seem both working OK.

Is that normal to see a huge difference in binary size produced by gcc
and vendor's C compilers?
Is there any comprehensive test suite so I can test the rsync to make
sure it works before installing into a production server?

Regards,
-- 
Zoong Pham[EMAIL PROTECTED]
UNIX Systems AdministratorMercy Health and Aged Care Inc.

To get my PGP public key, email me with the subject:
Request for Zoong Pham's PGP public key



If you are not the intended  recipient of this communication
please delete and destroy all copies immediately. If you are
the intended recipient of this communication, you should not
copy, disclose or distribute  this communication without the
authority of the sender.

Any views expressed  in this communication  are those of the
individual sender,  except  where  the  sender  specifically
states them to be the views of the Company.

If  you  have  received  this  email  in error or have other
concerns  regarding  this  transmission,  please contact the
Mercy Health  Aged Care Mail Administrator. 

 Mercy Health  Aged Care 
 [EMAIL PROTECTED]  or  +613 9270 2600 




Re: Suspicious sizes by different C compilers

2002-03-18 Thread Zoong Pham

On Tue, Mar 19, 2002 at 01:29:45PM +1100, Martin Pool wrote:
 On 19 Mar 2002, Zoong Pham [EMAIL PROTECTED] wrote:
  It is about _7 times_ smaller!
 
 On gcc, rsync builds by default with debug symbols included.  If you
 strip both executables, they should end up about the same size.

You are right. after strip both executables, they are very much have
the same size.

  Is there any comprehensive test suite so I can test the rsync to
 
 There is make check, but it is not yet as comprehensive as it should
 be.  If you'd like to contribute additional test cases that would be
 great.

I will try.
Thanks for your help, Martin.

Cheers,
-- 
Zoong Pham[EMAIL PROTECTED]
UNIX Systems AdministratorMercy Health and Aged Care Inc.

To get my PGP public key, email me with the subject:
Request for Zoong Pham's PGP public key



If you are not the intended  recipient of this communication
please delete and destroy all copies immediately. If you are
the intended recipient of this communication, you should not
copy, disclose or distribute  this communication without the
authority of the sender.

Any views expressed  in this communication  are those of the
individual sender,  except  where  the  sender  specifically
states them to be the views of the Company.

If  you  have  received  this  email  in error or have other
concerns  regarding  this  transmission,  please contact the
Mercy Health  Aged Care Mail Administrator. 

 Mercy Health  Aged Care 
 [EMAIL PROTECTED]  or  +613 9270 2600