View Full Version : OpenBSD 3.8 [amd64] build errors
Hi all
OpenBSD 3.8 -stable / amd64 [dual Opteron 242]
Zabbix 1.1beta2
While building I receive these errors:
[...]
configure: WARNING: sys/mount.h: present but cannot be compiled
configure: WARNING: sys/mount.h: check for missing prerequisite headers?
configure: WARNING: sys/mount.h: see the Autoconf documentation
configure: WARNING: sys/mount.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/mount.h: proceeding with the preprocessor's result
configure: WARNING: sys/mount.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
checking for sys/mount.h... yes
[...]
- and the same goes for swap.h and sysctl.h
Annoying part is that I have all the header files in both
/usr/src/sys/sys/
and
/usr/include/sys/
Any comments or ideas ?
/per
Warnings yes, but the bin files are not generated during 'make' ..
I have no binaries to copy to /usr/local/bin and subsequently can't run zabbix. That's the problem and that's why I started to look at the buildprocess and found the warnings.
P.S. I have all dependencies in place before compiling.
/per
./configure --prefix=<DIR> ...
make install
Your binaries will be in <DIR>/bin.
I've now specified the --prefix=/usr/local/bin during build like:
#./configure --prefix=/usr/local/bin --enable-server --enable-agent --enable-static --with-mysql --with-net-snmp
# make [install]
[OpenBSD 3.8 GENERIC.MP / amd64 / zabbix-1.1beta4]
I received a lot of kvm* errors (just pasted a part of output below) and still have not bin files in /usr/local/bin - the latter is expected from the output.
I've build both as root from /var/tmp/ and I've build as <user> from $HOME - same-same.
Any suggestions will be appreciated.
[...]
/var/tmp/zabbix-1.1beta4/src/libs/zbxnet/security.c:76: warning: strcpy() is almost always misused, please use strlcpy()
../libs/zbxlog/libzbxlog.a(log.o)(.text+0x354): In function `zabbix_log':
/var/tmp/zabbix-1.1beta4/src/libs/zbxlog/log.c:135: warning: strcat() is almost always misused, please use strlcat()
../libs/zbxsysinfo/libzbxsysinfo.a(common.o)(.text+0x1082): In function `VFS_FILE_MD5SUM':
common/common.c:576: warning: sprintf() is often misused, please use snprintf()
../libs/zbxlog/libzbxlog.a(log.o)(.text+0x3b1): In function `zabbix_log':
/var/tmp/zabbix-1.1beta4/src/libs/zbxlog/log.c:103: warning: vsprintf() is often misused, please use vsnprintf()
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(net.o)(.text+0x30): In function `get_ifdata':
/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/net.c:44: undefined reference to `kvm_open'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(net.o)(.text+0x54):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/net.c:50: undefined reference to `kvm_nlist'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(net.o)(.text+0x7e):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/net.c:59: undefined reference to `kvm_read'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(net.o)(.text+0x9d):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/net.c:64: undefined reference to `kvm_read'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(net.o)(.text+0xe4):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/net.c:82: undefined reference to `kvm_close'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(proc.o)(.text+0x1b4): In function `PROC_MEMORY':
/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/proc.c:119: undefined reference to `kvm_open'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(proc.o)(.text+0x1d3):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/proc.c:122: undefined reference to `kvm_getprocs'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(proc.o)(.text+0x2a1):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/proc.c:185: undefined reference to `kvm_close'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(proc.o)(.text+0x577): In function `PROC_NUM':
/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/proc.c:292: undefined reference to `kvm_open'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(proc.o)(.text+0x596):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/proc.c:295: undefined reference to `kvm_getprocs'
../libs/zbxsysinfo/openbsd/libzbxsysinfo2.a(proc.o)(.text+0x645):/var/tmp/zabbix-1.1beta4/src/libs/zbxsysinfo/openbsd/proc.c:347: undefined reference to `kvm_close'
collect2: ld returned 1 exit status
*** Error code 1
Stop in /var/tmp/zabbix-1.1beta4/src/zabbix_agent (line 251 of Makefile).
*** Error code 1
Stop in /var/tmp/zabbix-1.1beta4/src/zabbix_agent (line 316 of Makefile).
*** Error code 1
Stop in /var/tmp/zabbix-1.1beta4/src (line 219 of Makefile).
*** Error code 1
Stop in /var/tmp/zabbix-1.1beta4 (line 254 of Makefile).
[...]
/per
[solved]
The kvm* errors handed me the solution. Silly /me.
Solution was to configure && make as <user> from $HOME and to 'make install' from <user> as root ... and remember to grant privileges to <user> on zabbix db beforehand! :rolleyes:
No --prefix used during ./configure (defaults to /usr/local)
Sorry about the noice.
/per