Re: Big Help

Martin Pool <[email protected]> Fri, 16 Mar 2012 15:12:04 +1100
Newsgroups gmane.network.librsync.general
Message-ID <CAA9uavBXdcvBAaTZCfLTKXjk+ZxEo81_wM6+DKBjrYgK04xHOg@mail.gmail.com>
--===============5043329681787828145==
Content-Type: multipart/alternative; boundary=f46d04088e9f12a24e04bb546bc0

--f46d04088e9f12a24e04bb546bc0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi, please have a read through <
http://catb.org/esr/faqs/smart-questions.html<http://catb.org/esr/faqs/smar=
t-questions.html#id478703>>.
 The advice there will help a lot throughout your career.  Especially <
http://catb.org/esr/faqs/smart-questions.html#noprivate>.

What do you think these errors mean?

-m

On 16 March 2012 13:48, malinda sanjaka <[email protected]> wrote:

> Hi Martin,,
>
> I change position of the header file and copy the rsync.h file into
> /usr/include folder,
> I checked that librsysnc.h file, which is in the /usr/include folder.
>
> now my code is like this-----------------------------
>
> #include<stdlib.h>
> #include<stdio.h>
> #include<rsync.h>
> #include<librsync.h>
>
>
> #define BLOCK_LEN  RS_DEFAULT_BLOCK_LEN
> #define STRONG_LEN  RS_DEFAULT_STRONG_LEN
>
> rs_result patch(FILE * delta_file, FILE * basis_file)
> {
>     FILE                *new_file;
>     rs_stats_t          stats;
>     rs_result           result;
>
>     rewind(basis_file);
>     rewind(delta_file);
>     new_file =3D (FILE*)  rs_file_open("recons.bin", "wb");
>
>     result =3D rs_patch_file(basis_file, delta_file, new_file, &stats);
>
>     rs_file_close(new_file);
>
>     rs_log_stats(&stats);
>
>     return result;
> }
>
> rs_result delta(FILE * sig_file, FILE * basis_file)
> {
>         FILE            *new_file, *delta_file;
>         char const      *sig_name;
>         rs_result       result;
>         rs_signature_t  *sumset;
>         rs_stats_t      stats;
>
>         rewind(sig_file);
>         new_file =3D (FILE *)  rs_file_open("a.bin", "rb");
>         delta_file =3D (FILE*) rs_file_open("delta.txt", "wb+");
>
>         result =3D rs_loadsig_file(sig_file, &sumset, &stats);
>         if (result !=3D RS_DONE)
>                 return result;
>
>         rs_log_stats(&stats);
>
>         if ((result =3D rs_build_hash_table(sumset)) !=3D RS_DONE)
>                 return result;
>
>         result =3D rs_delta_file(sumset, new_file, delta_file, &stats);
>
>         rs_free_sumset(sumset);
>
>         rs_file_close(new_file);
>
>         rs_log_stats(&stats);
>
>         patch(delta_file, basis_file);
>         rs_file_close(delta_file);
>
>         return result;
> }
>
>
> int main(){
>
>         FILE            *basis_file, *sig_file;
>         rs_stats_t      stats;
>         rs_result       result;
>
>         printf("Tamanho default do bloco do rsync =3D ");
>         printf("%d\n",BLOCK_LEN);
>
>         basis_file =3D (FILE *) rs_file_open("b.bin", "rb+");
>         sig_file =3D (FILE *) rs_file_open("sig.txt", "wb+");
>
>         result =3D rs_sig_file(basis_file, sig_file, BLOCK_LEN, STRONG_LE=
N,
> &stats);
>
>         if(result !=3D RS_DONE)
>                 printf("%s\n",rs_strerror(result));
>
>         rs_log_stats(&stats);
>
>         delta(sig_file, basis_file);
>
>         rs_file_close(sig_file);
>         rs_file_close(basis_file);
> }
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Error shows as below .
> ----------------------------------------------------------------
>
>
> test2.c: In function =E2=80=98patch=E2=80=99:
> test2.c:17:16: warning: cast to pointer from integer of different size
> [-Wint-to-pointer-cast]
> test2.c: In function =E2=80=98delta=E2=80=99:
> test2.c:37:20: warning: cast to pointer from integer of different size
> [-Wint-to-pointer-cast]
> test2.c:38:22: warning: cast to pointer from integer of different size
> [-Wint-to-pointer-cast]
> test2.c: In function =E2=80=98main=E2=80=99:
> test2.c:73:22: warning: cast to pointer from integer of different size
> [-Wint-to-pointer-cast]
> test2.c:74:20: warning: cast to pointer from integer of different size
> [-Wint-to-pointer-cast]
> /tmp/ccgpJmBc.o: In function `patch':
> test2.c:(.text+0x47): undefined reference to `rs_file_open'
> test2.c:(.text+0x6b): undefined reference to `rs_patch_file'
> test2.c:(.text+0x7f): undefined reference to `rs_file_close'
> test2.c:(.text+0x8b): undefined reference to `rs_log_stats'
> /tmp/ccgpJmBc.o: In function `delta':
> test2.c:(.text+0xcc): undefined reference to `rs_file_open'
> test2.c:(.text+0xe6): undefined reference to `rs_file_open'
> test2.c:(.text+0x109): undefined reference to `rs_loadsig_file'
> test2.c:(.text+0x129): undefined reference to `rs_log_stats'
> test2.c:(.text+0x135): undefined reference to `rs_build_hash_table'
> test2.c:(.text+0x15e): undefined reference to `rs_delta_file'
> test2.c:(.text+0x16d): undefined reference to `rs_free_sumset'
> test2.c:(.text+0x17e): undefined reference to `rs_file_close'
> test2.c:(.text+0x18d): undefined reference to `rs_log_stats'
> test2.c:(.text+0x1b4): undefined reference to `rs_file_close'
> /tmp/ccgpJmBc.o: In function `main':
> test2.c:(.text+0x201): undefined reference to `rs_file_open'
> test2.c:(.text+0x21b): undefined reference to `rs_file_open'
> test2.c:(.text+0x245): undefined reference to `rs_sig_file'
> test2.c:(.text+0x258): undefined reference to `rs_strerror'
> test2.c:(.text+0x26f): undefined reference to `rs_log_stats'
> test2.c:(.text+0x293): undefined reference to `rs_file_close'
> test2.c:(.text+0x2a4): undefined reference to `rs_file_close'
>
>
>
>   ------------------------------
> *From:* Martin Pool <[email protected]>
> *To:* malinda sanjaka <[email protected]>; librsync-users <
> [email protected]>
> *Sent:* Thursday, March 15, 2012 8:33 PM
> *Subject:* Re: Big Help
>
> Hi,
>
> The best tutorial is probably to look at rdiff.c shipped in the librsync
> source.
>
> Is this for a university assignment or something?
>
> If you want more help you're going to have to be more specific about
> what's going wrong.
>
> m
>
>
> On 16 March 2012 12:25, malinda sanjaka <[email protected]> wrote:
>
> Hi Martin,
> First, Thank lot for your reply and I highly admire that your advise,
>
> Last few week, I tried to access the librsync library but still I couldn'=
t
> access it properly.
>
> my basic requirement is that uses the librsync library and write a simple
> file synchornization program between two host by using C/C++ programming
> language,
>
> do you have any simple code sample (Tutorial) and that I like to know
> proper way of install the librsync library, what are the other dependent
> program on linux that I want to install with librsync.
>
>
> Please help me, this might be big help at this momement.
>
>
> Thank you so much,
>
> Regards,
> Malinda Sanjaka.
>
>
>
>   ------------------------------
> *From:* Martin Pool <[email protected]>
> *To:* malinda sanjaka <[email protected]>
> *Cc:* "[email protected]" <
> [email protected]>
> *Sent:* Thursday, March 15, 2012 5:14 PM
> *Subject:* Re: [librsync-users] Help!!!-solve this problem in librsysnc
> library
>
> On 4 March 2012 07:46, malinda sanjaka <[email protected]> wrote:
>
> ---------------------------------------------------------
> /usr/include/librsync.h:367: error: expected =E2=80=98)=E2=80=99 before =
=E2=80=98*=E2=80=99 token
> /usr/include/librsync.h:369: error: expected =E2=80=98)=E2=80=99 before =
=E2=80=98*=E2=80=99 token
> /usr/include/librsync.h:372: error: expected =E2=80=98)=E2=80=99 before =
=E2=80=98*=E2=80=99 token
> --------------------------------------------------------
>
>
> Often this means you're not including a depended-upon header file, and yo=
u
> should:
>
> - look at the specified line of the header file and see what token it's
> talking about
> - work out which header defines that name
> - include it, or work out why it's not being read correctly
>
> So, what's on that line?
>
> --
> Martin
>
>
>
>
>
>
> --
> Martin
>
>
>
>


--=20
Martin

--f46d04088e9f12a24e04bb546bc0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi, please have a read through &lt;<a href=3D"http://catb.org/esr/faqs/smar=
t-questions.html#id478703">http://catb.org/esr/faqs/smart-questions.html</a=
>&gt;. =C2=A0The advice there will help a lot throughout your career. =C2=
=A0Especially &lt;<a href=3D"http://catb.org/esr/faqs/smart-questions.html#=
noprivate">http://catb.org/esr/faqs/smart-questions.html#noprivate</a>&gt;.=
<div>

<br></div><div>What do you think these errors mean?</div><div><br></div><di=
v>-m=C2=A0<br><div><br><div class=3D"gmail_quote">On 16 March 2012 13:48, m=
alinda sanjaka <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">=
[email protected]</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div><div style=3D"font-size:12pt;font-famil=
y:times new roman,new york,times,serif">Hi Martin,,<br><br>I change positio=
n of the header file and copy the rsync.h file into /usr/include folder,<br=
>

I checked that librsysnc.h file, which is in the /usr/include folder.<br><b=
r>now my code is like this-----------------------------<div class=3D"im"><b=
r>#include&lt;stdlib.h&gt;<br>#include&lt;stdio.h&gt;<br>#include&lt;rsync.=
h&gt;<br>

