Benjamin ANDRE
2010-Dec-18 17:08 UTC
Compilation for mac OS X with detect-renamed.diff patch
Hello, I need to run rsync on a mac (OS X 10.6.5) with the --detect-renamed option available. I therefore started to compile rsync with the 3 relevant patches (in my opinion) : - fileflags.diff - crtimes.diff - detect-renamed.diff Here are my exact compile instructions : patch -p1 <patches/fileflags.diff patch -p1 <patches/crtimes.diff patch -p1 <patches/detect-renamed.diff ./prepare-source CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 make But the make ends with errors : gcc -std=gnu99 -I. -I. -m32 -DHAVE_CONFIG_H -Wall -W -I./popt -m32 -c compat.c -o compat.o compat.c: In function 'set_allow_inc_recurse': compat.c:128: error: 'detect_renamed' undeclared (first use in this function) compat.c:128: error: (Each undeclared identifier is reported only once compat.c:128: error: for each function it appears in.) make: *** [compat.o] Error 1 I made different tries : 1/ only the 2 patches 4 mac : ( fileflags.diff & crtimes.diff ) => it works ! 2/ with patches in an other order : detect-renamed.diff & fileflags.diff & crtimes.diff => errors but different (but alway in connection with the last applied patch...) gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -Wno-unused-parameter -c compat.c -o compat.o compat.c: In function 'setup_protocol': compat.c:144: error: 'preserve_crtimes' undeclared (first use in this function) compat.c:144: error: (Each undeclared identifier is reported only once compat.c:144: error: for each function it appears in.) compat.c:146: error: 'preserve_fileflags' undeclared (first use in this function) compat.c:146: error: 'force_change' undeclared (first use in this function) make: *** [compat.o] Error 1 3/ with more patches : fileflags.diff crtimes.diff crtimes-64bit.diff crtimes-hfs+.diff hfs_compression.diff detect-renamed.diff ==> same error as the initial test : gcc -std=gnu99 -I. -I. -m32 -DHAVE_CONFIG_H -Wall -W -I./popt -m32 -c compat.c -o compat.o compat.c: In function 'set_allow_inc_recurse': compat.c:128: error: 'detect_renamed' undeclared (first use in this function) compat.c:128: error: (Each undeclared identifier is reported only once compat.c:128: error: for each function it appears in.) make: *** [compat.o] Error 1 Any idea ? I am stuck ... many thanks for help ! Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20101218/75261f88/attachment.html>
Possibly Parallel Threads
- --detect-renamed for mac users : proposition of a modification
- patch for combining detect-renamed and fileflags patches (fwd)
- Revised flags patch
- [PATCH] xattrs not set on locked files that already exist on target
- Mac OS X : "get_xattr_names: llistxattr("some/path/here", 1024) failed" error