ps2client 3.0.0 not recognize subdir's

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

Moderators: cheriff, Herben

Post Reply
MAJOR
Posts: 5
Joined: Sun Jun 18, 2006 2:24 am

ps2client 3.0.0 not recognize subdir's

Post by MAJOR »

First, Hello every one =]

Ok, ps2client is a fantastic development, congratulations for every one to make it's happening.

But i'm have a question...

I downloaded ps2client 3.0 svn, the compilation run fine, i'm running slackware 10.2 with gcc 3.3.6.
when i up sms 1.7 revision 4 on playstation, an run ps2client :
./ps2client -h 192.168.1.4 listen
Everything goes well, i can find a PC share root share, and i can execute from sms my movies an mp3, but it's only possible in root share. If i try to execute a movie or someting else from subdir on subdir ex:

"share-folder"-----movie1.avi Work's OK
|
"Movie-folder"
|--------movie2.avi Run fine.
|
"Folder" recognized as a file not a dir... an if i try to execute this dir, sms crash. "Stop console."

Ok.. it's it.

And version ps2client 2_0_0 see all folder, but when i try to run file in subdir, segment fault apear on console....

Some one can help me?
Path file, new version....

OBS:I'm don't want to run RAD HOST CLIENT because my Linux server, don't have X window running, but i know Rad host client, can execute movies from subdir.... because i test it.

Thank's for any help.
husky99
Posts: 6
Joined: Thu Jun 22, 2006 5:23 am

Scratch my back.....

Post by husky99 »

I think I found your answer, see below... maybe you can help me compile ps2client 3.0.0 ?

I'm running Debian on a Linkstation NAS.
I have GCC installed
I go to compile with:
make clean; make PREFIX=/mnt/ps2client
and am missing netdb.h, unistd.h, sys/socket.h, etc. which are referenced in the network.c code which results in errors during the compile.
(I can paste exact output if needed)

What do I need to do to compile correctly?

I checked your issue out over on ps2-scene and found this thread
http://www.ps2-scene.org/forums/showthr ... =ps2client
Seems to be a issue with slashes / vs \ according to dlanor:

Sorry, but this is all due to the assumptions in my PS2-side host code that ps2client and elflist.txt use backslash as path separator. I've explained this in another new reply to your post at PS2Dev.org too. Hopefully you can fix this by modifying the mac/Linux ps2client as suggested in that reply.

There must be a thread here as well about this.
MAJOR
Posts: 5
Joined: Sun Jun 18, 2006 2:24 am

Post by MAJOR »

Hey, thank's husky99. =]

Dud, you have downloads ps2client from svn?

Can you post your full error message?

what version is your gcc?

I'm not sure but this aparentily needed glibc an glibc-devel?....
Try to install this things.... ..


And not forget to check your simbolic link's.... our $PATH.


Thanks husky for the link =]

Regards
husky99
Posts: 6
Joined: Thu Jun 22, 2006 5:23 am

I figured it out

Post by husky99 »

I figured it out.... I was missing the newlib source toolchain....

One other quick question.
I also wanted to try RadHostClient on linux... I'm not sure what to do with the binary "RadHostClient" file that results after the gunzip and tar extraction.
I try ./RadHostClient -cannot execute binary file

What am I missing?

BTW here is the local thread addressing this issue
http://forums.ps2dev.org/viewtopic.php? ... highlight=
MAJOR
Posts: 5
Joined: Sun Jun 18, 2006 2:24 am

Post by MAJOR »

husky,

"./RadHostClient -cannot execute binary file"
This is not good....
I guess, It's happening because RadHostClient is not compiled for your archteture....

please execute in terminal:

arch

and post the exit here.
MAJOR
Posts: 5
Joined: Sun Jun 18, 2006 2:24 am

Post by MAJOR »

Some one have solution to make "\" trancode to "/", like RadHostClient do?

Hellllllllllllllp!

our, some one know how i run RadHostClient without a X windows running?

Here is the ps2client 2.0 with the code to transcode \ to / for unix, but a colateral efect is, subfiles dir stay like a dir, and you execute that, psclient crash whit "Segment Fault".
because the funcion open_dir is called??????


