Ad Widget

Collapse

Undefined __UINT64_C in 1.3.1 on Solaris 9

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Hanson
    Junior Member
    • Dec 2006
    • 5

    #1

    Undefined __UINT64_C in 1.3.1 on Solaris 9

    FYI,

    Attemping to make 1.3.1 on Solaris 9 results in:

    .
    .
    .
    gcc -g -O2 -o zabbix_agent zabbix_agent.o zbxconf.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxsys/libzbxsys.a ../libs/zbxnix/libzbxnix.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a ../libs/zbxcrypto/libzbxcrypto.a -lkvm -lresolv -lnsl -lkstat -lsocket
    Undefined first referenced
    symbol in file
    __UINT64_C ../libs/zbxcommon/libzbxcommon.a(misc.o)
    ld: fatal: Symbol referencing errors. No output written to zabbix_agent
    collect2: ld returned 1 exit status
    .
    .
    .

    I'll forward more information if I get the chance.
  • Flemming
    Junior Member
    • Dec 2006
    • 1

    #2
    __uint64_c

    Same thing happens on AIX. This macro exists on Linux but not on AIX (and apparently neither Solaris)

    If you change "__UINT64_C" -> "UINT64_C" in src/libc/zbxcommon/misc.c

    On AIX there is a small typo on line 152 of cpu.c in src/libs/zbxsysinfo/aix - a "," needs to be inserted between last 2 arguments

    Then I can compile the agent - I still have some other issues though....

    Comment

    • Salvador Souto
      Junior Member
      • Jan 2007
      • 1

      #3
      Hello:

      I've found the same error in one of my Solaris 9 machines in the version 1.3.1 and the recent released 1.3.2 gives a similar error:

      Undefined first referenced
      symbol in file
      UINT64_C ../libs/zbxcommon/libzbxcommon.a(misc.o)
      ld: fatal: Symbol referencing errors. No output written to zabbix_agent

      How can I correct this?

      Thank you

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Compilation of ZABBIX was fixed for Solaris and AIX.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...