Cannot builld latest ember-plus plugin on suse-16 and and ubuntu-26.04

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: 8.0.0beta1 (master)
    • Component/s: None
    • None

      On opensuse-16 leap

      go build -o "/tmp/build-opensuseleap-1600-x86_64.qwWLNDru/buildroot/BUILD/zabbix-agent2-plugin-ember-plus-8.0.0-build/zabbix-agent2-plugin-ember-plus-8.0.0beta1/zabbix-agent2-plugin-ember-plus"
      # golang.zabbix.com/plugin/ember-plus/plugin/emberlib
      In file included from ./libember/libember_slim/Source/ber.h:13,
                       from ./libember/libember_slim/Source/ember.h:13,
                       from ./libember/libember_slim/Source/glow.h:13,
                       from ./libember/libember_slim/Source/glowtx.h:13,
                       from ./libember/libember_slim/Source/emberplus.h:20,
                       from plugin/emberlib/emberlib.go:24:
      ./libember/libember_slim/Source/bertypes.h:83:13: error: 'bool' cannot be defined via 'typedef'
         83 | typedef int bool;
            |             ^~~~
      ./libember/libember_slim/Source/bertypes.h:83:13: note: 'bool' is a keyword with '-std=c23' onwards
      make: *** [Makefile:96: build] Error 1 

      On ubuntu-26.04

      [ 50%] Linking C shared library libember_slim-shared.so
      /usr/bin/x86_64-linux-gnu-ld.bfd: /usr/lib/gcc/x86_64-linux-gnu/15/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
      (.text+0x1b): undefined reference to `main'
      collect2: error: ld returned 1 exit status
      make[5]: *** [CMakeFiles/ember_slim-shared.dir/build.make:277: libember_slim-shared.so] Error 1
      make[4]: *** [CMakeFiles/Makefile2:90: CMakeFiles/ember_slim-shared.dir/all] Error 2
      make[3]: *** [Makefile:136: all] Error 2
      make[3]: Leaving directory '/tmp/build-ubuntu-2604-x86_64.XFqJvQOk/buildroot/zabbix-agent2-plugin-ember-plus-8.0.0beta1/libember/build'
      make[2]: *** [/tmp/build-ubuntu-2604-x86_64.XFqJvQOk/buildroot/zabbix-agent2-plugin-ember-plus-8.0.0beta1/libember/Makefile.mk:65: /tmp/build-ubuntu-2604-x86_64.XFqJvQOk/buildroot/zabbix-agent2-plugin-ember-plus-8.0.0beta1/libember/build/libember_slim-static.a] Error 2
      make[2]: Leaving directory '/tmp/build-ubuntu-2604-x86_64.XFqJvQOk/buildroot/zabbix-agent2-plugin-ember-plus-8.0.0beta1'
      make[1]: *** [debian/rules:10: override_dh_auto_build] Error 2
      make[1]: Leaving directory '/tmp/build-ubuntu-2604-x86_64.XFqJvQOk/buildroot/zabbix-agent2-plugin-ember-plus-8.0.0beta1'
      make: *** [debian/rules:4: binary] Error 2

      Also getting a lot of warning, even on systems where builds are successful.

      /tmp/build-ubuntu-2604-x86_64.XFqJvQOk/buildroot/zabbix-agent2-plugin-ember-plus-8.0.0beta1/libember/libember_slim/Source/glow.h:369:39: warning: ISO C restricts enumerator values to range of 'int' before C23 [-Wpedantic]
        369 |    GlowFieldFlag_Sparse             = 0xFFFFFFFE
            |                                       ^~~~~~~~~~

            Assignee:
            Michael Veksler
            Reporter:
            Jurijs Klopovskis
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 4h
                4h