[Csync2] Compilation trouble on FreeBSD

Aaron Dalton aaron at daltons.ca
Mon May 14 22:26:34 CEST 2007


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!

-- 
Aaron Dalton       |   Super Duper Games
aaron at daltons.ca   |   http://superdupergames.org
-------------- next part --------------
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2007.05.14 14:22:46 =~=~=~=~=~=~=~=~=~=~=~=
./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for rs_sig_file in -lrsync... yes
checking for sqlite_exec in -lsqlite... yes
checking for libgnutls-config... /usr/local/bin/libgnutls-config
checking for libgnutls - version >= 1.0.0... yes
checking for SSL_new in -lgnutls-openssl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
aaron at moondance/~/compile/csync2-1.33: make

bison -y -d -d `test -f 'cfgfile_parser.y' || echo './'`cfgfile_parser.y
if test -f y.tab.h; then  to=`echo "cfgfile_parser_H" | sed  -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'  -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`;  sed "/^#/ s/Y_TAB_H/$to/g" y.tab.h >cfgfile_parser.ht;  rm -f y.tab.h;  if cmp -s cfgfile_parser.ht cfgfile_parser.h; then  rm -f cfgfile_parser.ht ; else  mv cfgfile_parser.ht cfgfile_parser.h;  fi;  fi
if test -f y.output; then  mv y.output cfgfile_parser.output;  fi
sed '/^#/ s|y\.tab\.c|cfgfile_parser.c|' y.tab.c >cfgfile_parser.ct && mv cfgfile_parser.ct cfgfile_parser.c
rm -f y.tab.c
make  all-am
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 action.o -MD -MP -MF ".deps/action.Tpo"  -c -o action.o `test -f 'action.c' || echo './'`action.c;  then mv -f ".deps/action.Tpo" ".deps/action.Po";  else rm -f ".deps/action.Tpo"; exit 1;  fi
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 cfgfile_parser.o -MD -MP -MF ".deps/cfgfile_parser.Tpo"  -c -o cfgfile_parser.o `test -f 'cfgfile_parser.c' || echo './'`cfgfile_parser.c;  then mv -f ".deps/cfgfile_parser.Tpo" ".deps/cfgfile_parser.Po";  else rm -f ".deps/cfgfile_parser.Tpo"; exit 1;  fi
flex   `test -f cfgfile_scanner.l || echo './'`cfgfile_scanner.l
sed '/^#/ s|lex.yy\.c|cfgfile_scanner.c|' lex.yy.c >cfgfile_scanner.c
rm -f lex.yy.c
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 cfgfile_scanner.o -MD -MP -MF ".deps/cfgfile_scanner.Tpo"  -c -o cfgfile_scanner.o `test -f 'cfgfile_scanner.c' || echo './'`cfgfile_scanner.c;  then mv -f ".deps/cfgfile_scanner.Tpo" ".deps/cfgfile_scanner.Po";  else rm -f ".deps/cfgfile_scanner.Tpo"; exit 1;  fi
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 check.o -MD -MP -MF ".deps/check.Tpo"  -c -o check.o `test -f 'check.c' || echo './'`check.c;  then mv -f ".deps/check.Tpo" ".deps/check.Po";  else rm -f ".deps/check.Tpo"; exit 1;  fi
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 checktxt.o -MD -MP -MF ".deps/checktxt.Tpo"  -c -o checktxt.o `test -f 'checktxt.c' || echo './'`checktxt.c;  then mv -f ".deps/checktxt.Tpo" ".deps/checktxt.Po";  else rm -f ".deps/checktxt.Tpo"; exit 1;  fi
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 csync2.o -MD -MP -MF ".deps/csync2.Tpo"  -c -o csync2.o `test -f 'csync2.c' || echo './'`csync2.c;  then mv -f ".deps/csync2.Tpo" ".deps/csync2.Po";  else rm -f ".deps/csync2.Tpo"; exit 1;  fi
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 daemon.o -MD -MP -MF ".deps/daemon.Tpo"  -c -o daemon.o `test -f 'daemon.c' || echo './'`daemon.c;  then mv -f ".deps/daemon.Tpo" ".deps/daemon.Po";  else rm -f ".deps/daemon.Tpo"; exit 1;  fi
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 db.o -MD -MP -MF ".deps/db.Tpo"  -c -o db.o `test -f 'db.c' || echo './'`db.c;  then mv -f ".deps/db.Tpo" ".deps/db.Po";  else rm -f ".deps/db.Tpo"; exit 1;  fi
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 error.o -MD -MP -MF ".deps/error.Tpo"  -c -o error.o `test -f 'error.c' || echo './'`error.c;  then mv -f ".deps/error.Tpo" ".deps/error.Po";  else rm -f ".deps/error.Tpo"; exit 1;  fi
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 getrealfn.o -MD -MP -MF ".deps/getrealfn.Tpo"  -c -o getrealfn.o `test -f 'getrealfn.c' || echo './'`getrealfn.c;  then mv -f ".deps/getrealfn.Tpo" ".deps/getrealfn.Po";  else rm -f ".deps/getrealfn.Tpo"; exit 1;  fi
getrealfn.c: In function `my_get_current_dir_name':
getrealfn.c:36: warning: return makes pointer from integer without a cast
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 groups.o -MD -MP -MF ".deps/groups.Tpo"  -c -o groups.o `test -f 'groups.c' || echo './'`groups.c;  then mv -f ".deps/groups.Tpo" ".deps/groups.Po";  else rm -f ".deps/groups.Tpo"; exit 1;  fi
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

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

Stop in /home/aaron/compile/csync2-1.33.
aaron at moondance/~/compile/csync2-1.33: 


More information about the Csync2 mailing list