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

Compilation of loadable modules is broken

    XMLWordPrintable

Details

    Description

      Up to 6.2 it was enough to pass -I/path/to/zabbix/source/include and #include "module.h". But now module.h keeps including zbxtypes.h the old way:

      #include "zbxtypes.h"
      

      ...despite zbxtypes.h has been moved to include/common/.

      Even dummy module shipped with Zabbix source as an example is broken:

      $ git clone --depth=1 https://git.zabbix.com/scm/zbx/zabbix.git
      $ cd zabbix/
      $ ./bootstrap.sh 
      $ ./configure
      $ cd src/modules/dummy/
      $ make
      gcc -fPIC -shared -o dummy.so dummy.c -I../../../include
      In file included from dummy.c:25:
      ../../../include/module.h:23:10: fatal error: zbxtypes.h: No such file or directory
         23 | #include "zbxtypes.h"
            |          ^~~~~~~~~~~~
      compilation terminated.
      make: *** [Makefile:2: dummy] Error 1
      

      Nothing in Upgrade Notes on the topic.

      P.S. Looks related to DEV-2113.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            cyclone Glebs Ivanovskis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: