Anyone successfully compile and install zabbix for Solaris 10 Sparc/Intel?
I try to compile a zabbix agent for Sol10 Sparc/Intel.
Here is my compilation procedure:
-download and install latest freetype, gcc, gd, gdb, gdbm, jpeg, libiconv, libpng, make, zlib from sunfreeware
-compile
# ./configure
checking signal.h usability... no
checking signal.h presence... yes
configure: WARNING: signal.h: present but cannot be compiled
configure: WARNING: signal.h: check for missing prerequisite headers?
configure: WARNING: signal.h: proceeding with the preprocessor's result
checking for signal.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking mtent.h usability... no
checking mtent.h presence... no
checking for mtent.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for sys/socket.h... (cached) yes
checking sys/loadavg.h usability... yes
checking sys/loadavg.h presence... yes
checking for sys/loadavg.h... yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking sys/swap.h usability... no
checking sys/swap.h presence... yes
configure: WARNING: sys/swap.h: present but cannot be compiled
configure: WARNING: sys/swap.h: check for missing prerequisite headers?
configure: WARNING: sys/swap.h: proceeding with the preprocessor's result
checking for sys/swap.h... yes
checking sys/vmmeter.h usability... yes
checking sys/vmmeter.h presence... yes
checking for sys/vmmeter.h... yes
checking for strings.h... (cached) yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... no
checking for sys/sysctl.h... no
checking vm/vm_param.h usability... no
checking vm/vm_param.h presence... no
checking for vm/vm_param.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking kstat.h usability... yes
checking kstat.h presence... yes
checking for kstat.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/procfs.h usability... no
checking sys/procfs.h presence... yes
configure: WARNING: sys/procfs.h: present but cannot be compiled
configure: WARNING: sys/procfs.h: check for missing prerequisite headers?
configure: WARNING: sys/procfs.h: proceeding with the preprocessor's result
checking for sys/procfs.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for socklen_t... yes
checking for /proc filesystem... yes
checking for file /proc/1/status... yes
checking for file /proc/0/psinfo... yes
checking for file /proc/loadavg... no
checking for file /proc/net/dev... no
checking for mem_unit in struct sysinfo... no
checking for freeswap in struct sysinfo... no
checking for function sysconf() in unistd.h... yes
checking for vmtotal in struct sys/vmmeter.h... no
checking for struct swaptable in sys/swap.h... no
checking for totalswap in struct sysinfo... no
checking for function sysctl (KERN_BOOTTIME)... no
checking for function sysctl (KERN_MAXFILES)... no
checking for function sysctl (KERN_MAXPROC)... no
checking for function seteuid()... yes
checking for function setproctitle()... no
checking for totalram in struct sysinfo... no
checking for totalram in struct sysinfo... no
checking for sharedram in struct sysinfo... no
checking for bufferram in struct sysinfo... no
checking for freeram in struct sysinfo... no
checking for uptime in struct sysinfo... no
checking for procs in struct sysinfo... no
checking return type of signal handlers... int
checking for getloadavg... yes
checking for socket... yes
checking for strtod... yes
checking for snprintf... yes
configure: No database selected! Use --with-XXX where XXX is your preferred database type
configure: Server processes (zabbix_suckerd and zabbix_trapper) will not be created !
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/zabbix_sender/Makefile
config.status: creating src/zabbix_agent/Makefile
config.status: creating src/zabbix_sucker/Makefile
config.status: creating src/zabbix_trapper/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
# make
Making all in src/zabbix_agent
make[1]: Entering directory `/download/zabbix-1.0/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl -lkstat -lsocket
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from zabbix_agent.c:26:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from zabbix_agent.c:26:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from zabbix_agent.c:26:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
In file included from /usr/include/sys/signal.h:34,
from /usr/include/sys/procfs.h:36,
from sysinfo.c:55:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procfs.h:36,
from sysinfo.c:55:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from sysinfo.c:55:
/usr/include/sys/procfs.h:108: error: parse error before "siginfo_t"
/usr/include/sys/procfs.h:130: error: parse error before '}' token
/usr/include/sys/procfs.h:164: error: parse error before "lwpstatus_t"
make[1]: *** [all] Error 1
make[1]: Leaving directory `/download/zabbix-1.0/src/zabbix_agent'
make: *** [all] Error 1
I try to compile a zabbix agent for Sol10 Sparc/Intel.
Here is my compilation procedure:
-download and install latest freetype, gcc, gd, gdb, gdbm, jpeg, libiconv, libpng, make, zlib from sunfreeware
-compile
# ./configure
checking signal.h usability... no
checking signal.h presence... yes
configure: WARNING: signal.h: present but cannot be compiled
configure: WARNING: signal.h: check for missing prerequisite headers?
configure: WARNING: signal.h: proceeding with the preprocessor's result
checking for signal.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking mtent.h usability... no
checking mtent.h presence... no
checking for mtent.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for sys/socket.h... (cached) yes
checking sys/loadavg.h usability... yes
checking sys/loadavg.h presence... yes
checking for sys/loadavg.h... yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking sys/swap.h usability... no
checking sys/swap.h presence... yes
configure: WARNING: sys/swap.h: present but cannot be compiled
configure: WARNING: sys/swap.h: check for missing prerequisite headers?
configure: WARNING: sys/swap.h: proceeding with the preprocessor's result
checking for sys/swap.h... yes
checking sys/vmmeter.h usability... yes
checking sys/vmmeter.h presence... yes
checking for sys/vmmeter.h... yes
checking for strings.h... (cached) yes
checking sys/sysctl.h usability... no
checking sys/sysctl.h presence... no
checking for sys/sysctl.h... no
checking vm/vm_param.h usability... no
checking vm/vm_param.h presence... no
checking for vm/vm_param.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking kstat.h usability... yes
checking kstat.h presence... yes
checking for kstat.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/procfs.h usability... no
checking sys/procfs.h presence... yes
configure: WARNING: sys/procfs.h: present but cannot be compiled
configure: WARNING: sys/procfs.h: check for missing prerequisite headers?
configure: WARNING: sys/procfs.h: proceeding with the preprocessor's result
checking for sys/procfs.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for socklen_t... yes
checking for /proc filesystem... yes
checking for file /proc/1/status... yes
checking for file /proc/0/psinfo... yes
checking for file /proc/loadavg... no
checking for file /proc/net/dev... no
checking for mem_unit in struct sysinfo... no
checking for freeswap in struct sysinfo... no
checking for function sysconf() in unistd.h... yes
checking for vmtotal in struct sys/vmmeter.h... no
checking for struct swaptable in sys/swap.h... no
checking for totalswap in struct sysinfo... no
checking for function sysctl (KERN_BOOTTIME)... no
checking for function sysctl (KERN_MAXFILES)... no
checking for function sysctl (KERN_MAXPROC)... no
checking for function seteuid()... yes
checking for function setproctitle()... no
checking for totalram in struct sysinfo... no
checking for totalram in struct sysinfo... no
checking for sharedram in struct sysinfo... no
checking for bufferram in struct sysinfo... no
checking for freeram in struct sysinfo... no
checking for uptime in struct sysinfo... no
checking for procs in struct sysinfo... no
checking return type of signal handlers... int
checking for getloadavg... yes
checking for socket... yes
checking for strtod... yes
checking for snprintf... yes
configure: No database selected! Use --with-XXX where XXX is your preferred database type
configure: Server processes (zabbix_suckerd and zabbix_trapper) will not be created !
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/zabbix_sender/Makefile
config.status: creating src/zabbix_agent/Makefile
config.status: creating src/zabbix_sucker/Makefile
config.status: creating src/zabbix_trapper/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
# make
Making all in src/zabbix_agent
make[1]: Entering directory `/download/zabbix-1.0/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl -lkstat -lsocket
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from zabbix_agent.c:26:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from zabbix_agent.c:26:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from zabbix_agent.c:26:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
In file included from /usr/include/sys/signal.h:34,
from /usr/include/sys/procfs.h:36,
from sysinfo.c:55:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procfs.h:36,
from sysinfo.c:55:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from sysinfo.c:55:
/usr/include/sys/procfs.h:108: error: parse error before "siginfo_t"
/usr/include/sys/procfs.h:130: error: parse error before '}' token
/usr/include/sys/procfs.h:164: error: parse error before "lwpstatus_t"
make[1]: *** [all] Error 1
make[1]: Leaving directory `/download/zabbix-1.0/src/zabbix_agent'
make: *** [all] Error 1
Comment