From: Craig B. <cba...@us...> - 2004-03-11 16:50:59
|
Michael Keightley writes: > Setup is Solaris 9 machine using BackupPC-2.0.2 and Rsyncd to backup XP machine. > Using ActivePerl 5.8.3 and File-RsyncP-0.46. > > It falls over everytime with this error: > > 2004/3/11 10:58:53 Started full backup on spook (pid=29498, share=dDrive) > 2004/3/11 10:59:06 spook: Cannot compress negative numbers in pack at /home/backuppc/lib/BackupPC/Attrib.pm line 289. > 2004/3/11 10:59:17 Backup failed on spook (Child exited prematurely) > > File-RsyncP-0.44 works fine, though I am having other problems > similar to thread "backuppc runs for a while, then becomes a > zombie". Seems to only affect Solaris, as I have another BackupPC > install on SuSE 9.0, which is working OK with 0.46. It isn't a > problem with the version of Perl, as I have tried it with 3 > different versions. Ok, this was a change I made in 0.46 to support backward compatibility to perl 5.005_03. In File-RsyncP-0.46/FileList/FileList.xs around line 193, change these lines: hv_store(rh, "uid", 3, newSVnv((double)file->uid), 0); hv_store(rh, "gid", 3, newSVnv((double)file->gid), 0); hv_store(rh, "mode", 4, newSVnv((double)file->mode), 0); hv_store(rh, "mtime", 5, newSVnv((double)file->modtime), 0); to hv_store(rh, "uid", 3, newSVnv((double)((unsigned)file->uid)), 0); hv_store(rh, "gid", 3, newSVnv((double)((unsigned)file->gid)), 0); hv_store(rh, "mode", 4, newSVnv((double)((unsigned)file->mode)), 0); hv_store(rh, "mtime", 5, newSVnv((double)((unsigned)file->modtime)), 0); Craig |