You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile Homegear on Debian 12 with G++ 12.2.
src/HelperFunctions/Net.h, src/HelperFunctions/Math.h and src/Security/Gcrypt.cpp are missing ´#include ´, since they make use of std::array but do not import it.
This failed compilation with GCC 12.
Furthermore, the include order for sched.h seems wrong, since this happens:
In file included from Settings/Settings.cpp:31:
Settings/Settings.h:252:36: error: 'SCHED_OTHER' was not declared in this scope
252 | int32_t _rpcServerThreadPolicy = SCHED_OTHER;
| ^~~~~~~~~~~
Settings/Settings.h:252:36: note: the macro 'SCHED_OTHER' had not yet been defined
In file included from /usr/include/sched.h:43,
from /usr/include/pthread.h:22,
from /usr/include/aarch64-linux-gnu/c++/12/bits/gthr-default.h:35,
from /usr/include/aarch64-linux-gnu/c++/12/bits/gthr.h:148,
from /usr/include/c++/12/ext/atomicity.h:35,
from /usr/include/c++/12/bits/shared_ptr_base.h:61,
from /usr/include/c++/12/bits/shared_ptr.h:53,
from /usr/include/c++/12/memory:77,
from Settings/../Database/DatabaseTypes.h:38,
from Settings/../Database/IDatabaseController.h:34,
from Settings/../BaseLib.h:34,
from Settings/Settings.cpp:32:
/usr/include/aarch64-linux-gnu/bits/sched.h:28: note: it was later defined here
28 | #define SCHED_OTHER 0
This can be solved by switching the include order of BaseLib.h and Settings.h in Settings.cpp.
Since I am not sure of how development is done here, I did not create a pull request. If you point me to the branch you want, I can do that.
The text was updated successfully, but these errors were encountered:
Dear Maintainers,
I am trying to compile Homegear on Debian 12 with G++ 12.2.
src/HelperFunctions/Net.h
,src/HelperFunctions/Math.h
andsrc/Security/Gcrypt.cpp
are missing ´#include ´, since they make use ofstd::array
but do not import it.This failed compilation with GCC 12.
Furthermore, the include order for
sched.h
seems wrong, since this happens:This can be solved by switching the include order of BaseLib.h and Settings.h in
Settings.cpp
.Since I am not sure of how development is done here, I did not create a pull request. If you point me to the branch you want, I can do that.
The text was updated successfully, but these errors were encountered: