Hi,
I am facing issue while installation of Zabbix Agent installation from source. Precisely, the issue is observed while running "configure". Details are below:
And the error while running configure is:
I have tried to modify the configure file and commented the statement found_iconv="no". This lead to successful configure run but running make install fails with following error:
The, I tried to use gmake for the same, and the error was:
Later I added below path into the below environment variable:
and the error of gmake changed like shown below:
Now, I suspect there is some environment variable that is not properly set.
Please help me in this.
I am facing issue while installation of Zabbix Agent installation from source. Precisely, the issue is observed while running "configure". Details are below:
Code:
#cat /etc/release
Oracle Solaris 10 8/11 s10x_u10wos_17b X86
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
Code:
checking for -m64 compilation flag... yes checking for architecture... solaris (solaris2.10) checking for ICONV support... configure: error: Unable to use iconv (libiconv check failed)
Code:
make: Fatal error: Command failed for target `all-recursive'
The, I tried to use gmake for the same, and the error was:
Code:
Making all in zabbix_agent gmake[2]: Entering directory `/zabbix-2.2.3/src/zabbix_agent' gcc -DSYSCONFDIR="\"/usr/local/zabbix/etc\"" -DLIBDIR="\"/usr/local/zabbix/lib\"" -m64 -g -O2 -o zabbix_agent zabbix_agent-zabbix_agent.o zabbix_agent-stats.o zabbix_agent-cpustat.o zabbix_agent-diskdevices.o zabbix_agent-vmstats.o zabbix_agent-zbxconf.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/solaris/libspecsysinfo.a ../../src/libs/zbxsysinfo/agent/libagentsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxregexp/libzbxregexp.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a ../../src/libs/zbxmodules/libzbxmodules.a -lkvm -lm -lrt -lnsl -lkstat -lsocket -lresolv Undefined first referenced symbol in file libiconv_close ../../src/libs/zbxcommon/libzbxcommon.a(str.o) libiconv_open ../../src/libs/zbxcommon/libzbxcommon.a(str.o) libiconv ../../src/libs/zbxcommon/libzbxcommon.a(str.o) ld: fatal: symbol referencing errors. No output written to zabbix_agent collect2: ld returned 1 exit status gmake[2]: *** [zabbix_agent] Error 1 gmake[2]: Leaving directory `/zabbix-2.2.3/src/zabbix_agent' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/zabbix-2.2.3/src' gmake: *** [all-recursive] Error 1
Code:
export LD_PRELOAD=/usr/local/lib/preloadable_libiconv.so
and the error of gmake changed like shown below:
Code:
gmake[2]: Entering directory `/zabbix-2.2.3/src/zabbix_agent' gcc -DSYSCONFDIR="\"/usr/local/zabbix/etc\"" -DLIBDIR="\"/usr/local/zabbix/lib\"" -m64 -g -O2 -o zabbix_agent zabbix_agent-zabbix_agent.o zabbix_agent-stats.o zabbix_agent-cpustat.o zabbix_agent-diskdevices.o zabbix_agent-vmstats.o zabbix_agent-zbxconf.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/solaris/libspecsysinfo.a ../../src/libs/zbxsysinfo/agent/libagentsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxregexp/libzbxregexp.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a ../../src/libs/zbxmodules/libzbxmodules.a -lkvm -lm -lrt -lnsl -lkstat -lsocket -lresolv collect2: ld terminated with signal 9 [Killed] ld.so.1: ld: fatal: /usr/local/lib/preloadable_libiconv.so: wrong ELF class: ELFCLASS32 gmake[2]: *** [zabbix_agent] Error 1 gmake[2]: Leaving directory `/zabbix-2.2.3/src/zabbix_agent' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/zabbix-2.2.3/src' gmake: *** [all-recursive] Error 1
Please help me in this.
Comment