PDA

View Full Version : trouble to compile agent on solaris 8


lofouk
08-02-2006, 16:42
:( I try to compile an agent on the Solaris 8 Sparc but i still the same errors
could you help me to tell me what is wrong ?
I compile with the original configure file

regards and thanks for your help

/home/zabbix/zabbix-1.1beta6/src/zabbix_agent/gcc -static -g -O2 -o zabbix_agent zabbix_agent.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a -lnsl -lsocket -lm -lz
Undefined first referenced
symbol in file
_res ../libs/zbxsysinfo/libzbxsysinfo.a(common.o)
kstat_data_lookup ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a(net.o)
dlsym /usr/lib/libnsl.a(netdir.o)
kstat_lookup ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a(diskio.o)
_dlopen /usr/lib/libc.a(nss_deffinder.o)
_dlsym /usr/lib/libc.a(nss_deffinder.o)
dlopen /usr/lib/libnsl.a(netdir.o)
kstat_read ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a(cpu.o)
kstat_open ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a(cpu.o)
res_query ../libs/zbxsysinfo/libzbxsysinfo.a(common.o)
kstat_close ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a(cpu.o)
_dlclose /usr/lib/libc.a(nss_deffinder.o)
dlclose /usr/lib/libnsl.a(netdir.o)
dlerror /usr/lib/libnsl.a(netdir.o)
res_init ../libs/zbxsysinfo/libzbxsysinfo.a(common.o)
inet_aton ../libs/zbxsysinfo/libzbxsysinfo.a(common.o)
ld: fatal: Symbol referencing errors. No output written to zabbix_agent
collect2: ld returned 1 exit status

elkor
08-02-2006, 16:45
I recall there being an issue with solaris static compiles.

try recompiling as a dynamicly linked executable.

lofouk
08-02-2006, 16:58
Thanks a lot
it seems to works nows

regards

lofouk
08-02-2006, 17:32
i think the compile is good because when i done a make again i ve got this :
Making all in src
Making all in libs
Making all in zbxcommon
Making all in zbxlog
Making all in zbxcrypto
Making all in zbxpid
Making all in zbxnet
Making all in zbxconf
Making all in zbxsysinfo
Making all in solaris
Making all in zabbix_agent
Making all in zabbix_get
Making all in zabbix_sender
/home/zabbix/zabbix-1.1beta6/cd bin
/home/zabbix/zabbix-1.1beta6/bin/ls -al
total 228
drwxrwxrwx 2 zabbix other 512 Feb 7 14:28 ./
drwxr-xr-x 10 zabbix other 1024 Feb 8 16:48 ../
-rwxr-xr-x 1 zabbix other 102400 Feb 7 14:28 ZabbixW32.exe*

but i am looking on the bin directory and nothing that is strange !
i do not need to do a make install ?

regards

lofouk
08-02-2006, 17:41
they are in the src instead of bin

regards

elkor
08-02-2006, 17:47
no problem, glad to help

lofouk
08-02-2006, 17:48
is it depends of the makefile or a trouble on the documentation ?