Ad Widget

Collapse

[alpha4] compilation error on ppc machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PerroVerd
    Junior Member
    • Dec 2004
    • 11

    #1

    [alpha4] compilation error on ppc machine

    Hi everybody

    When trying to compile zabbix on a ppc machine (debian sid) i've got this error, no problems with i386.

    celso@localhost:~/zabbix-1.1alpha4$ make
    Making all in src/zabbix_agent
    make[1]: Entering directory `/home/celso/zabbix-1.1alpha4/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 ../../include/md5.c -Wall -lnsl
    sysinfo.c: En la función `process':
    sysinfo.c:320: aviso: `function_str' might be used uninitialized in this function
    ../../include/snprintf.c: En la función `dopr':
    ../../include/snprintf.c:174: error: incompatible types in asignación
    ../../include/snprintf.c: En el nivel principal:
    ../../include/snprintf.c:161: aviso: `dopr' defined but not used
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/home/celso/zabbix-1.1alpha4/src/zabbix_agent'
    make: *** [all] Error 1

    I have added #define HAVE_VA_COPY 1 on include/config.h and now compiles ok.

    Best regards
    --
    Celso González
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for the information!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...