forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can i build ps2ftpd?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
xjhsy76



Joined: 28 Jun 2004
Posts: 2

PostPosted: Mon Jun 28, 2004 9:48 pm    Post subject: How can i build ps2ftpd? Reply with quote

Hello,

sorry for my english, i'm chinese,
i installed PS2SDK(ps2sdk-v1.0alpha-bin.zip) and set $PS2SDKSRC on redhat 9 .
when i make (under src/) i had this error:

[root@localhost src]# make
cc -Wall -DLINUX -c -o FileSystem.o FileSystem.c
In file included from FileSystem.c:13:
FileSystem.h:112: parse error before '*' token
FileSystem.h:112: warning: type defaults to `int' in declaration of `FileSystem_ScanDevice'
FileSystem.h:112: warning: data definition has no type or storage class
FileSystem.c: In function `FileSystem_OpenDir':
FileSystem.c:125: structure has no member named `m_List'
FileSystem.c:128: structure has no member named `m_List'
FileSystem.c: In function `FileSystem_ReadDir':
FileSystem.c:230: structure has no member named `m_List'
FileSystem.c: In function `FileSystem_ClassifyPath':
FileSystem.c:454: structure has no member named `m_eType'
FileSystem.c:454: `FS_DEVLIST' undeclared (first use in this function)
FileSystem.c:454: (Each undeclared identifier is reported only once
FileSystem.c:454: for each function it appears in.)
FileSystem.c:463: warning: implicit declaration of function `isnum'
FileSystem.c:467: structure has no member named `m_kFile'
FileSystem.c:472: structure has no member named `m_kFile'
FileSystem.c:472: `IOPMGR_IOMAN_IDENT' undeclared (first use in this function)
FileSystem.c:474: structure has no member named `m_eType'
FileSystem.c:474: `FS_IODEVICE' undeclared (first use in this function)
FileSystem.c:485: structure has no member named `m_kFile'
FileSystem.c:485: `IOPMGR_IOMANX_IDENT' undeclared (first use in this function)
FileSystem.c:487: structure has no member named `m_eType'
FileSystem.c: At top level:
FileSystem.c:584: parse error before '*' token
FileSystem.c:585: warning: return type defaults to `int'
FileSystem.c: In function `FileSystem_ScanDevice':
FileSystem.c:586: `smod_mod_info_t' undeclared (first use in this function)
FileSystem.c:586: `pkModule' undeclared (first use in this function)
FileSystem.c:587: `iop_device_t' undeclared (first use in this function)
FileSystem.c:587: `pkDevInfoTable' undeclared (first use in this function)
FileSystem.c:592: parse error before ')' token
FileSystem.c:604: parse error before ')' token
FileSystem.c:611: `IOP_DT_FS' undeclared (first use in this function)
make: *** [FileSystem.o] Error 1
[root@localhost src]#

why?
please help me~
thank :x
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Mon Jun 28, 2004 10:17 pm    Post subject: Reply with quote

You have a lot of environment variables missing.

I suggest you use ooPo's script to compile the whole toolchain (which includes ps2sdk). Just download and run this file: http://www.oopo.net/consoledev/files/toolchain-beta.sh

Afterward, you need to change your environment variables:

export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
BiB



Joined: 27 Feb 2004
Posts: 36
Location: France

PostPosted: Tue Jun 29, 2004 1:59 am    Post subject: Reply with quote

if I understood correctly what you say, if i want to configure cygwin to work with ps2 compiler, i just have to run this script, and that's all ???
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Tue Jun 29, 2004 3:30 am    Post subject: Reply with quote

I am not sure this works under cygwin. But it should.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
xjhsy76



Joined: 28 Jun 2004
Posts: 2

PostPosted: Tue Jun 29, 2004 3:46 am    Post subject: Reply with quote

pixel wrote:
You have a lot of environment variables missing.

I suggest you use ooPo's script to compile the whole toolchain (which includes ps2sdk). Just download and run this file: http://www.oopo.net/consoledev/files/toolchain-beta.sh

Afterward, you need to change your environment variables:

export PS2DEV=/usr/local/ps2dev
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin


i have done above~
when i build ps2ftpd ,i have this error

pixel wrote:

[root@secview ps2ftpd]# export PS2SDKSRC=$PS2SDK
[root@secview ps2ftpd]# make
Makefile:28: /usr/local/ps2dev/ps2sdk/iop/Rules.make: No such file or directory
Makefile:29: /usr/local/ps2dev/ps2sdk/iop/Rules.release: No such file or directory
make: *** No rule to make target `/usr/local/ps2dev/ps2sdk/iop/Rules.release'. Stop.
You have new mail in /var/spool/mail/root
[root@secview ps2ftpd]#
[root@secview ps2ftpd]# cd src
[root@secview src]# make
cc -Wall -DLINUX -c -o FtpClient.o FtpClient.c
FtpClient.c: In function `FtpClient_OnConnect':
FtpClient.c:165: warning: implicit declaration of function `FileSystem_ClassifyPath'
FtpClient.c:165: warning: comparison between pointer and integer
FtpClient.c:167: structure has no member named `m_eType'
FtpClient.c:169: `FS_IODEVICE' undeclared (first use in this function)
FtpClient.c:169: (Each undeclared identifier is reported only once
FtpClient.c:169: for each function it appears in.)
FtpClient.c:171: `iox_dirent_t' undeclared (first use in this function)
FtpClient.c:171: parse error before "bad_block_list"
FtpClient.c:173: structure has no member named `m_kFile'
FtpClient.c:176: structure has no member named `m_kFile'
FtpClient.c:176: `O_DIROPEN' undeclared (first use in this function)
FtpClient.c:177: structure has no member named `m_kFile'
FtpClient.c:177: structure has no member named `m_kFile'
FtpClient.c:180: structure has no member named `m_kFile'
FtpClient.c:180: structure has no member named `m_kFile'
FtpClient.c:180: `bad_block_list' undeclared (first use in this function)
FtpClient.c:193: structure has no member named `m_kFile'
FtpClient.c:193: structure has no member named `m_kFile'
FtpClient.c:199: structure has no member named `m_eType'
FtpClient.c:199: `FS_INVALID' undeclared (first use in this function)
FtpClient.c: In function `FtpClient_OnDataConnected':
FtpClient.c:833: warning: implicit declaration of function `process_buffer'
make: *** [FtpClient.o] Error 1
[root@secview src]#
Back to top
View user's profile Send private message
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Wed Jun 30, 2004 1:24 pm    Post subject: Reply with quote

you still have a problem w/ environment variable and/or your path.

look at the output from 'make' -- notice that it's trying to run a linux cc, instead of ps2-ee-gcc or whatever.
Back to top
View user's profile Send private message AIM Address
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Thu Jul 01, 2004 7:02 am    Post subject: Reply with quote

As mharris & others said, you need to have a proper ps2-environment setup before trying to compile it.

As for the linux-issues, I do not keep it as up to date anymore as the server runs fine on ps2 now, but I've just checked in some fixes to clear that problem for now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group