Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20864

Compilation warnings when building agent on AIX 7

    XMLWordPrintable

Details

    • Team B
    • Sprint 87 (Apr 2022), Sprint 88 (May 2022)
    • 1

    Description

      Getting these compilation warnings when building agent on AIX 7.1 or 7.2

      stats.c:383:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'long unsigned int' [-Wformat=]
        zabbix_log(LOG_LEVEL_DEBUG, "End of %s() extended diskstat shared memory: old_max:%d new_max:%d old_size:"
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      stats.c:385:42:
          new_max, (zbx_fs_size_t)old_shm_size, (zbx_fs_size_t)new_shm_size, old_shmid,
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../include/log.h:57:28: note: in definition of macro 'zabbix_log'
          __zbx_zabbix_log(level, __VA_ARGS__);      \
                                  ^~~~~~~~~~~
      In file included from ../../include/module.h:23,
                       from ../../include/common.h:24,
                       from ../../include/threads.h:23,
                       from stats.h:23,
                       from stats.c:20:
      ../../include/zbxtypes.h:134:28: note: format string is defined here
       #   define ZBX_FS_UI64 "%llu"
                               ~~~^
                               %lu
      

      Lots of them.

      Attachments

        Activity

          People

            yurii Jurijs Klopovskis
            yurii Jurijs Klopovskis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: