Ad Widget

Collapse

OpenBSD 5.4 error when compiling Zabbix 2.2

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

    #1

    OpenBSD 5.4 error when compiling Zabbix 2.2

    I'm trying to compile Zabbix 2.2 on OpenBSD 5.4 i386. The "configure" seems to be OK
    # ./configure --enable-agent
    (...)

    Configuration:
    Detected OS: openbsd5.4
    Install path: /usr/local
    Compilation arch: openbsd
    Compiler: gcc
    Compiler flags: -g -O2 -I/usr/local/include

    Enable server: no
    Enable proxy: no
    Enable agent: yes
    Agent details:
    Linker flags: -L/usr/local/lib
    Libraries: -lkvm -lm -liconv

    Enable Java gateway: no
    LDAP support: no
    IPv6 support: no

    ************************************************** *********
    * Now run 'make install' *
    * *
    * Thank you for using Zabbix! *
    * <http://www.zabbix.com> *
    ************************************************** *********
    But when squeegee # make install returns the following error:

    (...)

    gcc -DHAVE_CONFIG_H -I. -I../../../../include -I../../../../src/zabbix_agent/ -g -O2 -I/usr/local/include -MT libspecsysinfo_a-swap.o -MD -MP -MF .deps/libspecsysinfo_a-swap.Tpo -c -o libspecsysinfo_a-swap.o `test -f 'swap.c' || echo './'`swap.c
    swap.c: In function 'get_swap_io':
    swap.c:167: error: 'struct uvmexp' has no member named 'swapins'
    swap.c:171: error: 'struct uvmexp' has no member named 'swapouts'
    *** Error 1 in src/libs/zbxsysinfo/openbsd (Makefile:505 'libspecsysinfo_a-swap.o')
    *** Error 1 in src/libs/zbxsysinfo (Makefile:561 'install-recursive')
    *** Error 1 in src/libs (Makefile:393 'install-recursive')
    *** Error 1 in src (Makefile:369 'install-recursive')*** Error 1 in /usr/local/src/zabbix-2.2.0 (Makefile:382 'install-recursive')
    #


    Anyone have solution for this problem?
  • jms703
    Junior Member
    • Dec 2013
    • 1

    #2
    I'm having the same issue. Have you found a workaround?

    Comment

    • gbernardes
      Junior Member
      • Mar 2011
      • 22

      #3
      I have not found solution to this problem. To circumvent the problem, the agent was compiled on an OpenBSD 5.3, then I copied the binaries and I'm using them in OpenBSD 5.4. I had to create two symbolic links for the agent to work, because upgrade versions of dependencies (preferred to do this rather than downgrade), described below:


      # ln -s /usr/lib/libc.so.69.0 /usr/lib/libc.so.66.2
      # ln -s /usr/lib/libm.so.8.0 /usr/lib/libm.so.7.1

      Comment

      Working...