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

Unable to build loadable module

    XMLWordPrintable

Details

    • Team B
    • Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022)
    • 0.125

    Description

      Steps to reproduce:

      Try to build a loadable module:

      1. run ./configure in the root of Zabbix source tree
      2. replace gcc to ${CC} in src/modules/dummy/Makefile
      3. run make inside src/modules/dummy/

      Result:

      zabbix 6.2.0-6.2.4rc1:

      # make
      cc -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' file not found
      #include "zbxtypes.h"
               ^~~~~~~~~~~~
      1 error generated.
      *** Error code 1
      
      Stop. 

      Expected:
      zabbix 6.0.0-6.0.9, 6.4.0beta1:

      # make
      cc -fPIC -shared -o dummy.so dummy.c -I../../../include  -I../../../include/common 

      Attachments

        Activity

          People

            asestakovs Aleksejs Sestakovs
            olorin Vyacheslav Terekhov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: