On Mar 31, 2006, at 8:10 AM, Xiaomei Liu wrote:
I got the zlib and can use "make" now. But still got some compile
problem:
ftio.c: In function 'readn':
ftio.c:2270: error: invalid lvalue in assignment
ftio.c: In function 'writen':
ftio.c:2295: error: invalid lvalue in assignment
I think that's a problem with GCC >= 4.0.1. The attached patch
should help.
diff -urN a/lib/ftio.c b/lib/ftio.c
--- a/lib/ftio.c 2003-02-23 16:51:47.000000000 -0800
+++ b/lib/ftio.c 2006-03-31 11:40:00.000000000 -0800
@@ -2267,7 +2267,8 @@
break;
nleft -= nread;
- (char*)ptr += nread;
+ ptr = (char *)ptr;
+ ptr += nread;
}
return (nbytes - nleft);
} /* readn */
@@ -2292,7 +2293,8 @@
return(nwritten); /* error */
nleft -= nwritten;
- (char*)ptr += nwritten;
+ ptr = (char *)ptr;
+ ptr += nwritten;
}
return(nbytes - nleft);
} /* writen */
To apply:
1. save the patch to your box
2. cd to your flow-tools source directory.
3. run "patch -p1 < /path/to/ftio_char_patch.txt"
4. run make again.
-alex
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools