Codice: Seleziona tutto
GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Codice: Seleziona tutto
libpng12-0 ( libpng16-16 )
wx2.8-headers ( wx3.0-headers )
libwxbase2.8-0 ( libwxbase3.0-0v5 )
libwxbase2.8-dev ( libwxbase3.0-dev )
wx-common ( wx-common )
libwxgtk2.8-0 ( libwxgtk3.0-gtk3-0v5 )
libwxgtk2.8-dev ( libwxgtk3.0-gtk3-dev )
Codice: Seleziona tutto
CPPFLAGS = -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__
CXXFLAGS = -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__
Codice: Seleziona tutto
sudo make
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions auroramonApp.cpp
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions auroramonMain.cpp
auroramonMain.cpp: In function ‘void OpenLogFiles(int, int)’:
auroramonMain.cpp:610:28: warning: ‘%.2d’ directive writing between 2 and 11 bytes into a region of size between 1 and 8 [-Wformat-overflow=]
610 | sprintf(date_ymd, "%.4d%.2d%.2d", btime->tm_year+1900, btime->tm_mon+1, btime->tm_mday);
| ^~~~
auroramonMain.cpp:610:23: note: directive argument in the range [-2147483647, 2147483647]
610 | sprintf(date_ymd, "%.4d%.2d%.2d", btime->tm_year+1900, btime->tm_mon+1, btime->tm_mday);
| ^~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:894,
from /usr/include/wx-3.0/wx/string.h:39,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/app.h:19,
from /usr/include/wx-3.0/wx/aboutdlg.h:17,
from auroramonMain.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: ‘__builtin___sprintf_chk’ output between 9 and 34 bytes into a destination of size 12
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
auroramonMain.cpp: In member function ‘int Mainframe::DataResponse(int, INVERTER_RESPONSE*)’:
auroramonMain.cpp:841:23: warning: ‘%.2d’ directive writing between 2 and 11 bytes into a region of size between 9 and 16 [-Wformat-overflow=]
841 | sprintf(ymd, "%.4d%.2d%.2d", btime.tm_year+1900, btime.tm_mon+1, btime.tm_mday);
| ^~~~
auroramonMain.cpp:841:18: note: directive argument in the range [-2147483647, 2147483647]
841 | sprintf(ymd, "%.4d%.2d%.2d", btime.tm_year+1900, btime.tm_mon+1, btime.tm_mday);
| ^~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:894,
from /usr/include/wx-3.0/wx/string.h:39,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/app.h:19,
from /usr/include/wx-3.0/wx/aboutdlg.h:17,
from auroramonMain.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: ‘__builtin___sprintf_chk’ output between 9 and 34 bytes into a destination of size 20
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
auroramonMain.cpp:1076:51: warning: ‘%.2d’ directive writing between 2 and 3 bytes into a region of size between 2 and 7 [-Wformat-overflow=]
1076 | sprintf(iv->current_timestring, "%.2d:%.2d:%.2d", hrs, mins, seconds % 60);
| ^~~~
auroramonMain.cpp:1076:45: note: directive argument in the range [-59, 59]
1076 | sprintf(iv->current_timestring, "%.2d:%.2d:%.2d", hrs, mins, seconds % 60);
| ^~~~~~~~~~~~~~~~
auroramonMain.cpp:1076:45: note: directive argument in the range [-59, 59]
In file included from /usr/include/stdio.h:894,
from /usr/include/wx-3.0/wx/string.h:39,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/event.h:16,
from /usr/include/wx-3.0/wx/app.h:19,
from /usr/include/wx-3.0/wx/aboutdlg.h:17,
from auroramonMain.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: ‘__builtin___sprintf_chk’ output between 9 and 16 bytes into a destination of size 10
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions chart.cpp
chart.cpp: In member function ‘int GraphPanel::OnKey2(wxKeyEvent&)’:
chart.cpp:437:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
437 | if(event.GetModifiers() == wxMOD_CONTROL)
| ^~
chart.cpp:440:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
440 | switch(key)
| ^~~~~~
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions dialog.cpp
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions graphdialog.cpp
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions statuspanel.cpp
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions dates.cpp
dates.cpp: In function ‘void FindDates()’:
dates.cpp:156:9: warning: variable ‘prev_doy’ set but not used [-Wunused-but-set-variable]
156 | int prev_doy = 999;
| ^~~~~~~~
dates.cpp:157:9: warning: variable ‘prev_yearix’ set but not used [-Wunused-but-set-variable]
157 | int prev_yearix = -1;
| ^~~~~~~~~~~
dates.cpp:158:11: warning: variable ‘prev_energy_total’ set but not used [-Wunused-but-set-variable]
158 | float prev_energy_total=0;
| ^~~~~~~~~~~~~~~~~
dates.cpp: In function ‘void UpdateDailyData(int, wxString)’:
dates.cpp:548:30: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
548 | fgets(buf_inv, sizeof(buf_inv), f_inv);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions sun.cpp
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions comms.cpp
comms.cpp: In function ‘int SerialOpen()’:
comms.cpp:364:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
364 | if(dev_name[0] == 0)
| ^~
comms.cpp:367:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
367 | if(stat(dev_name,&statbuf) != 0)
| ^~
comms.cpp: In function ‘long unsigned int ConvertLong(char*)’:
comms.cpp:683:12: warning: array subscript ‘long unsigned int[0]’ is partly outside array bounds of ‘unsigned char [4]’ [-Warray-bounds]
683 | return(*p & 0xffffffff);
| ^~
comms.cpp:665:19: note: while referencing ‘buf2’
665 | unsigned char buf2[4];
| ^~~~
comms.cpp: In function ‘int GetCEdata(int, int)’:
comms.cpp:683:12: warning: array subscript ‘long unsigned int[0]’ is partly outside array bounds of ‘unsigned char [4]’ [-Warray-bounds]
683 | return(*p & 0xffffffff);
| ^~
comms.cpp:665:19: note: while referencing ‘buf2’
665 | unsigned char buf2[4];
| ^~~~
comms.cpp: In function ‘time_t GetInverterTime(int, time_t*, int*)’:
comms.cpp:683:12: warning: array subscript ‘long unsigned int[0]’ is partly outside array bounds of ‘unsigned char [4]’ [-Warray-bounds]
683 | return(*p & 0xffffffff);
| ^~
comms.cpp:665:19: note: while referencing ‘buf2’
665 | unsigned char buf2[4];
| ^~~~
comms.cpp: In function ‘int GetInverterInfo(int)’:
comms.cpp:683:12: warning: array subscript ‘long unsigned int[0]’ is partly outside array bounds of ‘unsigned char [4]’ [-Warray-bounds]
683 | return(*p & 0xffffffff);
| ^~
comms.cpp:665:19: note: while referencing ‘buf2’
665 | unsigned char buf2[4];
| ^~~~
g++ -O2 -s -Wall -fexceptions `wx-config --cflags` -I/usr/include/wx-3.0 -D__WXGTK__ -I. -c -fno-exceptions alarms.cpp
alarms.cpp: In function ‘void GotInverterStatus(int)’:
alarms.cpp:551:45: warning: ‘%.2d’ directive writing between 2 and 11 bytes into a region of size between 8 and 15 [-Wformat-overflow=]
551 | sprintf(buf_date, "%.4d-%.2d-%.2d", btime->tm_year+1900, btime->tm_mon+1, btime->tm_mday);
| ^~~~
alarms.cpp:551:39: note: directive argument in the range [-2147483647, 2147483647]
551 | sprintf(buf_date, "%.4d-%.2d-%.2d", btime->tm_year+1900, btime->tm_mon+1, btime->tm_mday);
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:894,
from /usr/include/wx-3.0/wx/string.h:39,
from /usr/include/wx-3.0/wx/memory.h:15,
from /usr/include/wx-3.0/wx/object.h:19,
from /usr/include/wx-3.0/wx/wx.h:15,
from auroramon.h:28,
from alarms.cpp:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:38:34: note: ‘__builtin___sprintf_chk’ output between 11 and 36 bytes into a destination of size 20
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
g++ -o auroramon auroramonApp.o auroramonMain.o chart.o dialog.o graphdialog.o statuspanel.o dates.o sun.o comms.o alarms.o -lstdc++ `wx-config --libs`
Codice: Seleziona tutto
sudo cp auroramon /usr/local/bin
Codice: Seleziona tutto
auroramon
(process:6417): Gtk-CRITICAL **: 11:57:48.672: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(process:6417): Gtk-CRITICAL **: 11:57:48.673: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(process:6417): Gtk-CRITICAL **: 11:57:48.673: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Errore di segmentazione (core dump creato)
grazie