Ad Widget

Collapse

freebsd compile error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    freebsd compile error

    Hello there,

    trying the new zabbix i got compile errors:

    /usr/local/.aqadmin/home/zabbix-1.4/src/libs/zbxcommon/misc.c(.text+0x5b): undefined reference to `UINT64_C'


    PHP Code:
    Making all in zabbix_agent
    source
    ='zabbix_agent.c' object='zabbix_agent.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../include      --O2 -c zabbix_agent.c
    source
    ='stats.c' object='stats.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../include      --O2 -c stats.c
    source
    ='cpustat.c' object='cpustat.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../include      --O2 -c cpustat.c
    source
    ='diskdevices.c' object='diskdevices.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../include      --O2 -c diskdevices.c
    source
    ='interfaces.c' object='interfaces.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../include      --O2 -c interfaces.c
    source
    ='zbxconf.c' object='zbxconf.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../include      --O2 -c zbxconf.c
    gcc  
    --O2  -static -o zabbix_agent  zabbix_agent.o stats.o  cpustat.o diskdevices.o interfaces.o  zbxconf.../../src/libs/zbxsysinfo/libzbxagentsysinfo.a  ../../src/libs/zbxsysinfo/freebsd/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.-lkvm -lm
    ../../src/libs/zbxcommon/libzbxcommon.a(misc.o): In function `get_nodeid_by_id':
    /usr/local/.aqadmin/home/zabbix-1.4/src/libs/zbxcommon/misc.c(.text+0x5b): undefined reference to 
    `UINT64_C



    Configuration:

    Detected OS: freebsd4.7
    Install path: /usr/local
    Compilation arch: freebsd

    Compiler: gcc
    Compiler flags: -g -O2
    Linker flags: -static
    Libraries: -lkvm -lm

    Enable server: no
    With database: no

    Enable agent: yes


    Any idea ? last version i tried is 1.1.4 and it compiled fine

    Regards,
    Ghislain.
    Regards,
    Ghislain.
  • Eugene
    Member
    • Feb 2006
    • 57

    #2
    Thanks for report.

    Try this patch.
    Attached Files

    Comment

    • ghislain
      Senior Member
      • Jun 2005
      • 160

      #3
      > patch -p0 < ./patch
      Hmm... Looks like a unified diff to me...
      The text leading up to this was:
      --------------------------
      |Index: include/zbxtypes.h
      |================================================= ==================
      |--- include/zbxtypes.h (revision 4209)
      |+++ include/zbxtypes.h (working copy)
      --------------------------
      Patching file include/zbxtypes.h using Plan A...
      Hunk #1 succeeded at 46.
      Hmm... Ignoring the trailing garbage.
      done



      make install worked , thanks for the quick reply !!!


      Ghislain.
      Regards,
      Ghislain.

      Comment

      Working...