NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
MarkJ_UK
Mar 23, 2014Aspirant
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.
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.
9 Replies
Replies have been turned off for this discussion
- doseasAspirantThere's a how-to here:
http://www.readynas.com/forum/viewtopic.php?f=35&t=30963 - MarkJ_UKAspirant
doseas wrote: There's a how-to.....
Thanks pal, will take a look and see how it goes. - MarkJ_UKAspirantManaged 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?- frakaAspirant
Try to add -D__BIG_ENDIAN__ at the end of CPPFLAGS in the Makefile
- fastfwdVirtuosoThose warnings are probably not what is keeping the app from working correctly.
- unbasInitiateHi 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 - TutenStainAspirantDid you manage to make it work? I have a ReadyNAS x64 that I would like the ps3netsrv plugin for. Thanks.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!