I'm trying to compile Zabbix 2.2 on OpenBSD 5.4 i386. The "configure" seems to be OK
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?
# ./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> *
************************************************** *********
(...)
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> *
************************************************** *********
(...)
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?
Comment