Ad Widget

Collapse

Error with compiling Zabbix 1.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahui
    Junior Member
    • Aug 2008
    • 14

    #1

    Error with compiling Zabbix 1.6

    Hi,
    i have problem with compiling of Zabbix 1.6. I have launch the script of configuration:
    ./configure --enable-server --enable-server --enable-static --with-mysql --with-ucd-snmp --prefix=/zabbix
    The response is successful. But when i do the compilation i have error:

    Making install in zbxdb
    make[3]: Entering directory `/usr/src/zabbix-1.6/src/libs/zbxdb'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -I/usr/include/mysql -march=i586 -mcpu=i686 -fmessage-length=0 -DPIC -fPIC -fno-strict-aliasing -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
    db.c: In function `zbx_db_connect':
    db.c:87: error: `CLIENT_MULTI_STATEMENTS' undeclared (first use in this function)
    db.c:87: error: (Each undeclared identifier is reported only once
    db.c:87: error: for each function it appears in.)
    make[3]: *** [db.o] Error 1
    make[3]: Leaving directory `/usr/src/zabbix-1.6/src/libs/zbxdb'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/usr/src/zabbix-1.6/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/usr/src/zabbix-1.6/src'
    make: *** [install-recursive] Error 1


    I install zabbix on suse 9.0
    Someone can help me ?

    Thank for help

    Ahui SIKA
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    dont use --static.

    Comment

    • ahui
      Junior Member
      • Aug 2008
      • 14

      #3
      Error with compiling zabbix 1.6

      Thank XS- for reply
      but i have always the same problem when i configure without --static.
      an other solution ?

      Thank for your help

      Ahui SIKA

      Comment

      • ahui
        Junior Member
        • Aug 2008
        • 14

        #4
        Error with compiling Zabbix 1.6

        No issu ?

        Ahui SIKA

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #5
          Curious as to why you have --enable-server --enable-server (twice)

          Comment

          • NOB
            Senior Member
            Zabbix Certified Specialist
            • Mar 2007
            • 469

            #6
            Originally posted by ahui
            No issu ?

            Ahui SIKA
            Did you install whatever MySQL devel package is needed for Linux ?
            Usually something like mysql-devel-x.y.z

            Which version of MySQL are you running ?

            I found the missing declaration in mysql/mysql_com.h

            HTH,

            Norbert.

            Comment

            Working...