</div>#include&lt;librsync.h&gt;<div><div class=3D"h5"><br><br>#define BLOC=
K_LEN=C2=A0 RS_DEFAULT_BLOCK_LEN<br>#define STRONG_LEN=C2=A0 RS_DEFAULT_STR=
ONG_LEN<br><br>rs_result patch(FILE * delta_file, FILE * basis_file)<br>{<b=
r>=C2=A0=C2=A0=C2=A0 FILE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 *new_file;<br>

=C2=A0=C2=A0=C2=A0 rs_stats_t=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 stats;<br>=C2=A0=C2=A0=C2=A0 rs_result=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
 result;<br><br>=C2=A0=C2=A0=C2=A0 rewind(basis_file);<br>=C2=A0=C2=A0=C2=
=A0 rewind(delta_file);<br>=C2=A0=C2=A0=C2=A0 new_file =3D (FILE*)=C2=A0 rs=
_file_open(&quot;recons.bin&quot;, &quot;wb&quot;);<br><br>=C2=A0=C2=A0=C2=
=A0 result =3D rs_patch_file(basis_file, delta_file, new_file, &amp;stats);=
<br>

<br>=C2=A0=C2=A0=C2=A0 rs_file_close(new_file);<br><br>=C2=A0=C2=A0=C2=A0 r=
s_log_stats(&amp;stats);<br><br>=C2=A0=C2=A0=C2=A0 return result;<br>}<br><=
br>rs_result delta(FILE * sig_file, FILE * basis_file)<br>{<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 FILE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 *new_file, *delta_file;<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 char const=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 *sig_name=
;<br>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_result=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 result;<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_si=
gnature_t=C2=A0 *sumset;<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
 rs_stats_t=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 stats;<br><br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 rewind(sig_file);<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 new_file =3D (FILE *)=C2=A0 rs_file_open(&quot;a.bin&quot;,=
 &quot;rb&quot;);<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 delta_file =
=3D (FILE*) rs_file_open(&quot;delta.txt&quot;, &quot;wb+&quot;);<br>

<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 result =3D rs_loadsig_file(s=
ig_file, &amp;sumset, &amp;stats);<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 if (result !=3D RS_DONE)<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return result;<br><br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_log_stats(&amp;stats);<br><br=
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if ((result =3D rs_build_hash_t=
able(sumset)) !=3D RS_DONE)<br>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 return result;<br><br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 result =3D
 rs_delta_file(sumset, new_file, delta_file, &amp;stats);<br><br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_free_sumset(sumset);<br><br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_file_close(new_file);<br>=C2=A0<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_log_stats(&amp;stats);<br><br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 patch(delta_file, basis_file);<b=
r>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_file_close(delta_file);<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 return result;<br>}<br><br><br>int main(){<br><br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 FILE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 *basis_file, *sig_file;<br>=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 rs_stats_t=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 stats;<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_result=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 result;<br>

<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
 printf(&quot;Tamanho default do bloco do rsync =3D &quot;);<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 printf(&quot;%d\n&quot;,BLOCK_LEN);<br><b=
r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 basis_file =3D (FILE *) rs_fil=
e_open(&quot;b.bin&quot;, &quot;rb+&quot;);<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 sig_file =3D (FILE *) rs_file_open(&quot;sig.txt&quot;, &qu=
ot;wb+&quot;);<br>

<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 result =3D rs_sig_file(basis=
_file, sig_file, BLOCK_LEN, STRONG_LEN, &amp;stats);<br><br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 if(result !=3D RS_DONE)<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pr=
intf(&quot;%s\n&quot;,rs_strerror(result));<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 <br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_log_stats(&amp;=
stats);<br>

<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 delta(sig_file, basis_file);=
<br><br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rs_file_close(sig_file);=
<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
 rs_file_close(basis_file);<br>}<br><br></div></div>=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D<br>Error shows as below .<br>------------------------------------=
