Ad Widget

Collapse

Unable to compile zabbix 1.1a4 on AMD64

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • den_RDC
    Junior Member
    • Jan 2005
    • 5

    #1

    Unable to compile zabbix 1.1a4 on AMD64

    I can't compile zabbix on my AMD64 server... i guess it has something to do with the fact that it's running in pure 64bit mode.... This is the error i get :

    Making all in src/zabbix_agent
    make[1]: Entering directory `/root/manualsoft/zabbix-1.1alpha4/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -static -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall
    sysinfo.c: In function `process':
    sysinfo.c:320: warning: 'function_str' might be used uninitialized in this function
    ../../include/snprintf.c: In function `dopr':
    ../../include/snprintf.c:174: error: incompatible types in assignment
    ../../include/snprintf.c: At top level:
    ../../include/snprintf.c:161: warning: 'dopr' defined but not used
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/root/manualsoft/zabbix-1.1alpha4/src/zabbix_agent'
    make: *** [all] Error 1
    Fyi, this is the information from gcc -v

    gcc -v
    Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs
    Configured with: /var/tmp/portage/gcc-3.4.3/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 --host=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++
    Thread model: posix
    gcc version 3.4.3 (Gentoo Hardened Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6)
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this! Will try to fix it quickly.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • den_RDC
      Junior Member
      • Jan 2005
      • 5

      #3
      I should have browsed the forum more carefully, as this seems to be the same error as this topic Here. I didn't found it because the gcc error seems to be in another language then english. The fix suggested there works for me.

      Comment

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

        #4
        It still can be a problem for systems having no va_copy() function. Anyway, I'm checking this later this week.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • deejay2
          Junior Member
          • Mar 2005
          • 3

          #5
          Got it...

          In zebra's source...

          include/snprintf.c

          Around line 113, replace __va_copy by: __builtin_va_copy
          Around line 121, ..same thing

          You have to replace 2 occurences of __va_copy by __builtin_va_copy..

          This should build pretty well...

          Comment

          Working...