Mikael Forsgren wrote:
> I'm experiencing difficulties installing rsyncrypto under Mac OS X
> (10.4.5). I have installed argtable2 from source with out problems,
> and the /./configure/ of the rsyncrpyto 0.17 runs smoothly (with the
> /gzip --rsyncable/ missing, not needed for make according to the
> ./configure script). When I issue the /make/ i get this reply:
> ~/rsyncrypto-0.17 root# make
> g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c main.cpp
> In file included from main.cpp:32:
> rsyncrypto.h:33:2: error: #error Unsupported platform
> rsyncrypto.h:199:2: error: #error Unsupported platform
> Any ideas?
Ok, I'm going to need a little of your help with this one.
First, I would like to point out that I'm trying to get a Mac Mini so I
can turn the Mac into a supported platform. It seems Apple has put a
hold on all Mac Minis in Israel, either through the official
distributers OR from private importers. If anyone has any idea how to
bypass this problem, please contact me (privately).
The error you get is the result of the following code:
> #if defined(__unix__)
> #elif defined(_WIN32)
> #error Unsupported platform
It seems your build environment defines neither __unix__ nor _WIN32.
While I do understand the later, as far as my understanding goes, Posix
compiled Mac OS-X programs should just assume they are running on Unix.
Please let me know the following:
1. What build environment are you using? Is it gcc, or something else?
If so, what?
2. Do you know what predefined compiler declarations exist for said
3. Are you trying to compile rsyncrypto as a posix or as a native (coca?
I don't even know the name) application. If the later, can you try again
as a Posix application?
4. Try to force-define the symbol __unix__, and see whether rsyncrypto
compiles fine, or whether other problems pop up as a result.
Lingnu Open Source Consulting ltd.
Have you backed up today's work? http://www.lingnu.com/backup.html