----------------------------<br>=C2=A0<br><br>test2.c: In function =E2=80=
=98patch=E2=80=99:<br>

test2.c:17:16: warning: cast to pointer from integer of different size [-Wi=
nt-to-pointer-cast]<br>test2.c: In function =E2=80=98delta=E2=80=99:<br>tes=
t2.c:37:20: warning: cast to pointer from integer of different size [-Wint-=
to-pointer-cast]<br>

test2.c:38:22: warning: cast to pointer from integer of different size [-Wi=
nt-to-pointer-cast]<br>test2.c: In function =E2=80=98main=E2=80=99:<br>test=
2.c:73:22: warning: cast to pointer from integer of different size [-Wint-t=
o-pointer-cast]<br>

test2.c:74:20: warning: cast to pointer from integer of different size [-Wi=
nt-to-pointer-cast]<br>/tmp/ccgpJmBc.o: In function `patch&#39;:<br>test2.c=
:(.text+0x47): undefined reference to `rs_file_open&#39;<br>test2.c:(.text+=
0x6b): undefined reference to
 `rs_patch_file&#39;<br>test2.c:(.text+0x7f): undefined reference to `rs_fi=
le_close&#39;<br>test2.c:(.text+0x8b): undefined reference to `rs_log_stats=
&#39;<br>/tmp/ccgpJmBc.o: In function `delta&#39;:<br>test2.c:(.text+0xcc):=
 undefined reference to `rs_file_open&#39;<br>

test2.c:(.text+0xe6): undefined reference to `rs_file_open&#39;<br>test2.c:=
(.text+0x109): undefined reference to `rs_loadsig_file&#39;<br>test2.c:(.te=
xt+0x129): undefined reference to `rs_log_stats&#39;<br>test2.c:(.text+0x13=
5): undefined reference to `rs_build_hash_table&#39;<br>

test2.c:(.text+0x15e): undefined reference to `rs_delta_file&#39;<br>test2.=
c:(.text+0x16d): undefined reference to `rs_free_sumset&#39;<br>test2.c:(.t=
ext+0x17e): undefined reference to `rs_file_close&#39;<br>test2.c:(.text+0x=
18d): undefined reference to `rs_log_stats&#39;<br>

test2.c:(.text+0x1b4): undefined reference to `rs_file_close&#39;<br>/tmp/c=
cgpJmBc.o: In function `main&#39;:<br>test2.c:(.text+0x201): undefined refe=
rence to `rs_file_open&#39;<br>test2.c:(.text+0x21b):
 undefined reference to `rs_file_open&#39;<br>test2.c:(.text+0x245): undefi=
ned reference to `rs_sig_file&#39;<br>test2.c:(.text+0x258): undefined refe=
rence to `rs_strerror&#39;<br>test2.c:(.text+0x26f): undefined reference to=
 `rs_log_stats&#39;<br>

test2.c:(.text+0x293): undefined reference to `rs_file_close&#39;<br>test2.=
c:(.text+0x2a4): undefined reference to `rs_file_close&#39;<br><br><div><br=
><input type=3D"hidden"><input type=3D"hidden"></div><div></div><br>  <div =
style=3D"font-family:times new roman,new york,times,serif;font-size:12pt">

 <div style=3D"font-family:times new roman,new york,times,serif;font-size:1=
2pt"> <div dir=3D"ltr"> <font face=3D"Arial"><div class=3D"im"> <hr size=3D=
"1">  <b><span style=3D"font-weight:bold">From:</span></b> Martin Pool &lt;=
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<=
/a>&gt;<br>

 </div><div class=3D"im"><b><span style=3D"font-weight:bold">To:</span></b>=
 malinda sanjaka &lt;<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a>&gt;; librsync-users &lt;<a href=3D"mailto:librsync=
[email protected]" target=3D"_blank">[email protected]=
forge.net</a>&gt; <br>


 <b><span style=3D"font-weight:bold">Sent:</span></b> Thursday, March 15, 2=
012 8:33 PM<br> <b><span style=3D"font-weight:bold">Subject:</span></b> Re:=
 Big Help<br> </div></font> </div><div><div class=3D"h5"> <br>
<div>Hi,<div><br></div><div>The best tutorial is probably to look at rdiff.=
c shipped in the librsync source.</div><div><br></div><div>Is this for a un=
iversity assignment or something?<br></div><div><br></div><div>If you want =
more help you&#39;re going to have to be more specific about what&#39;s goi=
ng wrong.</div>



