Hello,<br><br>I need to run rsync on a mac (OS X 10.6.5) with the --detect-renamed option available.<br>I therefore started to compile rsync with the 3 relevant patches (in my opinion) : <br> - fileflags.diff<br> - crtimes.diff<br>
- detect-renamed.diff<br>
<br>Here are my exact compile instructions : <br> patch -p1 <patches/fileflags.diff<br> patch -p1 <patches/crtimes.diff<br> patch -p1 <patches/detect-renamed.diff<br> ./prepare-source<br> CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure<br>
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 make<br><br>But the make ends with errors : <br> gcc -std=gnu99 -I. -I. -m32 -DHAVE_CONFIG_H -Wall -W -I./popt -m32 -c compat.c -o compat.o<br> compat.c: In function 'set_allow_inc_recurse':<br>
compat.c:128: error: 'detect_renamed' undeclared (first use in this function)<br> compat.c:128: error: (Each undeclared identifier is reported only once<br> compat.c:128: error: for each function it appears in.)<br>
make: *** [compat.o] Error 1<br><br>I made different tries : <br><br>1/ only the 2 patches 4 mac : ( fileflags.diff & crtimes.diff ) => it works !<br><br>2/ with patches in an other order : detect-renamed.diff & fileflags.diff & crtimes.diff <br>
=> errors but different (but alway in connection with the last applied patch...) <br> gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -Wno-unused-parameter -c compat.c -o compat.o<br> compat.c: In function 'setup_protocol':<br>
compat.c:144: error: 'preserve_crtimes' undeclared (first use in this function)<br> compat.c:144: error: (Each undeclared identifier is reported only once<br> compat.c:144: error: for each function it appears in.)<br>
compat.c:146: error: 'preserve_fileflags' undeclared (first use in this function)<br> compat.c:146: error: 'force_change' undeclared (first use in this function)<br> make: *** [compat.o] Error 1<br><br>
3/ with more patches : <br> fileflags.diff <br> crtimes.diff<br> crtimes-64bit.diff<br> crtimes-hfs+.diff<br> hfs_compression.diff<br> detect-renamed.diff<br>==> same error as the initial test :<br> gcc -std=gnu99 -I. -I. -m32 -DHAVE_CONFIG_H -Wall -W -I./popt -m32 -c compat.c -o compat.o<br>
compat.c: In function 'set_allow_inc_recurse':<br> compat.c:128: error: 'detect_renamed' undeclared (first use in this function)<br> compat.c:128: error: (Each undeclared identifier is reported only once<br>
compat.c:128: error: for each function it appears in.)<br> make: *** [compat.o] Error 1<br><br>Any idea ? I am stuck ...<br><br>many thanks for help !<br><br clear="all">Ben