Ad Widget

Collapse

Make install error Fedore core 8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jonmor
    Junior Member
    • Sep 2006
    • 8

    #1

    Make install error Fedore core 8

    Hi
    i have a problem when i instal 1.4.2 on my fedora Core 8
    i run it ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl

    when I run the make install i got this :
    In file included from ../../../include/common.h:23,
    from db.c:20:
    ../../../include/sysinc.h:291:1: warning: "_GNU_SOURCE" redefined
    <command line>:1:1: warning: this is the location of the previous definition
    In file included from ../../../include/db.h:28,
    from db.c:22:
    ../../../include/zbxdb.h:31:20: error: mysql.h: No such file or directory
    ../../../include/zbxdb.h:32:21: error: errmsg.h: No such file or directory
    ../../../include/zbxdb.h:33:27: error: mysqld_error.h: No such file or directory
    In file included from ../../../include/db.h:28,
    from db.c:22:
    ../../../include/zbxdb.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/zbxdb.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/zbxdb.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/zbxdb.h:130: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
    In file included from db.c:22:
    ../../../include/db.h:481: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/db.h:483: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/db.h:484: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DBfetch’
    ../../../include/db.h:520: error: expected declaration specifiers or ‘...’ before ‘MYSQL_ROW’
    db.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘zbx_db_close’:
    db.c:48: error: ‘conn’ undeclared (first use in this function)
    db.c:48: error: (Each undeclared identifier is reported only once
    db.c:48: error: for each function it appears in.)
    db.c: In function ‘zbx_db_connect’:
    db.c:80: error: ‘conn’ undeclared (first use in this function)
    db.c:114: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
    db.c:115: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
    db.c:116: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
    db.c:117: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
    db.c:118: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
    db.c: At top level:
    db.c:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘zbx_db_vexecute’:
    db.c:377: error: ‘conn’ undeclared (first use in this function)
    db.c:389: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
    db.c:390: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
    db.c:391: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
    db.c:392: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
    db.c:393: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
    db.c: At top level:
    db.c:521: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
    db.c:604: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘zbx_db_insert_id’:
    db.c:741: error: ‘conn’ undeclared (first use in this function)
    db.c: At top level:
    db.c:795: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    make[3]: *** [db.o] Error 1
    make[3]: Leaving directory `/Download/zabbix-1.4.2/src/libs/zbxdb'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/Download/zabbix-1.4.2/src/libs'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/Download/zabbix-1.4.2/src'
    make: *** [install-recursive] Error 1

    thanks
  • SharkCZ
    Member
    • Apr 2006
    • 39

    #2
    Why don't you install Zabbix directly from Fedora with "yum install zabbix zabbix-agent zabbix-web"? I see no special options in your configure command, so you should be satisfied with the prebuilt version.

    Comment

    • SharkCZ
      Member
      • Apr 2006
      • 39

      #3
      Originally posted by jonmor
      Hi
      i have a problem when i instal 1.4.2 on my fedora Core 8
      i run it ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl

      when I run the make install i got this :
      In file included from ../../../include/common.h:23,
      from db.c:20:
      ../../../include/sysinc.h:291:1: warning: "_GNU_SOURCE" redefined
      <command line>:1:1: warning: this is the location of the previous definition
      In file included from ../../../include/db.h:28,
      from db.c:22:
      ../../../include/zbxdb.h:31:20: error: mysql.h: No such file or directory
      ../../../include/zbxdb.h:32:21: error: errmsg.h: No such file or directory
      ../../../include/zbxdb.h:33:27: error: mysqld_error.h: No such file or directory
      In file included from ../../../include/db.h:28,
      from db.c:22:
      Looks like you need to install mysql-devel package.

      Comment

      Working...