Build error on gcc/g++ 12
~~~
src/osaf/consensus/key_value.cc: In static member function 'static int
KeyValue::Execute(const std::string&, std::string&)':
src/osaf/consensus/key_value.cc:25:30: error: aggregate 'std::array<char, 128>
buffer' has incomplete type and cannot be defined
25 | std::array<char, buf_size> buffer;
~~~
~~~
./src/amf/amfd/node.h:169:19: error: 'template<class _Arg1, class _Arg2, class
_Result> struct std::binary_function' is deprecated
[-Werror=deprecated-declarations]
169 | : public std::binary_function<AVD_AVND *, AVD_AVND *, bool> {
| ^~~~~~~~~~~~~~~
~~~
~~~
src/dtm/dtmnd/dtm_node_db.cc: In function 'uint32_t
dtm_node_delete(DTM_NODE_DB*, KeyTypes)':
src/dtm/dtmnd/dtm_node_db.cc:295:25: error: the address of 'node_list::node_ip'
will never be NULL [-Werror=address]
295 | if (node->node_ip != nullptr && node->pat_ip_address.key_info) {
| ~~~~~~~~~~~~~~^~~~~~~~~~
In file included from ./src/dtm/dtmnd/dtm.h:25,
from src/dtm/dtmnd/dtm_node_db.cc:26:
./src/dtm/dtmnd/dtm_cb.h:49:8: note: 'node_list::node_ip' declared here
49 | char node_ip[INET6_ADDRSTRLEN];
~~~
~~~
In function 'strncpy',
inlined from 'immnd_forkPbe' at src/imm/immnd/immnd_proc.c:1904:2:
/usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy'
destination unchanged after copying no bytes [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
~~~
src/smf/smfd/SmfProcedureThread.cc: In member function 'SaAisErrorT
SmfProcedureThread::getImmProcedure(SmfUpgradeProcedure*)':
src/smf/smfd/SmfProcedureThread.cc:461:12: error: '%s' directive argument is
null [-Werror=format-overflow=]
461 | LOG_NO("SmfProcedureThread::getImmProcedure, Using own IMM handle
%s",
~~~
---
**[tickets:#3346] osaf: build failed with gcc/g++ 12**
**Status:** unassigned
**Milestone:** 5.24.02
**Created:** Fri Jan 12, 2024 11:22 AM UTC by Thang Duc Nguyen
**Last Updated:** Fri Jan 12, 2024 11:22 AM UTC
**Owner:** nobody
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets