Hello,
There are a some build errors when building zabbix 1.3 on FreeBSD 6.1
The command I used:
./configure --enable-static --enable-agent --enable-server --with-mysql && make install
Also tried gmake, same problems.
GNU Make 3.81
gcc version 3.4.4 [FreeBSD] 20050518
These are files missing commas:
src/libs/zbxsysinfo/freebsd/cpu.c:152
src/libs/zbxsysinfo/freebsd/diskio.c:181
src/libs/zbxsysinfo/freebsd/diskio.c:192
src/libs/zbxsysinfo/freebsd/diskio.c:268
src/libs/zbxsysinfo/freebsd/diskspace.c:227
And files with inserted tabs between # and define or if
src/common.h - several lines
include/zbxtypes.h - several lines
src/libs/zbxsys/mutexs.c:27
When I fixed this tab problem I still get:
mutexs.c:28: error: redefinition of `union semun'
No problem when I comment this section out.
There is also a problem with the include of common.h, which includes zbxtypes.h:
src/libs/zbxcommon/misc.c:40: undefined reference to `__UINT64_C'
Fixed by putting #define __UINT64_C(x) x
in /include/commond.h. But it shouldn't be necessary there.
I can give you access to a FreeBSD machine if you want, so building and running zabbix on FreeBSD works.
Greetings,
Yorick
There are a some build errors when building zabbix 1.3 on FreeBSD 6.1
The command I used:
./configure --enable-static --enable-agent --enable-server --with-mysql && make install
Also tried gmake, same problems.
GNU Make 3.81
gcc version 3.4.4 [FreeBSD] 20050518
These are files missing commas:
src/libs/zbxsysinfo/freebsd/cpu.c:152
src/libs/zbxsysinfo/freebsd/diskio.c:181
src/libs/zbxsysinfo/freebsd/diskio.c:192
src/libs/zbxsysinfo/freebsd/diskio.c:268
src/libs/zbxsysinfo/freebsd/diskspace.c:227
And files with inserted tabs between # and define or if
src/common.h - several lines
include/zbxtypes.h - several lines
src/libs/zbxsys/mutexs.c:27
When I fixed this tab problem I still get:
mutexs.c:28: error: redefinition of `union semun'
No problem when I comment this section out.
There is also a problem with the include of common.h, which includes zbxtypes.h:
src/libs/zbxcommon/misc.c:40: undefined reference to `__UINT64_C'
Fixed by putting #define __UINT64_C(x) x
in /include/commond.h. But it shouldn't be necessary there.
I can give you access to a FreeBSD machine if you want, so building and running zabbix on FreeBSD works.
Greetings,
Yorick

Comment