Compilation for mac OS X with detect-renamed.diff patch

Benjamin ANDRE mail1 at sonadresse.com
Sat Dec 18 10:08:05 MST 2010


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>


More information about the rsync mailing list