lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.12k stars 162 forks source link

Building lftp on ubuntu with --socks-dante fails #114

Open diesel437 opened 9 years ago

diesel437 commented 9 years ago

Im trying to build lftp-4.6.1 on Ubuntu 14.04 with --socks-dante, and fails with the following error:

configure steps: ./configure --with-openssl --prefix=/home/dev/lftp --with-socksdante=/usr/lib

all sucess above here.. ... /bin/bash ../libtool --silent --tag=CXX --mode=link g++ -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -s -L/usr/lib/lib -o example1-cmd example1-cmd.o liblftp-jobs.la -lutil -ltinfo -ldl /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In function Ftp::Connection::data_address_ok(sockaddr_u /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In functionFtp::Connection::data_address_ok(sockaddru const, bool, bool)': ftpclass.cc:(.text+0xef4): undefined reference to Rgetpeername' ftpclass.cc:(.text+0x1074): undefined reference toRgetpeername' /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In function Ftp::Handle_EPSV()': ftpclass.cc:(.text+0x1af6): undefined reference toRgetpeername' /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In function Ftp::SendUrgentCmd(char const_)': ftpclass.cc:(.text+0x67c4): undefined reference toRsend' ftpclass.cc:(.text+0x67e2): undefined reference toRsend' example1.o: In functionmain': example1.cc:(.text.startup+0xa4): undefined reference toRwrite' ./.libs/liblftp-tasks.a(FileCopy.o): In functionFileCopyPeerFDStream::PutLL(char const*, int)': FileCopy.cc:(.text+0x497e): undefined reference toRwrite' FileCopy.cc:(.text+0x4b17): undefined reference toRwrite' ./.libs/liblftp-tasks.a(log.o): In function`Log::DoWrite(char const)': log.cc:(.text+0x16c): undefined reference to Rwrite' log.cc:(.text+0x202): undefined reference toRwrite' ./.libs/liblftp-tasks.a(log.o):log.cc:(.text+0x216): more undefined references to Rwrite' follow /home/dev/lftp-4.6.1/src/.libs/liblftp-network.a(Resolver.o): In functionResolver::LookupOne(char const_)': Resolver.cc:(.text+0x768): undefined reference to Rgetaddrinfo' collect2: error: ld returned 1 exit status const*, bool, bool)': make[1]: ftpclass.cc:(.text+0xef4): *** [example1] Error 1 make[1]: *** Waiting for unfinished jobs.... undefined reference toRgetpeername' ftpclass.cc:(.text+0x1074): undefined reference to Rgetpeername' /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In functionFtp::HandleEPSV()': ftpclass.cc:(.text+0x1af6): undefined reference to Rgetpeername' /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In functionFtp::SendUrgentCmd(char const)': ftpclass.cc:(.text+0x67c4): undefined reference to Rsend' ftpclass.cc:(.text+0x67e2): undefined reference toRsend' example2.o: In function main': example2.cc:(.text.startup+0x114): undefined reference toRwrite' ./.libs/liblftp-tasks.a(FileCopy.o): In function FileCopyPeerFDStream::Put_LL(char const_, int)': FileCopy.cc:(.text+0x497e): undefined reference toRwrite' FileCopy.cc:(.text+0x4b17): undefined reference toRwrite' ./.libs/liblftp-tasks.a(log.o): In functionLog::DoWrite(char const)': log.cc:(.text+0x16c): undefined reference toRwrite' log.cc:(.text+0x202): undefined reference toRwrite' ./.libs/liblftp-tasks.a(log.o):log.cc:(.text+0x216): more undefined references toRwrite' follow /home/dev/lftp-4.6.1/src/.libs/liblftp-network.a(Resolver.o): In functionResolver::LookupOne(char const)': Resolver.cc:(.text+0x768): undefined reference toRgetaddrinfo' collect2: error: ld returned 1 exit status make[1]: **\* [example2] Error 1 /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In functionFtp::Connection::data_address_ok(sockaddr_u const, bool, bool)': ftpclass.cc:(.text+0xef4): undefined reference toRgetpeername' ftpclass.cc:(.text+0x1074): undefined reference toRgetpeername' /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In functionFtp::Handle_EPSV()': ftpclass.cc:(.text+0x1af6): undefined reference toRgetpeername' /home/dev/lftp-4.6.1/src/.libs/proto-ftp.a(ftpclass.o): In functionFtp::SendUrgentCmd(char const_)': ftpclass.cc:(.text+0x67c4): undefined reference toRsend' ftpclass.cc:(.text+0x67e2): undefined reference toRsend' ./.libs/liblftp-jobs.a(CmdExec.o): In functionCmdExec::beep_if_long()': CmdExec.cc:(.text+0x12ff): undefined reference toRwrite' ./.libs/liblftp-jobs.a(CmdExec.o): In functionCmdExec::WriteCmds(int) const': CmdExec.cc:(.text+0x1cf4): undefined reference toRwrite' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrent::SaveMetadata() const': Torrent.cc:(.text+0x1f19): undefined reference toRwrite' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrentPeer::SendExtensions()': Torrent.cc:(.text+0x57e5): undefined reference toRgetpeername' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrentListener::SendUDP(sockaddr_u const&, xstring const&)': Torrent.cc:(.text+0xc620): undefined reference toRsendto' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrentListener::Do() [clone .part.85]': Torrent.cc:(.text+0xccb1): undefined reference toRrecvfrom' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(TorrentTracker.o): In functionUdpTracker::RecvReply()': TorrentTracker.cc:(.text+0x112c): undefined reference toRrecvfrom' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(TorrentTracker.o): In functionUdpTracker::SendPacket(Buffer&)'/: TorrentTracker.cchome:(./devtext+/lftp0x1583)-4.6.1: undefined/src reference/. tolibs/proto-Rsendto'ftp.a( ftpclass.o)/home: In/dev function/lftpFtp-4.6.1::Connection/src::data_address_ok/.(sockaddrulibs/ constliblftp-, tasks.a(bool,FileCopy.o) bool: In)' function: `ftpclass.cc:FileCopyPeerFDStream:(.:Put_LLtext+(char 0xef4)const: undefined, int reference)' to: FileCopy.ccRgetpeername:(.' ftpclass.cctext+0x497e:(.):text+ undefined0x1074) reference: toundefined referenceRwrite to' RgetpeernameFileCopy.cc:' (.text/home+0x4b17/dev): /lftpundefined -4.6.1reference to/src/.Rwrite'libs/ /proto-ftp.ahome/(ftpclass.odev/):lftp- In4.6.1/ functionsrc/Ftp.libs::Handle_EPSV/liblftp()-tasks.a': (log.oftpclass.cc:):(. Intext+ function0x1af6Log): ::DoWriteundefined (charreference to constRgetpeername_)' /':home/ log.ccdev/lftp:(.-4.6.1text+/src0x16c)/.: undefinedlibs/ referenceproto- toftp.a(ftpclass.o)Rwrite' : log.ccIn :(function .textFtp+0x202::SendUrgentCmd): (charundefined constreference *)'to : Rwriteftpclass.cc:' (.log.cc:text+(.0x67c4)text+: undefined0x216) reference: undefined to referenceRsend to' Rwriteftpclass.cc:' (./hometext+/dev0x67e2)/lftp: undefined-4.6.1 reference/src to/.Rsendlibs/' .liblftp-/.tasks.a(libs/log.o)liblftp-:log.ccjobs.a(:(CmdExec.o).text: In+0x264 function):CmdExecmore ::beep_iflongundefined references()' to: CmdExec.cc:Rwrite'(. followtext+ /0x12ff)home/: undefineddev/lftp reference-4.6.1 to/srcRwrite/.' libs/liblftp./-network.a.libs(Resolver.o/liblftp): -jobs.aIn function(CmdExec.o`Resolver::LookupOne(char const)': Resolver.cc:(.text+0x768): undefined reference to Rgetaddrinfo' ): In collect2: error: ld returned 1 exit status functionCmdExec::WriteCmds(int) const': CmdExec.cc:(.text+0x1cf4): undefined reference to Rwrite' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrent::SaveMetadata() const': Torrent.cc:(.text+0x1f19): undefined reference to Rwrite' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrentPeer::SendExtensions()': Torrent.cc:(.text+0x57e5): undefined reference to Rgetpeername' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrentListener::SendUDP(sockaddr_u const&, xstring const&)': Torrent.cc:(.text+0xc620): undefined reference to Rsendto' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(Torrent.o): In functionTorrentListener::Do() [clone .part.85make[1]: ]': Torrent.cc:* [example1-cmd] Error 1(.text +0xccb1): undefined reference to Rrecvfrom' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(TorrentTracker.o): In functionUdpTracker::RecvReply()': TorrentTracker.cc:(.text+0x112c): undefined reference to Rrecvfrom' /home/dev/lftp-4.6.1/src/.libs/cmd-torrent.a(TorrentTracker.o): In functionUdpTracker::SendPacket(Buffer&)': TorrentTracker.cc:(.text+0x1583): undefined reference to Rsendto' /home/dev/lftp-4.6.1/src/.libs/liblftp-tasks.a(FileCopy.o): In functionFileCopyPeerFDStream::PutLL(char const, int)': FileCopy.cc:(.text+0x497e): undefined reference to Rwrite' FileCopy.cc:(.text+0x4b17): undefined reference toRwrite' /home/dev/lftp-4.6.1/src/.libs/liblftp-tasks.a(log.o): In function Log::DoWrite(char const_)': log.cc:(.text+0x16c): undefined reference toRwrite' log.cc:(.text+0x202): undefined reference toRwrite' log.cc:(.text+0x216): undefined reference toRwrite' /home/dev/lftp-4.6.1/src/.libs/liblftp-tasks.a(log.o):log.cc:(.text+0x264): more undefined references toRwrite' follow /home/dev/lftp-4.6.1/src/.libs/liblftp-tasks.a(passfd.o): In functionsendfd': /home/dev/lftp-4.6.1/lib/passfd.c:86: undefined reference toRsendmsg' /home/dev/lftp-4.6.1/src/.libs/liblftp-tasks.a(passfd.o): In functionrecvfd': /home/dev/lftp-4.6.1/lib/passfd.c:146: undefined reference toRrecvmsg' /home/dev/lftp-4.6.1/src/.libs/proto-file.a(LocalAccess.o): In functionLocalAccess::Write(void const, int)': LocalAccess.cc:(.text+0x41a): undefined reference toRwrite' /home/dev/lftp-4.6.1/src/.libs/liblftp-network.a(Resolver.o): In functionResolver::LookupOne(char const)': Resolver.cc:(.text+0x768): undefined reference to`Rgetaddrinfo' collect2: error: ld returned 1 exit status make[1]: * [lftp] Error 1 make[1]: Leaving directory `/home/dev/lftp-4.6.1/src' make: *\ [all-recursive] Error 1 dev@dev-VirtualBox:~/lftp-4.6.1$

noteed commented 9 years ago

I was following this blog post: http://blog.matoski.com/articles/buliding-lftp-from-source-with-openssl-libraries/ and faced a similar problem (with lftp-4.6.1 and Ubuntu 15.04).