---
** [tickets:#3279] ntf: Errors under compilation for 32 bit machine**
**Status:** unassigned
**Milestone:** 5.21.10
**Created:** Thu Aug 26, 2021 01:15 AM UTC by Thanh Nguyen
**Last Updated:** Thu Aug 26, 2021 01:15 AM UTC
**Owner:** Thanh Nguyen
Ticket 3277 patch has compilation errors when compiled for 32 bit machine.
Following is an extract of one compilation.
CXX src/ntf/ntfd/bin_osafntfd-NtfSubscription.o
In file included from ./src/base/ncs_osprm.h:32:0,
from ./src/mds/mds_papi.h:32,
from ./src/ntf/common/ntfsv_msg.h:26,
from ./src/ntf/ntfd/ntfs_com.h:33,
from ./src/ntf/ntfd/NtfNotification.h:29,
from ./src/ntf/ntfd/NtfFilter.h:29,
from ./src/ntf/ntfd/NtfSubscription.h:25,
from src/ntf/ntfd/NtfSubscription.cc:22:
src/ntf/ntfd/NtfSubscription.cc: In member function 'void
NtfSubscription::sendNotification(NtfSmartPtr&, NtfClient*)':
./src/base/logtrace.h:173:65: error: format '%lu' expects argument of type
'long unsigned int', but argument 6 has type 'MDS_DEST {aka long long unsigned
int}' [-Werror=format=]
logtrace_trace(FILE, __LINE, CAT_TRACE, (format), ##args)
^
src/ntf/ntfd/NtfSubscription.cc:305:9: note: in expansion of macro 'TRACE'
TRACE("Nodeid: %u, MdsDest: %lu", evt->info.mds_info.node_id,
^
./src/base/logtrace.h:163:61: error: format '%lu' expects argument of type
'long unsigned int', but argument 5 has type 'MDS_DEST {aka long long unsigned
int}' [-Werror=format=]
logtrace_log(FILE, __LINE, LOG_ERR, (format), ##args)
^
src/ntf/ntfd/NtfSubscription.cc:316:9: note: in expansion of macro 'LOG_ER'
LOG_ER("Down event missed for app with mdsdest: %lu on node: %u",
^
CXX src/ntf/ntfd/bin_osafntfd-NtfLogger.o
CXX src/ntf/ntfd/bin_osafntfd-NtfReader.o
cc1plus: all warnings being treated as errors
Makefile:21672: recipe for target 'src/ntf/ntfd/bin_osafntfd-NtfSubscription.o'
failed
---
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