How can i build ps2ftpd?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
xjhsy76
Posts: 2
Joined: Mon Jun 28, 2004 9:38 pm

How can i build ps2ftpd?

Post 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
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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
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.
BiB
Posts: 36
Joined: Fri Feb 27, 2004 8:13 am
Location: France

Post 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 ???
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

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.
xjhsy76
Posts: 2
Joined: Mon Jun 28, 2004 9:38 pm

Post 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]#
mharris
Posts: 155
Joined: Sun Jan 25, 2004 2:26 pm
Location: Annapolis, MD, USA

Post 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.
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post 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.
Post Reply