Ad Widget

Collapse

zbxdb.h Make error with 1.4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beavrz1
    Junior Member
    • Aug 2006
    • 6

    #1

    zbxdb.h Make error with 1.4.2

    Having trouble getting 1.4.2 to compile: RHEL4, mysql 5.0.45, libcurl 7.17.0, net-snmp 5.4.1

    Configure runs fine with:

    ./configure --prefix=/fszabbix --exec-prefix=/fszabbix --enable-static --enable-server --with-mysql --with-net-snmp --with-libcurl


    Error on make install:

    make[4]: Entering directory `/DL/zabbix-1.4.2/src/libs/zbxcomms'
    make[4]: Nothing to be done for `install-exec-am'.
    make[4]: Nothing to be done for `install-data-am'.
    make[4]: Leaving directory `/DL/zabbix-1.4.2/src/libs/zbxcomms'
    make[3]: Leaving directory `/DL/zabbix-1.4.2/src/libs/zbxcomms'
    Making install in zbxdb
    make[3]: Entering directory `/DL/zabbix-1.4.2/src/libs/zbxdb'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -I/usr/local/include -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -I. -I/usr/include -MT db.o -MD -MP -MF ".deps/db.Tpo" -c -o db.o db.c; \
    then mv -f ".deps/db.Tpo" ".deps/db.Po"; else rm -f ".deps/db.Tpo"; exit 1; fi
    In file included from ../../../include/db.h:28,
    from db.c:22:
    ../../../include/zbxdb.h:128: error: syntax error before "zbx_db_vselect"
    ../../../include/zbxdb.h:128: warning: data definition has no type or storage class
    ../../../include/zbxdb.h:129: error: syntax error before "zbx_db_select_n"
    ../../../include/zbxdb.h:129: warning: data definition has no type or storage class
    ../../../include/zbxdb.h:130: error: syntax error before "zbx_db_fetch"
    ../../../include/zbxdb.h:130: error: syntax error before "result"
    ../../../include/zbxdb.h:130: warning: data definition has no type or storage class
    In file included from db.c:22:
    ../../../include/db.h:481: error: syntax error before "__zbx_DBselect"
    ../../../include/db.h:481: warning: data definition has no type or storage class
    ../../../include/db.h:483: error: syntax error before "DBselectN"
    ../../../include/db.h:483: warning: data definition has no type or storage class
    ../../../include/db.h:484: error: syntax error before "DBfetch"
    ../../../include/db.h:484: error: syntax error before "result"
    ../../../include/db.h:484: warning: data definition has no type or storage class
    ../../../include/db.h:520: error: syntax error before "DB_ROW"
    db.c:214: error: syntax error before "__zbx_zbx_db_select"
    db.c: In function `__zbx_zbx_db_select':
    db.c:217: error: `DB_RESULT' undeclared (first use in this function)
    db.c:217: error: (Each undeclared identifier is reported only once
    db.c:217: error: for each function it appears in.)
    db.c:217: error: syntax error before "result"
    db.c:220: error: `result' undeclared (first use in this function)
    db.c: At top level:
    db.c:521: error: syntax error before "zbx_db_fetch"
    db.c:521: error: syntax error before "result"
    db.c: In function `zbx_db_fetch':
    db.c:597: warning: return makes integer from pointer without a cast
    db.c: At top level:
    db.c:604: error: syntax error before "zbx_db_vselect"
    db.c: In function `zbx_db_vselect':
    db.c:607: error: `DB_RESULT' undeclared (first use in this function)
    db.c:607: error: syntax error before "result"
    db.c:728: error: `result' undeclared (first use in this function)
    db.c: At top level:
    db.c:795: error: syntax error before "zbx_db_select_n"
    make[3]: *** [db.o] Error 1
    make[3]: Leaving directory `/DL/zabbix-1.4.2/src/libs/zbxdb'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/DL/zabbix-1.4.2/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/DL/zabbix-1.4.2/src'
    make: *** [install-recursive] Error 1
    [root@new-host zabbix-1.4.2]#


    Anyone else seen this? TIA
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Hmm, it looks like a buggy gcc...
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...