× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: NAS newb: SPARC apps/compiling?

MarkJ_UK
Aspirant

NAS newb: SPARC apps/compiling?

Hey All,

First off, I am a complete newb to the NAS world and have been given an old ReadyNAS NV+ RND4000 v3 (SPARC) and have stuck an old 1TB drive in it for testing purposes.
So far so good with the streaming/DLNA testing that I have carried out. Plays my 3D and 720 MKV files fine with the standard 256mb RAM (although this will probably end up at 1gb) so I am happy with it.

Now, I have a question to all the app devs on this board and wonder if they could either compile something for me or point me to a guide/tut that contains everything to start compiling for novices who are willing to learn.

The little app in question is called "ps3netsrv" (please google for more info).
It works fantastic on my PC but now I have this little NAS, I would like to use it on that rather than my PC.

I can find it pre-compiled for RaspberryPI, Linux, x86 and other NAS systems (Synology, QNAP and ReadyNAS ARM) etc but can't find it for SPARC.

I have the source files available if anyone would be willing to help compile it for SPARC or at least explain how to setup an environment to compile it myself?

Thanks in advance for any help.
Message 1 of 10
doseas
Aspirant

Re: NAS newb: SPARC apps/compiling?

Message 2 of 10
MarkJ_UK
Aspirant

Re: NAS newb: SPARC apps/compiling?

doseas wrote:
There's a how-to.....


Thanks pal, will take a look and see how it goes.
Message 3 of 10
MarkJ_UK
Aspirant

Re: NAS newb: SPARC apps/compiling?

Managed to setup a compiler on the NAS and compile this little app but have a few warnings during the process:

nas:/usr/src/ps3netsrv# make
g++ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o main.o main.cpp
main.cpp: In function `int process_open_cmd(client_t*, netiso_open_cmd*)':
main.cpp:378: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp: In function `int process_create_cmd(client_t*, netiso_create_cmd*)':
main.cpp:588: warning: converting of negative value `-1' to `unsigned int'
main.cpp: In function `int process_open_dir_cmd(client_t*,
netiso_open_dir_cmd*)':
main.cpp:710: warning: converting of negative value `-1' to `unsigned int'
main.cpp: In function `int process_read_dir_entry_cmd(client_t*,
netiso_read_dir_entry_cmd*, int)':
main.cpp:752: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:756: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:777: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:781: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:800: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:804: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:871: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp:871: warning: converting of negative value `-1' to `long long unsigned
int'
main.cpp: In function `int process_stat_cmd(client_t*, netiso_stat_cmd*)':
main.cpp:1141: warning: converting of negative value `-1' to `long long
unsigned int'
gcc -Wall -I. -std=gnu99 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=v7 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o compat.o compat.c
g++ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=32 -c -o File.o File.cpp
g++ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=32 -c -o VIsoFile.o VIsoFile.cpp
gcc -Wall -I. -std=gnu99 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=v7 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -L. -L. -o ps3netsrv main.o compat.o File.o VIsoFile.o -lstdc++ -lpthread


Anyone know how to fix those warnings as it seems the app doesn't work correctly when launched.

I can attach the source if anyone needs it?
Message 4 of 10
fastfwd
Virtuoso

Re: NAS newb: SPARC apps/compiling?

Those warnings are probably not what is keeping the app from working correctly.
Message 5 of 10
unbas
Initiate

Re: NAS newb: SPARC apps/compiling?

Hi MarkJ-UK

I have the same problem as you, I managed to compile the same source code for other processors as Mips and Mips but the sparc conn have the same problems as you.

The Warning we directly affect the sample and load games because of the GCC has the NV as they are quite old and although the "lucky compiles" does not work because of the version of the compiler
Message 6 of 10
TutenStain
Aspirant

Re: NAS newb: SPARC apps/compiling?

Did you manage to make it work? I have a ReadyNAS x64 that I would like the ps3netsrv plugin for. Thanks.
Message 7 of 10
fraka
Aspirant

Re: NAS newb: SPARC apps/compiling?

Try to add  -D__BIG_ENDIAN__ at the end of CPPFLAGS in the Makefile

 

Message 8 of 10
StephenB
Guru

Re: NAS newb: SPARC apps/compiling?


@fraka wrote:

Try to add  -D__BIG_ENDIAN__ at the end of CPPFLAGS in the Makefile

 


intel x64 processors are litte endian machines.

 

Generally its not a good idea to post on long-dead threads Smiley Wink

Message 9 of 10
fraka
Aspirant

Re: NAS newb: SPARC apps/compiling?


StephenB ha scritto:

@fraka wrote:

Try to add  -D__BIG_ENDIAN__ at the end of CPPFLAGS in the Makefile

 


intel x64 processors are litte endian machines.

 

Generally its not a good idea to post on long-dead threads Smiley Wink


 

Yes, but in the first post, MarkJ_UK talks about SPARC processor, i'm replying to him, but i forgot to quote message...ops...

I checked the post date, but i had the same problem and not found any solution for days...than i resolved...

i replied only because if someone have this problem can found the right answer at least here!

Message 10 of 10
Top Contributors
Discussion stats
  • 9 replies
  • 2502 views
  • 0 kudos
  • 7 in conversation
Announcements