[Csync2] Compilation trouble on FreeBSD
Ruben Kerkhof
ruben at rubenkerkhof.com
Tue May 15 00:26:52 CEST 2007
On 14-mei-2007, at 22:26, Aaron Dalton wrote:
> I'm trying to create a port for csync2 for FreeBSD. After finding
> what
> I think to be all the dependencies, I have been able to successfully
> configure and begin the make process. A short time in, however, the
> build dies. I am attaching the full build log, but here's the snippet
> in question:
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"'
> -D'ETCDIR="/etc"' -I/usr/local/include -g -O2 -I/usr/local/include
> -I/usr/local/include -I/usr/local/include -MT rsync.o -MD -MP -MF
> ".deps/rsync.Tpo" -c -o rsync.o `test -f 'rsync.c' || echo
> './'`rsync.c; then mv -f ".deps/rsync.Tpo" ".deps/rsync.Po"; else rm
> -f ".deps/rsync.Tpo"; exit 1; fi
> 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!
>
Hi Aaron,
I think ENODATA is not defined on FreeBSD,
you might need to add
#ifndef ENODATA
#define ENODATA ENOMSG
#endif
Ruben
More information about the Csync2
mailing list