ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7481

Zabbix 2.2 and 2.0 fails to compile on OpenBSD 5.4

    Details

    • Type: Incident report Incident report
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.8, 2.2.0
    • Fix Version/s: 2.0.11rc1, 2.2.2rc1, 2.3.0
    • Component/s: Installation (I)
    • Labels:
      None
    • Environment:
      OpenBSD 5.4 amd64

      Description

      After upgrading hosts to OpenBSD 5.4, I'm no longer able to compile and install an agent. I've tried the very latest RC and still have this issue.

      joe@openbsd:~/zabbix-2.2.1rc1 $ make install
      Making install in src
      Making install in libs
      Making install in zbxcrypto
      Making install in zbxcommon
      Making install in zbxlog
      Making install in zbxalgo
      Making install in zbxnix
      Making install in zbxconf
      Making install in zbxsysinfo
      Making install in agent
      Making install in common
      Making install in simple
      Making install in openbsd
      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:503 'libspecsysinfo_a-swap.o')
          • Error 1 in src/libs/zbxsysinfo (Makefile:559 'install-recursive')
          • Error 1 in src/libs (Makefile:391 'install-recursive')
          • Error 1 in src (Makefile:367 'install-recursive')
          • Error 1 in /home/joe/zabbix-2.2.1rc1 (Makefile:380 'install-recursive')
            joe@openbsd:~/zabbix-2.2.1rc1 $

        Issue Links

          Activity

          Hide
          Joe Stevensen added a comment -

          Same problem exists with the new version 2.2.1.

          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:503 'libspecsysinfo_a-swap.o')
              • Error 1 in src/libs/zbxsysinfo (Makefile:559 'all-recursive')
              • Error 1 in src/libs (Makefile:391 'all-recursive')
              • Error 1 in src (Makefile:367 'all-recursive')
              • Error 1 in /home/joe/zabbix-2.2.1 (Makefile:380 'all-recursive')
          Show
          Joe Stevensen added a comment - Same problem exists with the new version 2.2.1. 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:503 'libspecsysinfo_a-swap.o') Error 1 in src/libs/zbxsysinfo (Makefile:559 'all-recursive') Error 1 in src/libs (Makefile:391 'all-recursive') Error 1 in src (Makefile:367 'all-recursive') Error 1 in /home/joe/zabbix-2.2.1 (Makefile:380 'all-recursive')
          Hide
          Joe Stevensen added a comment -

          Any update?

          Show
          Joe Stevensen added a comment - Any update?
          Hide
          Helmut Kreft added a comment -
          Show
          Helmut Kreft added a comment - The ucmexp struct members swapins/swapouts have been removed in 5.4. See detailed 5.4 changelog: http://www.openbsd.org/plus54.html . The manpage still mentions these members but a look into /usr/include/uvm/uvm_extern.h confirms them as being renamed to obsolete_swapins/obsolete_swapouts. The Zabbix 2.0.6 in the ports collection already has a patch for the issue: http://www.openbsd.org/cgi-bin/cvsweb/ports/net/zabbix/patches/patch-src_libs_zbxsysinfo_openbsd_swap_c?rev=1.1;content-type=text%2Fx-cvsweb-markup The patch applies readily to 2.0.9 and allows for a successful compile. So far I have not tested the resulting binary.
          Hide
          Igors Homjakovs added a comment -

          Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7481

          Show
          Igors Homjakovs added a comment - Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7481
          Hide
          Oleg Ivanivskyi added a comment -

          Zabbix v2.0.11rc1 installed successfully on openbsd5.4 ...

          Show
          Oleg Ivanivskyi added a comment - Zabbix v2.0.11rc1 installed successfully on openbsd5.4 ...
          Hide
          Aleksandrs Saveljevs added a comment - - edited

          Looks wonderful, except I have changed the way OpenBSD version number is referenced in the comment in r41508. Please take a look at that before merging.

          Igors Homjakovs Thank you for your changes. It looks better now

          Show
          Aleksandrs Saveljevs added a comment - - edited Looks wonderful, except I have changed the way OpenBSD version number is referenced in the comment in r41508. Please take a look at that before merging. Igors Homjakovs Thank you for your changes. It looks better now
          Hide
          Igors Homjakovs added a comment -

          Fixed in 2.0.11rc1 r41551, 2.2.2rc1 r41553 and 2.3.0(trunk) r41555.

          Show
          Igors Homjakovs added a comment - Fixed in 2.0.11rc1 r41551, 2.2.2rc1 r41553 and 2.3.0(trunk) r41555.

            People

            • Assignee:
              Unassigned
              Reporter:
              Joe Stevensen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: