LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2006, 11:51 PM   #1
techItch
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Unhappy pftp compile problem!!


Hi,

I'm trying to compile pftp-shit a mod of pftp on my Fedora Core 5 box. I've got gcc-c++ and ncurses installed however I get this compile error:

Code:
[root@localhost pftp-shit.v.1.5]# gmake
cd src;gmake;cd ..
gmake[1]: Entering directory `/root/pftp-shit.v.1.5/src'
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS main.cc
main.cc: In function âint main(int, char**)â:
main.cc:1071: warning: unused variable âiâ
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS switchserver.cc
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS tcp.cc
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS displayupdate.cc
g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS server.cc
server.cc: In member function âvoid CServer::SortFilelist(bool, bool)â:
server.cc:4980: error: array bound forbidden after parenthesized type-id
server.cc:4980: note: try removing the parentheses around the type-id
server.cc:4981: error: array bound forbidden after parenthesized type-id
server.cc:4981: note: try removing the parentheses around the type-id
gmake[1]: *** [server.o] Error 1
gmake[1]: Leaving directory `/root/pftp-shit.v.1.5/src'
I have also tried pftp-mew and have the same error. If anyone can help it would be muchly appreciated

thanks
 
Old 05-02-2006, 11:57 PM   #2
techItch
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Question server.cc

the problem is in server.cc
here is line 4980 and 4981

Code:
        dir_list = new (FILELIST *)[dir_count];
        file_list = new (FILELIST *)[file_count];
 
Old 05-03-2006, 12:08 AM   #3
techItch
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Exclamation hmm

ok so i edited server.cc and changed those lines to:

Code:
dir_list = new FILELIST *[dir_count];
file_list = new FILELIST *[file_count];
then it compiled fine

however now when i run pftp i get the following...

Code:
[root@localhost pftp-shit.v.1.5]# ./pftp 
FATAL system error #nnnn
CAUSE: We should never get here!
 
Old 05-03-2006, 12:10 AM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Looks that change wasn't necessarily the right change.

I would uncompress the source again and rebuild and send the compile output to the app maintainer. The problem is with is coding and unless you're a C++ developer, you'll need for the maintainer to fix this.

Peace...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pftp Mew timerx Linux - Newbie 0 12-05-2004 11:52 AM
PFTP -Mew himsa Linux - Newbie 6 04-07-2004 06:23 AM
PFTP-Mew Sebboh Linux - Software 0 03-22-2004 10:53 AM
pftp - can't compile owl123 Linux - Newbie 4 08-02-2003 11:53 AM
I can't compile pftp(suxx) zovres Linux - Newbie 2 09-26-2002 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration