Ad Widget

Collapse

Compiling 1.8.2 problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acidas
    Junior Member
    • May 2010
    • 2

    #1

    Compiling 1.8.2 problems

    Hello,

    Trying to upgrade 1.6.4 to 1.8.2. When I'm trying to compile it throws me this error:

    gcc -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -o zabbix_agent zabbix_agent.o stats.o cpustat.o diskdevices.o interfaces.o perfstat.o vmstats.o zbxconf.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/linux/libspecsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.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 -lm -lresolv
    diskdevices.o: In function `process_diskstat':
    /home/sebas/down/zabbix-1.8.2/src/zabbix_agent/diskdevices.c:97: undefined reference to `get_diskstat'
    diskdevices.o: In function `collect_stats_diskdevices':
    /home/sebas/down/zabbix-1.8.2/src/zabbix_agent/diskdevices.c:110: undefined reference to `refresh_diskdevices'
    ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a(libzbxagentsysinfo_a-linux.o).data+0xb0): undefined reference to `VFS_DEV_READ'
    ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a(libzbxagentsysinfo_a-linux.o).data+0xd8): undefined reference to `VFS_DEV_WRITE'
    collect2: ld returned 1 exit status
    make[2]: *** [zabbix_agent] Error 1
    make[2]: Leaving directory `/home/sebas/down/zabbix-1.8.2/src/zabbix_agent'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/sebas/down/zabbix-1.8.2/src'
    make: *** [install-recursive] Error 1
  • acidas
    Junior Member
    • May 2010
    • 2

    #2
    --with-libcurl helped out

    Comment

    Working...