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...
MarkJ_UK
Mar 26, 2014Aspirant
Managed to setup a compiler on the NAS and compile this little app but have a few warnings during the process:
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?
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?
fraka
Aug 28, 2015Aspirant
Try to add -D__BIG_ENDIAN__ at the end of CPPFLAGS in the Makefile
- StephenBAug 28, 2015Guru - Experienced User
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 :smileywink:
- frakaAug 28, 2015Aspirant
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 :smileywink:
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!
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!