Ad Widget

Collapse

Zabbix5 / FreeBSD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Helldesk
    Junior Member
    • Oct 2020
    • 1

    #1

    Zabbix5 / FreeBSD

    Hello!
    I'm trying to install zabbix5-server using FreeBSD ports collection:
    Making all in alerter
    Making all in dbsyncer
    Making all in dbconfig
    Making all in discoverer
    Making all in housekeeper
    Making all in httppoller
    Making all in pinger
    Making all in poller
    --- libzbxpoller_a-checks_snmp.o ---
    --- checks_internal_proxy.o ---
    --- libzbxpoller_server.a ---
    --- libzbxpoller_a-checks_snmp.o ---
    cc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/local/include -DLIBICONV_PLUG -I/usr/local/include -I../../../src/libs/zbxsysinfo/simple -I../../../src/libs/zbxdbcache -I/usr/local/include -I/include -I/usr/local/include -I/include -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include -I. -I/usr/local/include -I/usr/local/include -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -MT libzbxpoller_a-checks_snmp.o -MD -MP -MF .deps/libzbxpoller_a-checks_snmp.Tpo -c -o libzbxpoller_a-checks_snmp.o `test -f 'checks_snmp.c' || echo './'`checks_snmp.c
    --- checks_internal_proxy.o ---
    depbase=`echo checks_internal_proxy.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/local/include -DLIBICONV_PLUG -I/usr/local/include -I/usr/local/include -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -MT checks_internal_proxy.o -MD -MP -MF $depbase.Tpo -c -o checks_internal_proxy.o checks_internal_proxy.c && mv -f $depbase.Tpo $depbase.Po
    --- libzbxpoller_server.a ---
    rm -f libzbxpoller_server.a
    ar cru libzbxpoller_server.a libzbxpoller_server_a-checks_internal_server.o
    ranlib libzbxpoller_server.a
    --- libzbxpoller_proxy.a ---
    --- libzbxpoller_a-checks_snmp.o ---
    In file included from checks_snmp.c:26:
    In file included from /usr/local/include/net-snmp/net-snmp-includes.h:24:
    In file included from /usr/local/include/net-snmp/definitions.h:22:
    In file included from /usr/local/include/net-snmp/types.h:425:
    In file included from /usr/local/include/net-snmp/library/snmp_api.h:33:
    In file included from /usr/local/include/net-snmp/varbind_api.h:102:
    In file included from /usr/local/include/net-snmp/library/snmp_client.h:33:
    /usr/local/include/net-snmp/session_api.h:317:10: fatal error: 'net-snmp/library/snmpUDPIPv6Domain.h' file not found
    #include <net-snmp/library/snmpUDPIPv6Domain.h>
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    --- libzbxpoller_proxy.a ---
    rm -f libzbxpoller_proxy.a
    ar cru libzbxpoller_proxy.a checks_internal_proxy.o
    ranlib libzbxpoller_proxy.a
    --- libzbxpoller_a-checks_snmp.o ---
    1 error generated.
    *** [libzbxpoller_a-checks_snmp.o] Error code 1

    make[5]: stopped in /usr/ports/net-mgmt/zabbix5-server/work/zabbix-5.0.3/src/zabbix_server/poller
    1 error

    make[5]: stopped in /usr/ports/net-mgmt/zabbix5-server/work/zabbix-5.0.3/src/zabbix_server/poller
    ===> Compilation failed unexpectedly.
    Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
    the maintainer.
    *** Error code 1

    Stop.
    make[1]: stopped in /usr/ports/net-mgmt/zabbix5-server
    *** Error code 1

    Stop.
    can u give a hint about this error?

    my PC is:
    uname -a
    FreeBSD testbsd 12.2-RC3 FreeBSD 12.2-RC3 r366739 GENERIC amd64
    Thnak you!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Rebuild net-snmp with ipv6 support (net-snmp/library/snmpUDPIPv6Domain.h' file not found)
    cd /ust/port/net-mgmt/net-snmp && make config && make reinstall
    Last edited by Hamardaban; 27-10-2020, 10:58.

    Comment

    Working...