<div><br></div><div>m</div><div><br><br><div>On 16 March 2012 12:25, malind=
a sanjaka <span dir=3D"ltr">&lt;<a rel=3D"nofollow" href=3D"mailto:msanjaka=
@yahoo.com" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><=
blockquote style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex">



<div><div style=3D"font-size:12pt;font-family:times new roman,new york,time=
s,serif"><div><span>Hi Martin,</span></div><div><span>First, Thank lot for =
your reply and </span>I highly admire that your advise, <br><input type=3D"=
hidden"><input type=3D"hidden"></div>



<div></div><br>Last few week, I tried to access the librsync library but st=
ill I couldn&#39;t access it properly.<br><br>my basic requirement is that =
uses the librsync library and write a simple file synchornization program b=
etween two host by using C/C++ programming language, <br>



<br>do you have any simple code sample (Tutorial) and that I like to know p=
roper way of install the librsync library, what are the other dependent pro=
gram on linux that I want to install with librsync.<br><br><br>Please help =
me, this might be big help at this momement.<br>



<br><br>Thank you so much,<br><br>Regards,<br>Malinda
 Sanjaka.<br><br><br><br>  <div style=3D"font-family:times new roman,new yo=
rk,times,serif;font-size:12pt"> <div style=3D"font-family:times new roman,n=
ew york,times,serif;font-size:12pt"> <div dir=3D"ltr"> <font face=3D"Arial"=
> <hr size=3D"1">



  <b><span style=3D"font-weight:bold">From:</span></b> Martin Pool &lt;<a r=
el=3D"nofollow" href=3D"mailto:[email protected]" target=3D"_blank">mbp@so=
urcefrog.net</a>&gt;<br> <b><span style=3D"font-weight:bold">To:</span></b>=
 malinda sanjaka &lt;<a rel=3D"nofollow" href=3D"mailto:[email protected]"=
 target=3D"_blank">[email protected]</a>&gt; <br>



<b><span style=3D"font-weight:bold">Cc:</span></b> &quot;<a rel=3D"nofollow=
" href=3D"mailto:[email protected]" target=3D"_blank">li=
[email protected]</a>&quot; &lt;<a rel=3D"nofollow" href=
=3D"mailto:[email protected]" target=3D"_blank">librsync=
[email protected]</a>&gt; <br>



 <b><span style=3D"font-weight:bold">Sent:</span></b> Thursday, March 15, 2=
012 5:14 PM<br> <b><span style=3D"font-weight:bold">Subject:</span></b> Re:=
 [librsync-users] Help!!!-solve this problem in librsysnc library<br> </fon=
t> </div>



 <br>
<div><div>On 4 March 2012 07:46, malinda sanjaka <span dir=3D"ltr">&lt;<a r=
el=3D"nofollow" href=3D"mailto:[email protected]" target=3D"_blank">msanja=
[email protected]</a>&gt;</span> wrote:<br><blockquote style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex">





<div>---------------------------------------------------------<br>/usr/incl=
ude/librsync.h:367: error: expected =E2=80=98)=E2=80=99 before =E2=80=98*=
=E2=80=99 token<br>/usr/include/librsync.h:369: error: expected =E2=80=98)=
=E2=80=99 before =E2=80=98*=E2=80=99
 token<br>/usr/include/librsync.h:372: error: expected =E2=80=98)=E2=80=99 =
before =E2=80=98*=E2=80=99 token<br>---------------------------------------=
----------------- </div></blockquote></div><div><br></div>Often this means =
you&#39;re not including a depended-upon header file, and you should:<div>





<br></div><div>- look at the specified line of the header file and see what=
 token it&#39;s talking about=C2=A0</div><div>- work out which header defin=
es that name=C2=A0</div><div>- include it, or work out why it&#39;s not bei=
ng read correctly</div>





<div><br></div><div>So, what&#39;s on that line?</div><span><font color=3D"=
#888888"><div><div><br></div>-- <br>Martin<br><br>
</div>
</font></span></div><br><br> </div> </div>  </div></div></blockquote></div>=
<br><br clear=3D"all"><div><br></div>-- <br>Martin<br><br>
</div>
</div><br><br> </div></div></div> </div>  </div></div></blockquote></div><b=
r><br clear=3D"all"><div><br></div>-- <br>Martin<br><br>
</div></div>

--f46d04088e9f12a24e04bb546bc0--


--===============5043329681787828145==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
--===============5043329681787828145==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
librsync-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/librsync-users

--===============5043329681787828145==--