Ad Widget

Collapse

1.4.2 compile error on OS X

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agehring
    Member
    • Oct 2006
    • 49

    #1

    1.4.2 compile error on OS X

    While trying to compile on OS 10.4.10..

    Making all in osx
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../src/zabbix_agent/ -g -O2 -I/usr/include/mysql -fno-omit-frame-pointer -pipe -I/usr/local/include -I/System/Library/Frameworks/System.framework/PrivateHeaders -I. -I/usr/include -I/usr/include -MT libspecsysinfo_a-cpu.o -MD -MP -MF ".deps/libspecsysinfo_a-cpu.Tpo" -c -o libspecsysinfo_a-cpu.o `test -f 'cpu.c' || echo './'`cpu.c; \
    then mv -f ".deps/libspecsysinfo_a-cpu.Tpo" ".deps/libspecsysinfo_a-cpu.Po"; else rm -f ".deps/libspecsysinfo_a-cpu.Tpo"; exit 1; fi
    cpu.c: In function 'SYSTEM_CPU_UTIL':
    cpu.c:50: error: parse error before '}' token
    make[4]: *** [libspecsysinfo_a-cpu.o] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1

    Thanks...
  • agehring
    Member
    • Oct 2006
    • 49

    #2
    It's just missing a ";" after looking at the code...

    Comment

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

      #3
      Thanks for reporting this! Fixed! Do not forget to remove extra '='!

      - cpuname[0] == '\0'
      + cpuname[0] = '\0';
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...