make error (Raspberry PI / SMA 8000TL)

139 views
Skip to first unread message

Oliver Schlecht

unread,
Jul 19, 2013, 5:54:27 PM7/19/13
to sma-bl...@googlegroups.com
Hi, I'm just new to all of this... sorry.

I tried to install an my PI the smatool. I used a description I found at http://ictoblog.nl/raspberry-pi/raspberrypi-pvoutput

I do have an issue while trying to "make" the the smatool.

pi@rpipv ~/bin/sma-bluetooth $ make
gcc -O2 -c smatool.c
smatool.c: In function 'main':
smatool.c:2336:11: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
smatool.c:2367:11: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
smatool.c:2399:14: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
gcc -O2 -c repost.c
repost.c: In function 'sma_repost':
repost.c:117:7: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
repost.c:117:7: warning: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
gcc -O2 -c sma_mysql.c
gcc -O2 -c almanac.c
gcc smatool.o repost.o sma_mysql.o almanac.o -O2 -fstack-protector-all -Wall -L/usr/lib/mysql -lmysqlclient -lbluetooth -lcurl -lm -o smatool 
pi@rpipv ~/bin/sma-bluetooth $ 

If I try to install it anyhow, I get another error:

pi@rpipv ~/bin/sma-bluetooth $ ./smatool --INSTALL

 Error ! not all codes set
*** glibc detected *** ./smatool: double free or corruption (top): 0x010fe038 ***
Abgebrochen
pi@rpipv ~/bin/sma-bluetooth $ 


Any chance to help me somehow???

Thx & Cheers! oli

Stephen Collier

unread,
Jul 24, 2013, 4:52:03 AM7/24/13
to sma-bl...@googlegroups.com
Oli,

What are you os are you using?

Cheers
Stephen



--
You received this message because you are subscribed to the Google Groups "sma-bluetooth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sma-bluetoot...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Claas Anders Rathje

unread,
Sep 2, 2013, 6:57:15 AM9/2/13
to sma-bl...@googlegroups.com
Wild guess: you are using 0.18, right?
 
This might has to do with the libc you are using.
 
I am trying to set up the software to run on an OpenWRT-Device and can compile the code on the host machine and it starts to query the inverter.
But as soon as I am doing this (with the exact same code, makefile and whatnot) it quits with the same message.
 
Somehow it does not read in the inverter codes from the file and the stuff in the config-variable is still linked to the initial NULL.
 
It might be worth a try to test the current version in mercurial since there had been some changes, but I did not give it a try since a constant lack of free time.
 
 
Regards,
Claas

Claas Anders Rathje

unread,
Sep 2, 2013, 12:32:07 PM9/2/13
to sma-bl...@googlegroups.com
I have just posted a patch which fixed that very problem for me.

Look at the patch attached to the "Patch to fix build on some embedded targets/architectures" post here.

Regards,
Claas


Am Freitag, 19. Juli 2013 23:54:27 UTC+2 schrieb Oliver Schlecht:
Reply all
Reply to author
Forward
0 new messages