Ad Widget

Collapse

compiling problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leoh
    Member
    • Oct 2005
    • 47

    #1

    compiling problems

    I cannot compile using --enable-static.

    My system is:
    Linux 2.6.8.1-kanotix-10 #1 Sun Oct 31 19:57:19 BRT 2004 i686 GNU/Linux
    based on debian


    Making all in zabbix_agent
    make[2]: Entering directory `/var/tmp/monitoracao/zabbix/1.1beta2/zabbix-1.1beta2/src/zabbix_agent'
    make[3]: Entering directory `/var/tmp/monitoracao/zabbix/1.1beta2/zabbix-1.1beta2/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/libzbxsysinfo.a(common.o)(.text+0xd68): In function `PROC_NUM':
    common/common.c:769: 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)(.text+0x14d6): In function `forward_request':
    common/common.c:1328: 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)(.text+0x262a): In function `CHECK_DNS':
    common/common.c:1970: undefined reference to `__res_query'
    collect2: ld returned 1 exit status
    make[3]: ** [zabbix_agent] Erro 1
    make[3]: Leaving directory `/var/tmp/monitoracao/zabbix/1.1beta2/zabbix-1.1beta2/src/zabbix_agent'
    make[2]: ** [all-recursive] Erro 1
    make[2]: Leaving directory `/var/tmp/monitoracao/zabbix/1.1beta2/zabbix-1.1beta2/src/zabbix_agent'
    make[1]: ** [all-recursive] Erro 1
    make[1]: Leaving directory `/var/tmp/monitoracao/zabbix/1.1beta2/zabbix-1.1beta2/src'
    make: ** [all-recursive] Erro 1
Working...