Page 1 of 1

How can i build ps2ftpd?

Posted: Mon Jun 28, 2004 9:48 pm
by xjhsy76
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

Posted: Mon Jun 28, 2004 10:17 pm
by pixel
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

Posted: Tue Jun 29, 2004 1:59 am
by BiB
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 ???

Posted: Tue Jun 29, 2004 3:30 am
by pixel
I am not sure this works under cygwin. But it should.

Posted: Tue Jun 29, 2004 3:46 am
by xjhsy76
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]#

Posted: Wed Jun 30, 2004 1:24 pm
by mharris
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.

Posted: Thu Jul 01, 2004 7:02 am
by chp
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.