Menu

#3279 ntf: Errors under compilation for 32 bit machine

5.21.09
fixed
None
defect
ntf
-
minor
False
2021-09-14
2021-08-26
No

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

Related

Wiki: ChangeLog-5.21.09

Discussion

  • Thanh Nguyen

    Thanh Nguyen - 2021-08-26
    • status: unassigned --> assigned
     
  • Gary Lee

    Gary Lee - 2021-09-14

    commit 2249c5f7035ad7ec31b2ecd71b88a4d35745acd3
    Author: Thanh Nguyen thanh.nguyen@dektech.com.au
    Date: Tue Aug 31 08:06:52 2021 +1000

    ntf: Fix compilation errors for 32 bit machine [#3279]
    
    Patch for ticket 3277 failed compilation for 32 bit machine.
    This patch fixes these compilation errors.
    
     
  • Gary Lee

    Gary Lee - 2021-09-14
    • status: assigned --> fixed
     

Log in to post a comment.

MongoDB Logo MongoDB