SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
fails on powerpc with some files
Author Message
Post fails on powerpc with some files 
Hi,

I tried to register twice on librsync list but it didn't want to accept my
confirmation...

Anyway, I was having a lot of UpdateErrors with rdiff-backup on
Gentoo Linux/powerpc. On x86, works great. Simply touching the
file (i.e. changing its timestamps) can lead to these errors.

When I added a fprintf to help debugging, I found that the addition
of the fprintf "solves" magically the problem.

I relaxed the optimization and even try with -O0 but I never
got it able to work. I tried with both gcc 3.3.3 and 3.4. I will
probably install gcc 2.95 to try out...

Any clue?


bash-2.05b# diff -u buf.c.orig buf.c.fprintf
--- buf.c.orig 2004-07-11 17:34:56.000000000 -0400
+++ buf.c.fprintf 2004-07-11 17:34:56.000000000 -0400
< at > < at > -206,6 +206,8 < at > < at >
int got;
FILE *f = (FILE *) arg;

+ fprintf(stderr, "yo\n");
+
if (fseek(f, pos, SEEK_SET)) {
rs_log(RS_LOG_ERR, "seek failed: %s", strerror(errno));
return RS_IO_ERROR;


David

---

David Bélanger
Graduate Student
School of Computer Science
McGill University
Office: MC226

Web page: http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB