Compiling worked after adding some mmap includes (see patch)! But the
strange thing now is, that the actual build doesn't seem to work. It outputs
strange errors which I can't interpret. It still seems to have problems with
mmap?!

*****

Lena:test fluppel$ rsyncrypto UniSG/ ./crypt/ ~/ ~/.rsyncrypto.crt
mmap failed: Invalid argument
Lena:test fluppel$ rsyncrypto PS8901-1.pdf PS8901-1.pdf.crypt
~/.rsyncrypto.key ~/.rsyncrypto.crt
Invalid version magic:
Lena:~ fluppel$ rsyncrypto
Incorrect arguments
rsyncrypto 1.10  [-hVvdrc] <src> <dst> <key> <master key>
[--modify-window=<n>] [--export-changes=log_file] [-n translation_file]
[--ne-nesting=<n>] [--trim=<n>] [--delete] [--delete-keys] [--filelist] [-b
<n>] [--fr] [--fk] [--no-archive-mode] [--gzip=<file>] Advanced options:
[--roll-win=<n>] [--roll-min=<n>] [--roll-sensitivity=<n>]

<src>                  Source file or directory (or filelist)
<dst>                  Destination file or directory
<key>                  Keys file or directory
<master key>           Master key (public key certificate or private key)
-h, --help             Display this page.
-V, --version          Display the rsyncrypto version.
-v, --verbose          Produce more verbose output. Specify repeatedly for
more verbosity
-d, --decrypt          Decrypt
-r, --recurse          <src> <dst> and <keys> are directory names, and are
processed recursively
-c, --changed          Only encrypt changed files. Requires -r or --filelist
--modify-window=<n>    compare mod-times with reduced accuracy
--export-changes=log_file Write list of affected files to a log file
-n, --name-encrypt=translation_file Encrypt file names
--ne-nesting=<n>       set the hash directory tree depth when encrypting
file names
--trim=<n>             Number of directory entries to trim from the begining
of the path. Default 1
--delete               Delete files under <dst> not under <src>. Requires -r
--delete-keys          Delete also the keys. Implies --delete
--filelist             <src> is a list of file and directory names to
process. "-" means read from stdin.
-b, --keybits=<n>      Size of key to create. Encryption only
--fr                   Force new rollover parameters, even if previous
encryption used a different setting.
--fk                   Force a new key size, even if previous encryption
used a different setting.
--no-archive-mode      Do not try to preserve timestamps
--gzip=<file>          Path to gzip-like program to use. Must accept a
--rsyncable command option
Advanced options:
--roll-win=<n>         Rollover window size. Default is 8192 byte
--roll-min=<n>         Minimal number of guaranteed non-rolled bytes.
Default 8192
--roll-sensitivity=<n> How sensitive are we to cutting a block. Default is
"roll-win"


On Sat, Jun 21, 2008 at 6:11 AM, Shachar Shemesh <[EMAIL PROTECTED]>
wrote:

> Philippe Niquille wrote:
>
>> Hmm I applied your patch and I still get the following:
>>
>> make  all-am
>> g++ -DHAVE_CONFIG_H -I.   -I../openssl-0.9.8h//include
>> -I../argtable2-9/src  -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o
>> main.o main.cpp
>> autommap.h: In constructor 'autommap::autommap(void*, size_t, int, int,
>> int, off_t)':
>> autommap.h:37: error: 'mmap' was not declared in this scope
>> autommap.h: In constructor 'autommap::autommap(file_t, int)':
>> autommap.h:53: error: 'MAP_SHARED' was not declared in this scope
>> autommap.h: In member function 'void autommap::clear()':
>> autommap.h:87: error: 'munmap' was not declared in this scope
>> make[1]: *** [main.o] Error 1
>> make: *** [all] Error 2
>>
>> I am on OS X 10.5.3, Intel.. Any idea?
>>
> Clearly, your development environment require a different include for
> "mmap" than mine. Either find out what that include is (man mmap may help
> you, recursive grep over the /usr/include folder if all else fails), or give
> me access to your environment. Feel free to upgrade my Mac to Leopard, pay
> pal donations welcome ;-)
>
> Shachar
>

Attachment: osx_10.5.3.patch
Description: Binary data

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Rsyncrypto-devel mailing list
Rsyncrypto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsyncrypto-devel

Reply via email to