Ad Widget

Collapse

Trying to update to 1.1beta2, make errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lostnode
    Junior Member
    • Nov 2005
    • 22

    #1

    Trying to update to 1.1beta2, make errors

    Everything starts fine, its building everyting, then BAMB! it all blows up...
    It seems that while making Trapper... it explodes into a fury or nothing but errors.

    Code:
    evalfunc.o(.text+0x81): In function `evaluate_COUNT':
    /tmp/zabbix-1.1beta2/src/zabbix_server/evalfunc.c:93: undefined reference to `mysql_free_result'
    evalfunc.o(.text+0x129): In function `evaluate_SUM':
    /tmp/zabbix-1.1beta2/src/zabbix_server/evalfunc.c:142: undefined reference to `mysql_free_result'
    evalfunc.o(.text+0x1d5): In function `evaluate_AVG':
    /tmp/zabbix-1.1beta2/src/zabbix_server/evalfunc.c:192: undefined reference to `mysql_free_result'
    evalfunc.o(.text+0x289): In function `evaluate_MIN':
    /tmp/zabbix-1.1beta2/src/zabbix_server/evalfunc.c:242: undefined reference to `mysql_free_result'
    evalfunc.o(.text+0x33d): In function `evaluate_MAX':
    /tmp/zabbix-1.1beta2/src/zabbix_server/evalfunc.c:292: undefined reference to `mysql_free_result'
    evalfunc.o(.text+0x3f1):/tmp/zabbix-1.1beta2/src/zabbix_server/evalfunc.c:342: more undefined references to `mysql_free_result' follow
    server.o(.text+0x932): In function `main':
    /tmp/zabbix-1.1beta2/src/zabbix_server/server.c:576: undefined reference to `init_snmp'
    ../libs/zbxsysinfo/libzbxsysinfo.a(common.o)(.text+0x213e): In function `CHECK_DNS':
    common/common.c:1970: undefined reference to `__res_query'
    pinger/libzbxpinger.a(pinger.o)(.text+0xec): In function `process_value':
    /tmp/zabbix-1.1beta2/src/zabbix_server/pinger/pinger.c:147: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x3a4):/tmp/zabbix-1.1beta2/src/zabbix_server/pinger/pinger.c:197: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x4d7): In function `create_host_file':
    /tmp/zabbix-1.1beta2/src/zabbix_server/pinger/pinger.c:252: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x58b):/tmp/zabbix-1.1beta2/src/zabbix_server/pinger/pinger.c:266: undefined reference to `mysql_free_result'
    poller/libzbxpoller.a(poller.o)(.text+0x1a6): In function `get_minnextcheck':
    /tmp/zabbix-1.1beta2/src/zabbix_server/poller/poller.c:132: undefined reference to `mysql_free_result'
    poller/libzbxpoller.a(poller.o)(.text+0x261):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/poller.c:165: more undefined references to `mysql_free_result' fol
    low
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x53): In function `get_value_snmp':
    /tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:52: undefined reference to `snmp_sess_init'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x178):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:122: undefined reference to `usmHMACMD5AuthProt
    ocol'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x19e):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:131: undefined reference to `usmHMACMD5AuthProt
    ocol'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x1a3):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:131: undefined reference to `generate_Ku'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x1f0):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:153: undefined reference to `snmp_open'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x218):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:164: undefined reference to `snmp_pdu_create'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x236):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:165: undefined reference to `read_objid'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x246):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:173: undefined reference to `snmp_add_null_var'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x265):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:176: undefined reference to `snmp_synch_respons
    e'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x2e7):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:307: undefined reference to `snmp_sess_perror'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x307):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:314: undefined reference to `snmp_free_pdu'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x313):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:316: undefined reference to `snmp_close'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x357):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:299: undefined reference to `snmp_sess_perror'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x36e):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:281: undefined reference to `snmp_errstring'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x398):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:290: undefined reference to `snmp_errstring'
    poller/libzbxpoller.a(checks_snmp.o)(.text+0x3bd):/tmp/zabbix-1.1beta2/src/zabbix_server/poller/checks_snmp.c:285: undefined reference to `snmp_errstring'
    escalator/libzbxescalator.a(escalator.o)(.text+0x7c): In function `process_escalation':
    /tmp/zabbix-1.1beta2/src/zabbix_server/escalator/escalator.c:145: undefined reference to `mysql_free_result'
    escalator/libzbxescalator.a(escalator.o)(.text+0x507): In function `main_escalator_loop':
    /tmp/zabbix-1.1beta2/src/zabbix_server/escalator/escalator.c:212: undefined reference to `mysql_free_result'
    housekeeper/libzbxhousekeeper.a(housekeeper.o)(.text+0x182): In function `delete_host':
    /tmp/zabbix-1.1beta2/src/zabbix_server/housekeeper/housekeeper.c:116: undefined reference to `mysql_free_result'
    housekeeper/libzbxhousekeeper.a(housekeeper.o)(.text+0x2ac): In function `housekeeping_items':
    /tmp/zabbix-1.1beta2/src/zabbix_server/housekeeper/housekeeper.c:166: undefined reference to `mysql_free_result'
    housekeeper/libzbxhousekeeper.a(housekeeper.o)(.text+0x32c): In function `housekeeping_hosts':
    /tmp/zabbix-1.1beta2/src/zabbix_server/housekeeper/housekeeper.c:199: undefined reference to `mysql_free_result'
    housekeeper/libzbxhousekeeper.a(housekeeper.o)(.text+0x5a1):/tmp/zabbix-1.1beta2/src/zabbix_server/housekeeper/housekeeper.c:275: more undefined references t
    o `mysql_free_result' follow
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0xc): In function `DBclose':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:47: undefined reference to `mysql_close'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x25): In function `DBconnect':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:66: undefined reference to `mysql_init'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x55):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:67: undefined reference to `mysql_real_connect'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x6d):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:69: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x8d):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:70: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0xa9):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:71: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0xc0):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:71: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x11b):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:78: undefined reference to `mysql_select_db'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x131):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:81: undefined reference to `mysql_error'
    Continued in reply
  • Lostnode
    Junior Member
    • Nov 2005
    • 22

    #2
    Code:
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x151):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:82: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x191): In function `DBexecute':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:124: undefined reference to `mysql_query'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x1b7):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:128: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x1c8):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:128: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x1e5):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:129: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x1fc):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:129: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x24d): In function `DBselect':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:170: undefined reference to `mysql_query'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x26f):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:174: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x280):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:174: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x29d):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:175: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x2b4):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:175: undefined reference to `mysql_errno'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x305): In function `DBget_field':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:214: undefined reference to `mysql_data_seek'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x30d):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:215: undefined reference to `mysql_fetch_row'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x331):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:218: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x351):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:219: undefined reference to `mysql_error'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x38a): In function `DBinsert_id':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:236: undefined reference to `mysql_insert_id'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x39c): In function `DBaffected_rows':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:250: undefined reference to `mysql_affected_rows'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x3ca): In function `DBnum_rows':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:294: undefined reference to `mysql_num_rows'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x475): In function `DBget_function_result':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:346: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x53c): In function `DBget_prev_trigger_value':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:398: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x570):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:373: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x5c6):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:382: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x5f4):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:389: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x664):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:402: more undefined references to `mysql_free_result' follow
    ../libs/zbxdbhigh/libzbxdbhigh.a(db.o)(.text+0x2dd): In function `DBselect':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/db.c:182: undefined reference to `mysql_store_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(action.o)(.text+0x10d): In function `DBget_action_by_actionid':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/action.c:92: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(action.o)(.text+0x307): In function `DBadd_action_to_linked_hosts':
    /tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/action.c:131: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(action.o)(.text+0x33a):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/action.c:137: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(action.o)(.text+0x5be):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/action.c:177: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(action.o)(.text+0x5cf):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/action.c:179: undefined reference to `mysql_free_result'
    ../libs/zbxdbhigh/libzbxdbhigh.a(graph.o)(.text+0x154):/tmp/zabbix-1.1beta2/src/libs/zbxdbhigh/graph.c:105: more undefined references to `mysql_free_result'
    follow
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/tmp/zabbix-1.1beta2/src/zabbix_server'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/tmp/zabbix-1.1beta2/src/zabbix_server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/tmp/zabbix-1.1beta2/src'
    make: *** [all-recursive] Error 1
    What happened?

    Comment

    • Lostnode
      Junior Member
      • Nov 2005
      • 22

      #3
      I am however able to create the agents... Do i have to set up anything, like reference my MySQL database somewhere? I meet all the requirements...

      Comment

      • elkor
        Senior Member
        • Jul 2005
        • 299

        #4
        no you shouldn't have to, you said you tried the solution in the thread above by moving the mysql library references to the end of the gcc command line?

        looks like you might have a netsnmp issue here too.

        what do the offending commands (the first one will do) look like?

        and can you check your mysql and netsnmp packages too? make sure you have the development libraries installed. I know you probably checked this and that you had a sane 1.0 build but just to put all the facts in one thread a couple of rpm -qa | greps wouldn't hurt

        Comment

        • Lostnode
          Junior Member
          • Nov 2005
          • 22

          #5
          You are right about the SNMP problem... I actualy had my server crash... I will reattempt this agin on the weeeknd and see if I can get it to run. I will let you know.

          Comment

          Working...