Hi All, Well, we compiled pre9 on an intel Mac running Tiger and now it does work on the machine. I need to see if that will now work on a PPC mac though. Hopefully it will but I am wondering if there is a way to compile and make a universal binary rsync for the Mac that will run on both, from my PPC Mac. Itried that yesterday with patch -p1 <patches/flags.diff patch -p1 <patches/crtimes.diff ./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" make but it didn't work on the intel. Does anyone have any experience with making a universal binary of rsync?
Just an update, I have confirmed that rsync compiled on an intel won't work on PPC and vice versa. A lot of people have both kinds of macs so it would be good to have a universal binary for rsync 3.0, otherwise it means two separate rsync builds. So any help on compiling a universal rsync for macs would be much appreciated. The web page at ADC explains about this but I don't have knowledge in that area. Thanks Rob ADC article on compiling for multiple architectures: http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html Begin forwarded message:> From: Robert DuToit <rdutoit@capecod.net> > Date: February 20, 2008 7:29:05 AM EST > To: rsync@lists.samba.org > Subject: OSX universal rsync > > Hi All, > Well, we compiled pre9 on an intel Mac running Tiger and now it > does work on the machine. I need to see if that will now work on a > PPC mac though. Hopefully it will but I am wondering if there is a > way to compile and make a universal binary rsync for the Mac that > will run on both, from my PPC Mac. Itried that yesterday with > > patch -p1 <patches/flags.diff > patch -p1 <patches/crtimes.diff > ./configure > CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch > i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch > ppc -arch i386" make > > > but it didn't work on the intel. Does anyone have any experience > with making a universal binary of rsync?
Robert DuToit wrote:> Hi All, > Good news on rsync3.0pre10 universal binary > > On Feb 20, 2008, at 8:55 PM, Brendan Grieve wrote: > >> >> Robert DuToit wrote: >>> Just an update, >>> >>> I have confirmed that rsync compiled on an intel won't work on PPC >>> and vice versa. A lot of people have both kinds of macs so it would >>> be good to have a universal binary for rsync 3.0, otherwise it means >>> two separate rsync builds. So any help on compiling a universal >>> rsync for macs would be much appreciated. The web page at ADC >>> explains about this but I don't have knowledge in that area. Thanks Rob >>> >>> >>> ------8< snip -------------- >> Is such a thing possible? I would assume that the vastly different >> architecture changes between Intel and PPC would not make this >> possible unless the Mac has some form of 'emulator'? > > Actually I just did it with > > >patch -p1 <patches/flags.diff > >patch -p1 <patches/crtimes.diff > >./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch > ppc -arch i386" LD="gcc -mmacosx-version-min=10.4 -isysroot $SDK > -nostartfiles -arch i386 -arch ppc" > >make > > I ran "file" on it and > > dialup-4:~ astrid$ file /Users/astrid/Desktop/unisink/rsync > /Users/astrid/Desktop/unisink/rsync: Mach-O universal binary with 2 > architectures > /Users/astrid/Desktop/unisink/rsync (for architecture ppc): Mach-O > executable ppc > /Users/astrid/Desktop/unisink/rsync (for architecture i386): Mach-O > executable i386 > > it took some research to find the right configure options. I have > tested it so far on PPC Mac, Tiger and Leopard, and Intel Mac Tiger, > and it works like a breeze. I await confirmation on Intel leopard with > fingers crossed. Thanks everyone, Rob > > PS I hope no one thought I meant intel as in Windows! >Well done ;-) I learned something new today. I was unaware a file could support more than one architecture. Brendan Grieve
On Feb 20, 2008, at 10:24 PM, Brendan Grieve wrote:> Robert DuToit wrote: >> Hi All, >> Good news on rsync3.0pre10 universal binary >> >> On Feb 20, 2008, at 8:55 PM, Brendan Grieve wrote: >> >>> >>> Robert DuToit wrote: >>>> Just an update, >>>> >>>> I have confirmed that rsync compiled on an intel won't work on >>>> PPC and vice versa. A lot of people have both kinds of macs so it >>>> would be good to have a universal binary for rsync 3.0, otherwise >>>> it means two separate rsync builds. So any help on compiling a >>>> universal rsync for macs would be much appreciated. The web page >>>> at ADC explains about this but I don't have knowledge in that >>>> area. Thanks Rob >>>> >>>> >>>> ------8< snip -------------- >>> Is such a thing possible? I would assume that the vastly different >>> architecture changes between Intel and PPC would not make this >>> possible unless the Mac has some form of 'emulator'? >> >> Actually I just did it with >> >> >patch -p1 <patches/flags.diff >> >patch -p1 <patches/crtimes.diff >> >./configure CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk - >> arch ppc -arch i386" LD="gcc -mmacosx-version-min=10.4 -isysroot >> $SDK -nostartfiles -arch i386 -arch ppc" >> >make >> >> I ran "file" on it and >> >> dialup-4:~ astrid$ file /Users/astrid/Desktop/unisink/rsync >> /Users/astrid/Desktop/unisink/rsync: Mach-O universal binary with 2 >> architectures >> /Users/astrid/Desktop/unisink/rsync (for architecture ppc): Mach- >> O executable ppc >> /Users/astrid/Desktop/unisink/rsync (for architecture i386): >> Mach-O executable i386 >> >> it took some research to find the right configure options. I have >> tested it so far on PPC Mac, Tiger and Leopard, and Intel Mac >> Tiger, and it works like a breeze. I await confirmation on Intel >> leopard with fingers crossed. Thanks everyone, Rob >> >> PS I hope no one thought I meant intel as in Windows! >> > > Well done ;-) I learned something new today. I was unaware a file > could support more than one architecture.congratulations are not quite in order- I just found that creation times are not preserved on the PPC Mac but they are on the intel. This has been a quagmire. At least they all compile and copy files but not sure why they have PPC support (they were compiled on the PPC!) but lose the creation times. Sure wish there was someone with more know how on this subject. Back to the races. Rob> > > Brendan Grieve >