Ad Widget

Collapse

zabbix 1.1.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lazat
    Junior Member
    • Jan 2005
    • 12

    #1

    zabbix 1.1.2

    I have tried to compile many diffrent versions and i always end up in error if i try to --enable-static option. Without it seams ok. I guess i miss one important package.. I think it would be easier to have the libs compiled in then have to configurate and make on all my computers. Can someone point me in the right direction where to look fór this error. I'm using Mandriva Linux release 2006.0 (Official) for i586.

    Also it looks like the files bellow is not in the dir. i had to create a link to them. ../libs/zbxconf/libzbxconf.a was fund in /usr/local/lib/libzbxconf.a.




    Making all in zabbix_agent
    make[2]: Entering directory `/usr/src/zabbix1.1/zabbix-1.1.2/src/zabbix_agent'
    make[3]: Entering directory `/usr/src/zabbix1.1/zabbix-1.1.2/src/zabbix_agent'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -static -g -O2 -MT zabbix_agent.o -MD -MP -MF ".deps/zabbix_agent.Tpo" -c -o zabbix_agent.o zabbix_agent.c; \
    then mv -f ".deps/zabbix_agent.Tpo" ".deps/zabbix_agent.Po"; else rm -f ".deps/zabbix_agent.Tpo"; exit 1; fi
    gcc -static -g -O2 -o zabbix_agent zabbix_agent.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/linux/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a -lresolv -lnsl
    /usr/bin/ld: cannot find -lresolv
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_agent] Error 1
    make[3]: Leaving directory `/usr/src/zabbix1.1/zabbix-1.1.2/src/zabbix_agent'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/src/zabbix1.1/zabbix-1.1.2/src/zabbix_agent'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/zabbix1.1/zabbix-1.1.2/src'
    make: *** [all-recursive] Error 1
  • sysigs
    Junior Member
    • Aug 2005
    • 27

    #2
    i'm on redhat4 AS and i had the same problem.
    Try not to use this option it would work fine.

    Comment

    Working...