Open GoogleCodeExporter opened 8 years ago
I'm getting the same type of error. I'm trying to get it working on my openwrt
netgear wndr3700 (mips). Compiling it on a ubuntu box with -Wall shows the
following:
make[3]: Entering directory
`/home/stefan/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33/sma-bluetooth
-0.17'
mips-openwrt-linux-uclibc-gcc -lbluetooth -lcurl -lm
-L/home/stefan/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33/usr/lib/my
sql -lmysqlclient -g -Wall -o smatool smatool.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
smatool.c: In function 'fix_length_send':
smatool.c:212:13: warning: variable 'delta' set but not used
[-Wunused-but-set-variable]
smatool.c: In function 'fix_length_received':
smatool.c:265:13: warning: variable 'delta' set but not used
[-Wunused-but-set-variable]
smatool.c: In function 'get_timezone_in_seconds':
smatool.c:597:10: warning: variable 'returntime' set but not used
[-Wunused-but-set-variable]
smatool.c: In function 'auto_set_dates':
smatool.c:967:44: warning: variable 'second' set but not used
[-Wunused-but-set-variable]
smatool.c: In function 'GetInverterSetting':
smatool.c:1470:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1470:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1473:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1473:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1475:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1475:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1477:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c:1477:24: warning: format '%X' expects argument of type 'unsigned int
*', but argument 3 has type 'unsigned char *' [-Wformat]
smatool.c: In function 'main':
smatool.c:2059:87: warning: comparison between pointer and integer [enabled by
default]
smatool.c:2580:12: warning: "/*" within comment [-Wcomment]
smatool.c:2747:19: warning: variable 'starttotal' set but not used
[-Wunused-but-set-variable]
smatool.c:1750:47: warning: variable 'datapoint' set but not used
[-Wunused-but-set-variable]
smatool.c:1726:43: warning: variable 'rangedatastarted' set but not used
[-Wunused-but-set-variable]
smatool.c:1726:28: warning: variable 'setupstarted' set but not used
[-Wunused-but-set-variable]
smatool.c:1726:14: warning: variable 'initstarted' set but not used
[-Wunused-but-set-variable]
smatool.c:1724:13: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
smatool.c:1811:19: warning: 'returnkeylist' may be used uninitialized in this
function [-Wuninitialized]
smatool.c:2418:51: warning: 'crc_at_end' may be used uninitialized in this
function [-Wuninitialized]
make[3]: Leaving directory
`/home/stefan/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33/sma-bluetooth
-0.17'
Original comment by stefan.v...@gmail.com
on 13 May 2012 at 10:40
try the official instructions:
gcc -lbluetooth -lcurl -lmysqlclient -g -o smatool smatool.c
Original comment by mcknigh...@gmail.com
on 16 May 2012 at 7:10
That generates a i386 binary, which doesn't run on the openwrt (netgear
wndr3700) mips based router.
Original comment by stefan.v...@gmail.com
on 16 May 2012 at 8:24
Hi,
i will get my solar system at monday and so im now reading the source of
smatool as i possibly will run into the ADDR2 bug.
First thing i have created is a c makro to replace all if(debug == 1)
printf(..):
#define debug_printf(...) if( debug == 1 ) { printf("%s line %d: ", __FILE__,
__LINE__); printf (__VA_ARGS__); }
When you use this and use the -d you will get an idea from which line of code
your coredump is comming from.
Original comment by janus44...@gmail.com
on 19 May 2012 at 3:19
On fedora 16 I got the same issue:
sma-bluetooth-0.17]# gcc -L/usr/lib64/mysql/ -lm -lbluetooth -lcurl -lmysqlclient -g -o smatool smatool.c
smatool.c: In function âmainâ:
smatool.c:2059:87: warning: comparison between pointer and integer [enabled by
default]
Original comment by sendtore...@gmail.com
on 25 May 2012 at 6:40
Original issue reported on code.google.com by
m...@msmith.com.au
on 10 May 2012 at 2:24