Ad Widget

Collapse

64-bit build error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eggmaster1969
    Junior Member
    • Nov 2004
    • 1

    #1

    64-bit build error

    on dual opteron fc2 x86_64 host, make produces following output:

    Making all in src/zabbix_agent
    make[1]: Entering directory `/usr/local/src/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
    sysinfo.c: In function `process':
    sysinfo.c:430: warning: cast from pointer to integer of different size
    ../../include/snprintf.c: In function `dopr':
    ../../include/snprintf.c:174: error: incompatible types in assignment
    ../../include/snprintf.c: In function `vasprintf':
    ../../include/snprintf.c:811: error: incompatible types in assignment
    ../../include/snprintf.c:819: error: incompatible types in assignment
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/usr/local/src/zabbix-1.0/src/zabbix_agent'
    make: *** [all] Error 1

    I haven't found anything in the docs about 32-bit vs. 64-bit. Am I not looking hard enough?
  • astyanax
    Junior Member
    • Nov 2004
    • 8

    #2
    Same error....

    Originally posted by eggmaster1969
    on dual opteron fc2 x86_64 host, make produces following output:

    Making all in src/zabbix_agent
    make[1]: Entering directory `/usr/local/src/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
    sysinfo.c: In function `process':
    sysinfo.c:430: warning: cast from pointer to integer of different size
    ../../include/snprintf.c: In function `dopr':
    ../../include/snprintf.c:174: error: incompatible types in assignment
    ../../include/snprintf.c: In function `vasprintf':
    ../../include/snprintf.c:811: error: incompatible types in assignment
    ../../include/snprintf.c:819: error: incompatible types in assignment
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/usr/local/src/zabbix-1.0/src/zabbix_agent'
    make: *** [all] Error 1

    I haven't found anything in the docs about 32-bit vs. 64-bit. Am I not looking hard enough?
    Exact same error,
    Redhat Enterprise 3.0 Update 2 for AMD64
    kernel Linux optttest2 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:09:01 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux
    gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
    Quad processor Opteron box

    Comment

    • astyanax
      Junior Member
      • Nov 2004
      • 8

      #3
      Workaround?

      I have found that setting CFLAGS to include -m32 to allow the code to generate 32-bit rather than 64-bit code allows the program to compile:

      export CFLAGS="-O2 -Wall -m32"
      before running configure.

      Of course, I don't know how well the program runs in 32-bit mode in an OS capable of 64-bit memory addressing...especially since I need to monitor memory usage...

      The question remains whether zabbix is 64-bit ready.

      Comment

      • riegersteve
        Member
        • Oct 2004
        • 68

        #4
        what are your configure options

        and is mysql 32 bit or 64 bit version,
        i have zabbix running on 64 bit solaris 9

        Comment

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

          #5
          Hey, try to get snprintf.c (just the file, nothing else) from the CVS. Use it with 1.0. I hope it will resolve compilation issues for 64 bit platforms.

          And, yes, let me know if it works
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • deanpence
            Junior Member
            • Feb 2005
            • 2

            #6
            I've yet to find a solution for this problem. I'm trying to run Zabbix on Gentoo Linux on an AMD32 proc, and running with CFLAGS including '-m32' doesn't work; I don't have the option of installing 32-bit emulation libraries.

            Also, I've looked around the website (maybe I'm missing something obvious), but I don't see instructions for using your CVS repository there so I can get the aforementioned snprintf.c.

            Comment

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

              #7
              Please, follow this link:

              Download Zabbix for free. Enterprise-class, distributed monitoring solution for networks & apps. Zabbix is an enterprise-class open source distributed monitoring solution designed to monitor and track performance and availability of network servers, devices and other IT resources. It supports distributed and WEB monitoring, auto-discovery, and more.


              Click on "Browse the CVS Tree" to get access to the latest source code.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              Working...