Ad Widget

Collapse

Zabbix is not building in OpenBSD 5.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gbernardes
    Junior Member
    • Mar 2011
    • 22

    #1

    Zabbix is not building in OpenBSD 5.5

    I'm trying to install Zabbix-agent 2.2.3 in OpenBSD 5.5 i386. But the following error occurs when execute # make install:

    mv -f .deps/libspecsysinfo_a-memory.Tpo .deps/libspecsysinfo_a-memory.Po
    gcc -DHAVE_CONFIG_H -I. -I../../../../include -I../../../../src/zabbix_agent/ -g -O2 -I/usr/local/include -MT libspecsysinfo_a-net.o -MD -MP -MF .deps/libspecsysinfo_a-net.Tpo -c -o libspecsysinfo_a-net.o `test -f 'net.c' || echo './'`net.c
    net.c: In function 'get_ifdata':
    net.c:41: error: storage size of 'head' isn't known
    net.c:85: error: storage size of 'v' isn't known
    net.c:93: error: invalid application of 'sizeof' to incomplete type 'struct ifnet_head'
    net.c:97: error: invalid application of 'sizeof' to incomplete type 'struct ifnet'
    *** Error 1 in src/libs/zbxsysinfo/openbsd (Makefile:449 'libspecsysinfo_a-net.o')
    *** Error 1 in src/libs/zbxsysinfo (Makefile:577 'install-recursive')
    *** Error 1 in src/libs (Makefile:391 'install-recursive')
    *** Error 1 in src (Makefile:367 'install-recursive')
    *** Error 1 in /root/zabbix-2.2.3 (Makefile:380 'install-recursive')

    Anyone have any suggestions? Is this a bug?
  • brunof
    Junior Member
    • Feb 2014
    • 1

    #2
    Me too =/

    Hi there!
    Same problem here fella!

    I have a proxy zabbix compiled in a OpenBSD5.4 server when a i tried to compile in the new enviroment BSD5.5 i got the errors below:

    net.c: In function 'get_ifdata':
    net.c:42: error: storage size of 'head' isn't known
    net.c:89: error: storage size of 'v' isn't known
    net.c:97: error: invalid application of 'sizeof' to incomplete type 'struct ifnet_head'
    net.c:101: error: invalid application of 'sizeof' to incomplete type 'struct ifnet'
    *** Error 1 in src/libs/zbxsysinfo/openbsd (Makefile:564 'libspecsysinfo_a-net.o')
    *** Error 1 in src/libs/zbxsysinfo (Makefile:615 'install-recursive')
    *** Error 1 in src/libs (Makefile:481 'install-recursive')
    *** Error 1 in src (Makefile:457 'install-recursive')
    *** Error 1 in /home/brunof/zabbix-2.4.0 (Makefile:469 'install-recursive')
    # ./configure --prefix=/usr --enable-proxy --with-net-snmp --with-mysql

    Comment

    • asaveljevs
      Zabbix developer
      • Feb 2010
      • 36

      #3
      This issue is now being tracked at ZBX-9467. Should have reported this earlier.

      Meanwhile, you can use the following patch to build: https://www.uoga.net/en/building-zab...enbsd-5-dot-4/ .

      Comment

      Working...