Can't compile PFTP-mew or PFTP-Shit on Debian-Squeeze
March 03, 2011 08:00AM
Hello again! I'm trying to install a terminal based FTP client on the Dockstar with TLS-AUTH support and ASCII-gui.

The only programm I know is pftp. But since there are no packages in the repositories (or I can't find them). So I tried to compile the sources from here: http://pftpmew.tanesha.net/content/pftpfxp-v0.11.4mew6.tgz or http://www.derijk.org/pftp/pftp-shit.v.1.12.zip

I have a clean install of debian squeeze (installed with Jeff's script) and before compiling I installed following:
apt-get install build-essentials libssl-dev libncurses5-dev

Then I started ./configure and make dynamic. Here's the output:
root@debian:/tmp/pftpfxp-mew# ./configure
pFTP configure utility by HoE...
Platform = Linux
Using make = make
OpenSSL dir = /usr
Done, you can do "make static" or "make dynamic" now...
root@debian:/tmp/pftpfxp-mew# make dynamic
cd src;make dynamic;cd ..
make[1]: Entering directory `/tmp/pftpfxp-mew/src'
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS main.cc
In file included from main.cc:12:
../include/defines.h:365: warning: 'typedef' was ignored in this declaration
In file included from main.cc:15:
../include/displayhandler.h:7: warning: 'typedef' was ignored in this declaration
main.cc: In function 'void adjust(int)':
main.cc:114: warning: deprecated conversion from string constant to 'char*'
main.cc: In function 'bool FireDisplayHandler()':
main.cc:284: warning: deprecated conversion from string constant to 'char*'
main.cc: In function 'void* DetachServer(void*)':
main.cc:308: warning: deprecated conversion from string constant to 'char*'
main.cc: In function 'void FireupLocalFilesys()':
main.cc:363: warning: deprecated conversion from string constant to 'char*'
main.cc: In function 'void FireupRemoteServer(CServer*)':
main.cc:379: warning: deprecated conversion from string constant to 'char*'
main.cc: In function 'int main(int, char**)':
main.cc:1150: warning: deprecated conversion from string constant to 'char*'
main.cc:1172: warning: deprecated conversion from string constant to 'char*'
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS switchserver.cc
In file included from switchserver.cc:6:
../include/defines.h:365: warning: 'typedef' was ignored in this declaration
In file included from switchserver.cc:9:
../include/displayhandler.h:7: warning: 'typedef' was ignored in this declaration
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS tcp.cc
In file included from tcp.cc:21:
../include/defines.h:365: warning: 'typedef' was ignored in this declaration
tcp.cc: In member function 'bool CTCP::SecureControl()':
tcp.cc:275: warning: deprecated conversion from string constant to 'char*'
tcp.cc: In member function 'bool CTCP::SendData(char*)':
tcp.cc:362: warning: deprecated conversion from string constant to 'char*'
tcp.cc: In member function 'void CTCP::AddLogLine(char*)':
tcp.cc:420: warning: deprecated conversion from string constant to 'char*'
tcp.cc: In member function 'void CTCP::UpdateStack()':
tcp.cc:499: warning: deprecated conversion from string constant to 'char*'
tcp.cc:544: warning: deprecated conversion from string constant to 'char*'
tcp.cc:548: warning: deprecated conversion from string constant to 'char*'
tcp.cc:552: warning: deprecated conversion from string constant to 'char*'
tcp.cc:556: warning: deprecated conversion from string constant to 'char*'
tcp.cc:574: warning: deprecated conversion from string constant to 'char*'
tcp.cc:577: warning: deprecated conversion from string constant to 'char*'
tcp.cc: In member function 'int CTCP::WaitForDataAndRead(int, int*)':
tcp.cc:646: warning: deprecated conversion from string constant to 'char*'
tcp.cc:670: warning: deprecated conversion from string constant to 'char*'
tcp.cc: In member function 'bool CTCP::WaitForMessage(int)':
tcp.cc:704: warning: deprecated conversion from string constant to 'char*'
tcp.cc:710: warning: deprecated conversion from string constant to 'char*'
tcp.cc: In function 'bool DetermineOwnIP(char*)':
tcp.cc:61: warning: dereferencing pointer '<anonymous>' does break strict-aliasing rules
tcp.cc:61: note: initialized from here
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS displayupdate.cc
In file included from displayupdate.cc:9:
../include/defines.h:365: warning: 'typedef' was ignored in this declaration
In file included from displayupdate.cc:12:
../include/displayhandler.h:7: warning: 'typedef' was ignored in this declaration
displayupdate.cc: In member function 'void CDisplayHandler::CloseView()':
displayupdate.cc:366: warning: deprecated conversion from string constant to 'char*'
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS server.cc
In file included from server.cc:18:
../include/defines.h:365: warning: 'typedef' was ignored in this declaration
In file included from server.cc:21:
../include/displayhandler.h:7: warning: 'typedef' was ignored in this declaration
server.cc: In member function 'void CServer::HandleMessage(int, char*, int)':
server.cc:250: warning: deprecated conversion from string constant to 'char*'
server.cc:260: warning: deprecated conversion from string constant to 'char*'
server.cc:521: warning: deprecated conversion from string constant to 'char*'
server.cc:526: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'void CServer::Run()':
server.cc:1674: warning: deprecated conversion from string constant to 'char*'
server.cc:1678: warning: deprecated conversion from string constant to 'char*'
server.cc:1684: warning: deprecated conversion from string constant to 'char*'
server.cc:1688: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::SendSITE(char*)':
server.cc:1961: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'void CServer::RenFrom(char*)':
server.cc:1992: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::RenTo(char*)':
server.cc:2007: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::Nuke(char*)':
server.cc:2029: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::UnNuke(char*)':
server.cc:2049: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::Wipe(char*)':
server.cc:2069: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::UnDupe(char*)':
server.cc:2089: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::DeleteFile(char*)':
server.cc:2109: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::DeleteDir(char*)':
server.cc:2131: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::MakeDir(char*, bool, bool)':
server.cc:2156: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::Noop()':
server.cc:2238: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::ChangeWorkingDir(char*)':
server.cc:2261: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::Login()':
server.cc:2489: warning: deprecated conversion from string constant to 'char*'
server.cc:2503: warning: deprecated conversion from string constant to 'char*'
server.cc:2514: warning: deprecated conversion from string constant to 'char*'
server.cc:2515: warning: deprecated conversion from string constant to 'char*'
server.cc:2554: warning: deprecated conversion from string constant to 'char*'
server.cc:2568: warning: deprecated conversion from string constant to 'char*'
server.cc:2602: warning: deprecated conversion from string constant to 'char*'
server.cc:2626: warning: deprecated conversion from string constant to 'char*'
server.cc:2648: warning: deprecated conversion from string constant to 'char*'
server.cc:2667: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::GetWorkingDir()':
server.cc:2689: warning: deprecated conversion from string constant to 'char*'
server.cc:2692: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::DoFXP(int, bool, bool)':
server.cc:2780: warning: deprecated conversion from string constant to 'char*'
server.cc:2782: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::DoFXPStop(int)':
server.cc:2791: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::DoFXPDir(char*, int)':
server.cc:2886: warning: suggest explicit braces to avoid ambiguous 'else'
server.cc: In member function 'bool CServer::DoFXPDirCWDUP(char*, int)':
server.cc:3063: warning: deprecated conversion from string constant to 'char*'
server.cc:3079: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::LeechDir(char*, int, bool, int)':
server.cc:3158: warning: deprecated conversion from string constant to 'char*'
server.cc:3174: warning: deprecated conversion from string constant to 'char*'
server.cc:3179: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::LeechFile(char*, int, bool, int)':
server.cc:3197: warning: deprecated conversion from string constant to 'char*'
server.cc:3228: warning: deprecated conversion from string constant to 'char*'
server.cc:3280: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::UploadDir(char*, bool, bool)':
server.cc:3494: warning: deprecated conversion from string constant to 'char*'
server.cc:3496: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::DoFXPFile(char*, bool, int)':
server.cc:3645: warning: deprecated conversion from string constant to 'char*'
server.cc:3648: warning: deprecated conversion from string constant to 'char*'
server.cc:3653: warning: deprecated conversion from string constant to 'char*'
server.cc:3659: warning: deprecated conversion from string constant to 'char*'
server.cc:3663: warning: deprecated conversion from string constant to 'char*'
server.cc:3693: warning: deprecated conversion from string constant to 'char*'
server.cc:3702: warning: deprecated conversion from string constant to 'char*'
server.cc:3740: warning: deprecated conversion from string constant to 'char*'
server.cc:3765: warning: deprecated conversion from string constant to 'char*'
server.cc:3814: warning: deprecated conversion from string constant to 'char*'
server.cc:3829: warning: deprecated conversion from string constant to 'char*'
server.cc:3861: warning: deprecated conversion from string constant to 'char*'
server.cc:3876: warning: deprecated conversion from string constant to 'char*'
server.cc:3877: warning: deprecated conversion from string constant to 'char*'
server.cc:3911: warning: deprecated conversion from string constant to 'char*'
server.cc:3915: warning: deprecated conversion from string constant to 'char*'
server.cc:3924: warning: deprecated conversion from string constant to 'char*'
server.cc:3946: warning: deprecated conversion from string constant to 'char*'
server.cc:3994: warning: deprecated conversion from string constant to 'char*'
server.cc:4011: warning: deprecated conversion from string constant to 'char*'
server.cc:4039: warning: deprecated conversion from string constant to 'char*'
server.cc:4083: warning: deprecated conversion from string constant to 'char*'
server.cc:4084: warning: deprecated conversion from string constant to 'char*'
server.cc:4106: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::UploadFile(char*, bool, bool)':
server.cc:4181: warning: deprecated conversion from string constant to 'char*'
server.cc:4195: warning: deprecated conversion from string constant to 'char*'
server.cc:4241: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'bool CServer::RefreshFiles()':
server.cc:4410: warning: deprecated conversion from string constant to 'char*'
server.cc:4412: warning: deprecated conversion from string constant to 'char*'
server.cc:4424: warning: deprecated conversion from string constant to 'char*'
server.cc:4436: warning: deprecated conversion from string constant to 'char*'
server.cc:4460: warning: deprecated conversion from string constant to 'char*'
server.cc:4494: warning: deprecated conversion from string constant to 'char*'
server.cc:4527: warning: deprecated conversion from string constant to 'char*'
server.cc:4541: warning: deprecated conversion from string constant to 'char*'
server.cc:4549: warning: deprecated conversion from string constant to 'char*'
server.cc:4569: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'void CServer::FormatFilelist(char*)':
server.cc:4670: warning: deprecated conversion from string constant to 'char*'
server.cc:4671: warning: deprecated conversion from string constant to 'char*'
server.cc:4679: warning: deprecated conversion from string constant to 'char*'
server.cc:4680: warning: deprecated conversion from string constant to 'char*'
server.cc: In member function 'void CServer::SortFilelist(bool, bool)':
server.cc:5360: error: array bound forbidden after parenthesized type-id
server.cc:5360: note: try removing the parentheses around the type-id
server.cc:5361: error: array bound forbidden after parenthesized type-id
server.cc:5361: note: try removing the parentheses around the type-id
make[1]: *** [server.o] Error 1
make[1]: Leaving directory `/tmp/pftpfxp-mew/src'
root@debian:/tmp/pftpfxp-mew#

I hope anyone can help me. I would also use another FTP client, but I need TLS-AUTH (ssl support) and an ASCII-gui like midnight commander. Thanks!
sushil kumar
Re: Can't compile PFTP-mew or PFTP-Shit on Debian-Squeeze
March 09, 2011 05:49AM
to remove " warning: deprecated conversion from string constant to 'char*' ", use the following swith
"-Wno-write-strings "
for the other warning 'typedef' was ignored in this declaration, I am still looking for solution.

--sushil
Re: Can't compile PFTP-mew or PFTP-Shit on Debian-Squeeze
March 18, 2011 04:22PM
Temporarily I'm using lftp. It works great but the browsing is horrible. I have just the command line an ls is showing all details in one huge list. I have to use the pipe and more, then it became reliable.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: