Hello, Lftp works fine on several of my Macs (darwin), but on one of my Mac's when expat is present I can't compile lftp. All of them have expat installed. But on the problem Mac, it detects:
checking for XML_ParserCreateNS in -lexpat... yes whereas the others say "no" even though expat is installed. Below is the compile error I get on the problem Mac. I can remove expat and lftp installs on the problem Mac but I really need to have it on for other apps. Any idea how I can fix this? Thanks. Mark ---------------------------------------------- make all" returned error 2 Command output: ../include/triodef.h:138: warning: To disable this warning, use -Wno-long-double.) if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/opt/local/include -O2 -Wall -MT lftp_rl.o -MD -MP -MF ".deps/lftp_rl.Tpo" -c -o lftp_rl.o lftp_rl.c; \ then mv -f ".deps/lftp_rl.Tpo" ".deps/lftp_rl.Po"; else rm -f ".deps/lftp_rl.Tpo"; exit 1; fi lftp_rl.c: In function `lftp_rl_init': lftp_rl.c:165: warning: assignment from incompatible pointer type if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/opt/local/include -O2 -Wall -MT getdate.o -MD -MP -MF ".deps/getdate.Tpo" -c -o getdate.o getdate.c; \ then mv -f ".deps/getdate.Tpo" ".deps/getdate.Po"; else rm -f ".deps/getdate.Tpo"; exit 1; fi getdate.y: In function `gd_error': getdate.y:645: warning: implicit declaration of function `xfree' /bin/sh ../libtool --silent --tag=CXX --mode=link gcc -O2 -Wall -Wwrite-strings -Woverloaded- virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -o lftp -export-dynamic lftp.o complete.o lftp_rl.o getdate.o liblftp-jobs.la liblftp-tasks.la liblftp-pty.la liblftp-network.la proto-ftp.la proto-http.la proto-file.la proto-fish.la proto-sftp.la cmd-mirror.la cmd-sleep.la ../readline-4.3/ libreadline.a ../lib/liblib.a -lexpat -L/opt/local/lib -lintl -L/opt/local/lib -liconv -lc -R/opt/local/lib -L/opt/local/lib -liconv -R/opt/local/lib -lcurses -lresolv -lsupc++ ld: warning -L: directory name (/opt/local/lib/lftp/3.3.0) does not exist ld: warning prebinding disabled because dependent library: /usr/local/lib/libexpat.0.dylib is not prebound ld: multiple definitions of symbol _getopt /usr/lib/libc.dylib(getopt.So) definition of _getopt ../lib/liblib.a(getopt.o) definition of _getopt in section (__TEXT,__text) ld: multiple definitions of symbol _opterr /usr/lib/libc.dylib(getopt.So) definition of _opterr ../lib/liblib.a(getopt.o) definition of _opterr in section (__DATA,__data) ld: multiple definitions of symbol _optind /usr/lib/libc.dylib(getopt.So) definition of _optind ../lib/liblib.a(getopt.o) definition of _optind in section (__DATA,__data) ld: multiple definitions of symbol _optopt /usr/lib/libc.dylib(getopt.So) definition of _optopt ../lib/liblib.a(getopt.o) definition of _optopt in section (__DATA,__data) ld: warning multiple definitions of symbol _locale_charset /opt/local/lib/libiconv.dylib(localcharset.o) definition of _locale_charset /opt/local/lib/libintl.dylib(localcharset.o) definition of _locale_charset make[1]: *** [lftp] Error 1 make: *** [all-recursive] Error 1
