Ad Widget

Collapse

How to build the newest Zabbix version through custom OpenWRT build

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • carlsondev
    Junior Member
    • Jan 2024
    • 2

    #1

    How to build the newest Zabbix version through custom OpenWRT build

    I am trying to build a newer version of Zabbix (specifically the Zabbix agent) with a custom version of OpenWRT. I have been successful in building an older 6.0.x tagged version by changing the package source to the following and adding a "Package/Prepare/zabbix-bootstrap" section to bootstrap the autoconf files (Also below).
    Code:
    PKG_SOURCE_PROTO:=git
    PKG_SOURCE_URL:=...
    PKG_SOURCE_VERSION:=126aa2f53e952d2e4a5a93b2c0eb54ffe6ac5303
    PKG_MIRROR_HASH:=skip​
    Code:
    define Build/Prepare/zabbix-bootstrap
        cd $(PKG_BUILD_DIR) && ./bootstrap.sh
    endef
    define Build/Prepare
        $(call Build/Prepare/Default)
        $(call Build/Prepare/zabbix-bootstrap)
        $(call Build/Prepare/zabbix-extra-mac80211)
    endef​


    However, when attempting to use any commit tagged past version 6.0.x (6.4.x, 7.0.x, etc), the build/configure process complains "Unable to use libevent (libevent check failed)". I can see that there were some significant changes with the autoconf setup since the working version but I am not sure what could be causing this error in this build that did not cause it previously. Any advice on this general process and/or this error specifically is greatly appreciated.
  • Answer selected by carlsondev at 26-01-2024, 20:16.
    carlsondev
    Junior Member
    • Jan 2024
    • 2

    Solved: In addition to the bootstrap step, a new "libevent2-pthreads" dependency needed to be included in the main Zabbix package. All current versions (up to 7.0.0 pre-release) now build successfully.

    Comment

    • carlsondev
      Junior Member
      • Jan 2024
      • 2

      #2
      Solved: In addition to the bootstrap step, a new "libevent2-pthreads" dependency needed to be included in the main Zabbix package. All current versions (up to 7.0.0 pre-release) now build successfully.

      Comment

      Working...