The build for rsync fails on FreeBSD with older gcc versions due to a syntax error. This A pure C compiler doesn't allow C++ style in-line declarations, we need a curly brace to scope the declaration of name_len here: --- flist.c Mon Feb 21 12:20:58 2011 +++ ../flist.c Fri Apr 1 12:33:18 2011 @@ -1651,4 +1651,5 @@ || (dname[1] == '.' && dname[2] == '\0'))) continue; + { unsigned name_len = strlcpy(p, dname, remainder); if (name_len >= remainder) { @@ -1671,4 +1672,5 @@ send_file_name(f, flist, fbuf, NULL, flags, filter_level); + } }
Created attachment 6397 [details] Move the var declaration up
I checked-in a fix for this a little while ago on the git master branch. Attached is a patch for 3.0.8.
*** Bug 8073 has been marked as a duplicate of this bug. ***