#############################################
int ps2link_fixpathname(char *pathname)
{
int loop0;
// If empty, set a pathname default.
if (pathname[0] == 0)
{
strcpy(pathname, ".");
}
// Convert \ to / for unix compatibility.
for(loop0=0;loop0<strlen(pathname);loop0++)
{
if (pathname[loop0] == '\\' )
{
pathname[loop0] = '/';
}
}

// Check for a leading slash.
if (pathname[0] == '/')
{

// Kill off the leading slash.
for(loop0=0;loop0<strlen(pathname)-1;loop0++)
{
pathname[loop0] = pathname[loop0+1];
}

// Terminate the pathname with a null.
pathname[loop0] = 0;

}
// End function.
return 0;
############################################

Any sugestion is be apreciated.
MAJOR
Posts: 5
Joined: Sun Jun 18, 2006 2:24 am

Post by MAJOR »

wine and ps2client.exe solve my problem.


Thank's
husky99
Posts: 6
Joined: Thu Jun 22, 2006 5:23 am

Post by husky99 »

.....ppc

Not a supported architecture, I assume...

Guess I'm out of luck with RadHostClient unless I can find the source code and compile it.

oh well, for now I have ps2client working, I guess that will have to do.
Yoc
Posts: 5
Joined: Tue May 30, 2006 7:49 pm

Post by Yoc »

Just a word about compiling ps2client for LaunchELF by dlanor for OS X.
What to do :
- open src/ps2link.c
- find the function ps2link_request_mkdir, and change those two lines :

Code: Select all

  //result = mkdir&#40;request->name, 0&#41;;  //dlanor&#58; Invalid arguments for my MinGW libs
  result = mkdir&#40;request->name&#41;;  //dlanor&#58; Valid argument for my MinGW libs
into this :

Code: Select all

  result = mkdir&#40;request->name, 0&#41;;  //dlanor&#58; Invalid arguments for my MinGW libs
  //result = mkdir&#40;request->name&#41;;  //dlanor&#58; Valid argument for my MinGW libs
- type make -f Makefile.cygwin

But I didn't manage to get fix_pathname to work for the backslashes into slashes transformation. My folders are still seen as files.
User avatar
DeRieux
Posts: 9
Joined: Thu Jul 06, 2006 9:44 am

Post by DeRieux »

husky99 wrote:.....ppc

Not a supported architecture, I assume...

Guess I'm out of luck with RadHostClient unless I can find the source code and compile it.

oh well, for now I have ps2client working, I guess that will have to do.
You need to the linux version of Rad Host Client:
http://www.freewebtown.com/radsoft/soft ... tClient.gz

or goto the ps2dev.org download page
http://ps2dev.org/ps2/Tools/Misc_tools/ ... Client_1.7


When you get this:
"./RadHostClient -cannot execute binary file"
This is because you are trying to execute a binary file
compiled for another architecture *just as MAJOR Said",
with that being said you were, probably, trying to execute
the Windows Version. (just get the above file, run / compile if neccessary, then run).

William
William DeRieux -
Have just started out using ps2sdk

Have made my Laptop, Linux Only
and am in the process of putting the pieces back together (oops!)

Email me at [email protected]
husky99
Posts: 6
Joined: Thu Jun 22, 2006 5:23 am

Post by husky99 »

I am trying to use the linux binary file.... gz extension, yup.
Compile a binary file?
There is no source code available for RadHostClient so I cannot compile a complient binary. I've left Radad a PM requesting the code to compile on the Power PC machine I have, but he has been quiet on here and on ps2-scene.com as well.
Do you have a PPC system, William, and RHC works for you?
User avatar
DeRieux
Posts: 9
Joined: Thu Jul 06, 2006 9:44 am

RE: RadhostClient

Post by DeRieux »

No, Husky99 I do not have PPC, nor have I
used the linux version of RadHostClient.
I currently use the windows version, becuase I am in Windows more often.

I am currently downloading the file, will unpack it and
see what it's all about. I will then post another message/or edit this
message after that's been done.


EDIT:

I successfully ran the Rad Host Client for Linux Under Ubuntu 5.10,
This was compiled for the following architecture:
Class: ELF32
OS/ABI: UNIX - System V
Machine: Intel 80386 (i386)

- The Following Shared Libraries will be needed:

Shared library: [libgtk-x11-2.0.so.0]
Shared library: [libgdk-x11-2.0.so.0]
Shared library: [libatk-1.0.so.0]
Shared library: [libgdk_pixbuf-2.0.so.0]
Shared library: [libpangoxft-1.0.so.0]
Shared library: [libpangox-1.0.so.0]
Shared library: [libpango-1.0.so.0]
Shared library: [libgobject-2.0.so.0]
Shared library: [libgmodule-2.0.so.0]
Shared library: [libgthread-2.0.so.0]
Shared library: [libglib-2.0.so.0]
Shared library: [libdl.so.2]
Shared library: [libm.so.6]
Shared library: [libpthread.so.0]
Shared library: [libc.so.6]
Shared library: [libX11.so.6]

Instructions to Run Rad Host Client for Linux:
1) in a console (under linux) type:

gunzip radhostclient.gz
chmod ugo+x radhostclient
radhostclient or ./radhostclient


Husky99: If you still get the cannot execute binary file, send me an email describing the steps and/or console output of the commands you used (email is in my signature).

William
William DeRieux -
Have just started out using ps2sdk

Have made my Laptop, Linux Only
and am in the process of putting the pieces back together (oops!)

Email me at [email protected]
User avatar
morphix
Posts: 2
Joined: Sun Jul 09, 2006 6:42 pm

Post by morphix »

Ok so what file would i need to edit in source for the / and \ problem? and code do i need to enter..? i tried the one listed on this page and make wouldnt complete.
User avatar
evil
Posts: 1
Joined: Mon Jul 10, 2006 1:30 am

Post by evil »

morphix wrote:Ok so what file would i need to edit in source for the / and \ problem? and code do i need to enter..? i tried the one listed on this page and make wouldnt complete.
I posted a patched release here http://www.ps2-scene.org/forums/showthr ... =ps2client

BTW. Slashes have nothing to do with that problem.
husky99
Posts: 6
Joined: Thu Jun 22, 2006 5:23 am

Post by husky99 »

Thanks again evil....
as noted, elflist.txt still does not work, but at least we can now use subdirectories in linux....

DeRieux... you don't seem to get it.... the binary radhostclient file for linux was compiled on a machine using the 386 arch. Unless you can help me find the source somewhere from Radad, the binary will not work on a Power PC system, Linkstation (Kurobox) in this case.
User avatar
DeRieux
Posts: 9
Joined: Thu Jul 06, 2006 9:44 am

Post by DeRieux »

Yeah, I see your point...I am not very familiar with the PPC archetecure.

And finding the source code is easier said than done.

Maybe you should just use ps2client or the fix that evil posted.

I guess that's all I can suggest, for now.

William
William DeRieux -
Have just started out using ps2sdk

Have made my Laptop, Linux Only
and am in the process of putting the pieces back together (oops!)

Email me at [email protected]
Post Reply