Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94F96C36001 for ; Sat, 22 Mar 2025 01:26:20 +0000 (UTC) Subject: Re: [yocto] Install zabbix-proxy To: "Gyorgy Sarvari" , yocto@lists.yoctoproject.org From: "Nitesh D" X-Originating-Location: Troy, Michigan, US (143.59.9.147) X-Originating-Platform: Mac Chrome 134 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 21 Mar 2025 18:26:14 -0700 References: In-Reply-To: Message-ID: <22795.1742606774386014983@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="JhKwf79GkX2EvMcE5kJ6" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 22 Mar 2025 01:26:20 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/65006 --JhKwf79GkX2EvMcE5kJ6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello there, So I have started my implementation but already running into an issue. My d= istro is based on `kirkstone` branch which has Zabbix version 5.4.12 and I = need Zabbix-proxy version 6 and above. Next stable branch for me is `Scarth= gap` and has the right version 6.2.7. I did override by copying https://git= .openembedded.org/meta-openembedded/tree/meta-oe/recipes-connectivity/zabbi= x/zabbix_6.2.7.bb?h=3Dscarthgap and I was able to compile as-is without any= issues. But I only need "zabbix-proxy" with sqlite3, so I created "zabbix_%.bbappen= d" file with following: >=20 >=20 >=20 > # Add required dependencies >=20 >=20 >=20 > DEPENDS +=3D "sqlite3" >=20 >=20 >=20 > # Add proxy to the list of packages >=20 >=20 >=20 > PACKAGES +=3D "${PN}-proxy" >=20 >=20 >=20 > # Define the files for the proxy package >=20 >=20 >=20 > FILES:${PN}-proxy =3D "\ >=20 >=20 >=20 > ${sbindir}/zabbix_proxy \ >=20 >=20 >=20 > ${sysconfdir}/zabbix/zabbix_proxy.conf \ >=20 >=20 >=20 > ${systemd_system_unitdir}/zabbix-proxy.service \ >=20 >=20 >=20 > " >=20 >=20 >=20 > # Add sqlite3 as a runtime dependency for the proxy >=20 >=20 >=20 > RDEPENDS:${PN}-proxy +=3D "sqlite3" >=20 >=20 >=20 > # Configure systemd for the proxy >=20 >=20 >=20 > SYSTEMD_PACKAGES +=3D "${PN}-proxy" >=20 >=20 >=20 > SYSTEMD_SERVICE:${PN}-proxy =3D "zabbix-proxy.service" >=20 >=20 >=20 > SYSTEMD_AUTO_ENABLE:${PN}-proxy =3D "enable" >=20 >=20 >=20 > # Add proxy configuration options >=20 >=20 >=20 > EXTRA_OECONF +=3D " \ >=20 >=20 >=20 > --enable-proxy \ >=20 >=20 >=20 > --with-sqlite3 \ >=20 >=20 >=20 > " >=20 >=20 >=20 > # Create proxy configuration file and systemd service >=20 >=20 >=20 > SRC_URI +=3D "file://zabbix-proxy.service" >=20 >=20 >=20 >=20 >=20 > do_install:append() { >=20 >=20 >=20 > # Install zabbix proxy configuration file >=20 >=20 >=20 > install -d ${D}${sysconfdir}/zabbix >=20 >=20 >=20 > install -m 0644 ${S}/conf/zabbix_proxy.conf ${D}${sysconfdir}/zabbix/ >=20 >=20 >=20 >=20 >=20 >=20 >=20 > # Install systemd service file for proxy >=20 >=20 >=20 > if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; > then >=20 >=20 >=20 > install -d ${D}${systemd_unitdir}/system >=20 >=20 >=20 > install -m 0644 ${WORKDIR}/zabbix-proxy.service > ${D}${systemd_unitdir}/system/ >=20 >=20 >=20 > sed -i -e 's#@SBINDIR@#${sbindir}#g' > ${D}${systemd_unitdir}/system/zabbix-proxy.service >=20 >=20 >=20 > fi >=20 >=20 >=20 > } >=20 >=20 >=20 >=20 >=20 >=20 >=20 But started to get errors: >=20 >=20 >=20 > | checking for SSH2 support... no >=20 >=20 >=20 > | configure: error: SSH2 library not found >=20 >=20 >=20 > | NOTE: The following config.log files may provide further information. >=20 >=20 >=20 > | checking for odbc_config... no >=20 >=20 >=20 > | checking for SQLAllocHandle in -lodbc... no >=20 >=20 >=20 > | configure: error: unixODBC library not found >=20 >=20 >=20 > | NOTE: The following config.log files may provide further information. >=20 >=20 >=20 > | checking for process shared libpthread support... no >=20 >=20 >=20 > | checking for libevent support... configure: error: Unable to use > libevent (libevent check failed) >=20 >=20 >=20 > | NOTE: The following config.log files may provide further information. >=20 >=20 I started adding following to EXTRA_OECONF: >=20 >=20 >=20 > EXTRA_OECONF +=3D " \ >=20 >=20 >=20 > --enable-proxy \ >=20 >=20 >=20 > --with-sqlite3 \ >=20 >=20 >=20 > --without-unixodbc \ >=20 >=20 >=20 > --without-ssh2 \ >=20 >=20 >=20 > " >=20 >=20 But now I'm in dead water... Any thoughts or suggestion? Cheers, --JhKwf79GkX2EvMcE5kJ6 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hello there, 
 
