[Csync2] Compilation trouble on FreeBSD

Aaron Dalton aaron at daltons.ca
Wed May 16 01:41:01 CEST 2007


Clifford Wolf wrote:
> Hi,
> 
> On Mon, May 14, 2007 at 02:26:34PM -0600, Aaron Dalton wrote:
>> rsync.c: In function `csync_recv_file':
>> rsync.c:85: error: `ENODATA' undeclared (first use in this function)
>> rsync.c:85: error: (Each undeclared identifier is reported only once
>> rsync.c:85: error: for each function it appears in.)
>> *** Error code 1
>>
>> I'm not sure what the problem is here.  Any ideas on how to proceed?
>> Thanks for your time!
> 
> simply change the ENODATA in rsync.c to, lets say, EIO.
> 
> this is just an errno that I'm setting there when something went wrong on
> the other side of the communication link. It is just important that we
> return an error, which specific error isn't that important.
> 
> please report back if this solves the troubles with csync2 of FreeBSD or if
> also other errors accour.
> 
> yours,
>  - clifford
> 

Thank you Clifford and Ruben.  Changing it to EIO seemed to work.  Now
I'm getting the following error:

gcc   -g -O2 -I/usr/local/include -I/usr/local/include
-I/usr/local/include   -L/usr/local/lib -o csync2  action.o
cfgfile_parser.o  cfgfile_scanner.o check.o checktxt.o  csync2.o
daemon.o db.o error.o  getrealfn.o groups.o rsync.o  update.o
urlencode.o conn.o  prefixsubst.o  -lgnutls-openssl -lsqlite -lrsync
-L/usr/local/lib -lgnutls -L/usr/local/lib -lgcrypt -L/usr/local/lib
-lgpg-error -ltasn1
getrealfn.o(.text+0x5): In function `my_get_current_dir_name':
/home/aaron/compile/csync2-1.33/getrealfn.c:36: undefined reference to
`get_current_dir_name'
*** Error code 1

Stop in /home/aaron/compile/csync2-1.33.
*** Error code 1

Stop in /home/aaron/compile/csync2-1.33.

Thanks!
-- 
Aaron Dalton       |   Super Duper Games
aaron at daltons.ca   |   http://superdupergames.org


More information about the Csync2 mailing list