<font><font face="tahoma,sans-serif">Hello,</font></font><div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif">sorry for eventually not providing all necessary details, this is my first mail ever.</font></font></div>
<div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif">I am trying to compile </font></font><font face="tahoma, sans-serif">csync2-1.34 on Mac OSX Lion 10.7.5, Xcode 4.5</font><span style="font-family:tahoma,sans-serif">. However, I get the following error message when i use make:</span></div>
<div><font face="tahoma, sans-serif"><br></font></div><div><div style="font-family:tahoma,sans-serif">Undefined symbols for architecture x86_64:</div><div style="font-family:tahoma,sans-serif"> "_get_current_dir_name", referenced from:</div>
<div style="font-family:tahoma,sans-serif"> _getrealfn in getrealfn.o</div></div><div><font face="tahoma, sans-serif"><br></font></div><div><br></div><div><font face="tahoma, sans-serif"><div>#uname -a</div><div>Darwin evan 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386 i386</div>
<div><br></div><div><div># gcc --V</div><div>i686-apple-darwin11-llvm-gcc-4.2: no input files</div></div><div><br></div><div>Here is what I did:</div><div><br></div><div><div># ./configure</div><div>checking for a BSD-compatible install... /usr/bin/install -c</div>
<div>checking whether build environment is sane... yes</div><div>checking for gawk... no</div><div>checking for mawk... no</div><div>checking for nawk... no</div><div>checking for awk... awk</div><div>checking whether make sets $(MAKE)... yes</div>
<div>checking for gcc... gcc</div><div>checking whether the C compiler works... yes</div><div>checking for C compiler default output file name... a.out</div><div>checking for suffix of executables... </div><div>checking whether we are cross compiling... no</div>
<div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div>
<div>checking for style of include used by make... GNU</div><div>checking dependency style of gcc... gcc3</div><div>checking for bison... bison -y</div><div>checking for flex... flex</div><div>checking lex output file root... lex.yy</div>
<div>checking lex library... -lfl</div><div>checking whether yytext is a pointer... yes</div><div>checking for rs_sig_file in -lrsync... yes</div><div>checking for sqlite_exec in -lsqlite... yes</div><div>checking for libgnutls-config... /usr/bin/libgnutls-config</div>
<div>checking for libgnutls - version >= 1.0.0... yes</div><div>checking for SSL_new in -lgnutls-openssl... yes</div><div>configure: creating ./config.status</div><div>config.status: creating Makefile</div><div>config.status: creating config.h</div>
<div>config.status: config.h is unchanged</div><div>config.status: executing depfiles commands</div></div><div><br></div><div><div># make</div><div>bison -y -d `test -f 'cfgfile_parser.y' || echo './'`cfgfile_parser.y</div>
<div>if test -f y.tab.h; then \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> to=`echo "cfgfile_parser_H" | sed \</div><div> -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \</div>
<div> -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> sed "/^#/ s/Y_TAB_H/$to/g" y.tab.h ><a href="http://cfgfile_parser.ht">cfgfile_parser.ht</a>; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> rm -f y.tab.h; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> if cmp -s <a href="http://cfgfile_parser.ht">cfgfile_parser.ht</a> cfgfile_parser.h; then \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> rm -f <a href="http://cfgfile_parser.ht">cfgfile_parser.ht</a> ;\</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> else \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> mv <a href="http://cfgfile_parser.ht">cfgfile_parser.ht</a> cfgfile_parser.h; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> fi; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if test -f y.output; then \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> mv y.output cfgfile_parser.output; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>sed '/^#/ s|y\.tab\.c|cfgfile_parser.c|' y.tab.c >cfgfile_parser.ct && mv cfgfile_parser.ct cfgfile_parser.c</div><div>rm -f y.tab.c</div>
<div>make all-am</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT action.o -MD -MP -MF ".deps/action.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o action.o `test -f 'action.c' || echo './'`action.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/action.Tpo" ".deps/action.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/action.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>action.c: In function ‘csync_run_single_command’:</div>
<div>action.c:110: warning: missing sentinel in function call</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT cfgfile_parser.o -MD -MP -MF ".deps/cfgfile_parser.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o cfgfile_parser.o `test -f 'cfgfile_parser.c' || echo './'`cfgfile_parser.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/cfgfile_parser.Tpo" ".deps/cfgfile_parser.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/cfgfile_parser.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>flex `test -f cfgfile_scanner.l || echo './'`cfgfile_scanner.l</div>
<div>sed '/^#/ s|lex.yy\.c|cfgfile_scanner.c|' lex.yy.c >cfgfile_scanner.c</div><div>rm -f lex.yy.c</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT cfgfile_scanner.o -MD -MP -MF ".deps/cfgfile_scanner.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o cfgfile_scanner.o `test -f 'cfgfile_scanner.c' || echo './'`cfgfile_scanner.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/cfgfile_scanner.Tpo" ".deps/cfgfile_scanner.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/cfgfile_scanner.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT check.o -MD -MP -MF ".deps/check.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o check.o `test -f 'check.c' || echo './'`check.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/check.Tpo" ".deps/check.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/check.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT checktxt.o -MD -MP -MF ".deps/checktxt.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o checktxt.o `test -f 'checktxt.c' || echo './'`checktxt.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/checktxt.Tpo" ".deps/checktxt.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/checktxt.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT csync2.o -MD -MP -MF ".deps/csync2.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o csync2.o `test -f 'csync2.c' || echo './'`csync2.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/csync2.Tpo" ".deps/csync2.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/csync2.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT daemon.o -MD -MP -MF ".deps/daemon.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o daemon.o `test -f 'daemon.c' || echo './'`daemon.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/daemon.Tpo" ".deps/daemon.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/daemon.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT db.o -MD -MP -MF ".deps/db.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o db.o `test -f 'db.c' || echo './'`db.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/db.Tpo" ".deps/db.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/db.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT error.o -MD -MP -MF ".deps/error.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o error.o `test -f 'error.c' || echo './'`error.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/error.Tpo" ".deps/error.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/error.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT getrealfn.o -MD -MP -MF ".deps/getrealfn.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o getrealfn.o `test -f 'getrealfn.c' || echo './'`getrealfn.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/getrealfn.Tpo" ".deps/getrealfn.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/getrealfn.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>getrealfn.c: In function ‘my_get_current_dir_name’:</div>
<div>getrealfn.c:36: warning: return makes pointer from integer without a cast</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT groups.o -MD -MP -MF ".deps/groups.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o groups.o `test -f 'groups.c' || echo './'`groups.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/groups.Tpo" ".deps/groups.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/groups.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT rsync.o -MD -MP -MF ".deps/rsync.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o rsync.o `test -f 'rsync.c' || echo './'`rsync.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/rsync.Tpo" ".deps/rsync.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/rsync.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT update.o -MD -MP -MF ".deps/update.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o update.o `test -f 'update.c' || echo './'`update.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/update.Tpo" ".deps/update.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/update.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT urlencode.o -MD -MP -MF ".deps/urlencode.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o urlencode.o `test -f 'urlencode.c' || echo './'`urlencode.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/urlencode.Tpo" ".deps/urlencode.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/urlencode.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT conn.o -MD -MP -MF ".deps/conn.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o conn.o `test -f 'conn.c' || echo './'`conn.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/conn.Tpo" ".deps/conn.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/conn.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>if gcc -DHAVE_CONFIG_H -I. -I. -I. -D'DBDIR="/var/lib/csync2"' -D'ETCDIR="/etc"' -g -O2 -I/opt/local/include -MT prefixsubst.o -MD -MP -MF ".deps/prefixsubst.Tpo" \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> -c -o prefixsubst.o `test -f 'prefixsubst.c' || echo './'`prefixsubst.c; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then mv -f ".deps/prefixsubst.Tpo" ".deps/prefixsubst.Po"; \</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>else rm -f ".deps/prefixsubst.Tpo"; exit 1; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>gcc -g -O2 -I/opt/local/include -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/opt/local/lib -lgnutls -ltasn1 </div>
<div>Undefined symbols for architecture x86_64:</div><div> "_get_current_dir_name", referenced from:</div><div> _getrealfn in getrealfn.o</div><div>ld: symbol(s) not found for architecture x86_64</div><div>
collect2: ld returned 1 exit status</div><div>make[1]: *** [csync2] Error 1</div><div>make: *** [all] Error 2</div></div><div><br></div><div>I would appreciate any pointer into the right direction.</div><div><br></div><div>
Best regards</div><div>Evan</div></font></div>