So I have started my implementation but already running into an issue.= My distro is based on `kirkstone` branch which has Zabbix version 5.4.12 a= nd I need Zabbix-proxy version 6 and above. Next stable branch for me is `S= carthgap` and has the right version 6.2.7. I did override by copying https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipe= s-connectivity/zabbix/zabbix_6.2.7.bb?h=3Dscarthgap and I was able to c= ompile as-is without any issues. 
 
But I only need "zabbix-proxy" with sqlite3, so I created "zabbix_%.bb= append" file with following:
 

# Add require= d dependencies

DEPENDS +=3D = "sqlite3"

# Add proxy t= o the list of packages

PACKAGES +=3D= "${PN}-proxy"

# Define the = files for the proxy package

FILES:${PN}-p= roxy =3D "\

    ${sbindir}/zabbix_proxy \

    ${sysconfdir}/zabbix/zabbix= _proxy.conf \

    ${systemd_system_unitdir}/z= abbix-proxy.service \

"

# Add sqlite3= as a runtime dependency for the proxy

RDEPENDS:${PN= }-proxy +=3D "sqlite3"

# Configure s= ystemd for the proxy

SYSTEMD_PACKA= GES +=3D "${PN}-proxy"

SYSTEMD_SERVI= CE:${PN}-proxy =3D "zabbix-proxy.service"

SYSTEMD_AUTO_= ENABLE:${PN}-proxy =3D "enable"

# Add proxy c= onfiguration options

EXTRA_OECONF = +=3D " \

    --enable-proxy \

    --with-sqlite3 \

"

# Create prox= y configuration file and systemd service

SRC_URI +=3D = "file://zabbix-proxy.service"

do_install:ap= pend() {

    # Install zabbix proxy conf= iguration file

    install -d ${D}${sysconfdir= }/zabbix

    install -m 0644 ${S}/conf/z= abbix_proxy.conf ${D}${sysconfdir}/zabbix/

 

    # Install systemd service f= ile for proxy

    if ${@bb.utils.contains('DI= STRO_FEATURES','systemd','true','false',d)}; then

        install -d ${= D}${systemd_unitdir}/system

        install -m 06= 44 ${WORKDIR}/zabbix-proxy.service ${D}${systemd_unitdir}/system/

        sed -i -e 's#= @SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/zabbix-proxy.service<= /span>

    fi

}

 

But started to get errors:

| checking fo= r SSH2 support... no

| configure: = error: SSH2 library not found

| NOTE: The f= ollowing config.log files may provide further information.

| checking fo= r odbc_config... no

| checking fo= r SQLAllocHandle in -lodbc... no

| configure: = error: unixODBC library not found

| NOTE: The f= ollowing config.log files may provide further information.

| check= ing for process shared libpthread support... no

| checking fo= r libevent support... configure: error: Unable to use libevent (libevent ch= eck failed)

| NOTE: The f= ollowing config.log files may provide further information.

I started adding following to EXTRA_OECONF:

EXTRA_OECONF = +=3D " \

    --enable-proxy \

    --with-sqlite3 \

    --without-unixodbc \=

    --without-ssh2 \

"

But now I'm in dead water... Any thoughts or suggestion? 
 
Cheers, 
--JhKwf79GkX2EvMcE5kJ6--