Ad Widget

Collapse

static compile of agent fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phsims
    Junior Member
    • Feb 2006
    • 1

    #1

    static compile of agent fails

    Debian etch, 64 bit.

    The following is the last output from make:

    with make[3]: Entering directory `/home/public/software/zabbix-1.1beta6/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
    ../libs/zbxsysinfo/linux/libzbxsysinfo2.a(proc.o): In function `PROC_MEMORY':/home/public/software/zabbix-1.1beta6/src/libs/zbxsysinfo/linux/proc.c:81: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    ../libs/zbxsysinfo/libzbxsysinfo.a(common.o): In function `forward_request':common/common.c:1231: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    ../libs/zbxsysinfo/libzbxsysinfo.a(common.o): In function `CHECK_DNS':common.c.text+0x21a0): undefined reference to `__res_query'

    Thanks for any help!
Working...