ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9154

Compilation of server fails for 2.4.3 with Oracle support

    Details

      Description

      ./configure --with-unixodbc --with-net-snmp --with-ssh2 --with-libcurl --with-libxml2 -with-oracle-lib=/usr/lib/oracle/11.2/client64/lib/ --with-oracle-include=/usr/include/oracle/11.2/client64/ --enable-server
      
      ...
      Configuration:
        Detected OS:           linux-gnu
        Install path:          /usr/local
        Compilation arch:      linux
        Compiler:              gcc
        Compiler flags:        -g -O2   -I/usr/include/oracle/11.2/client64/    -I/usr/include/libxml2 -I/usr/include  -I/usr/local/include -I/usr/lib64/perl5/CORE -I. -I/usr/include -I/usr/include    
      
        Enable server:         yes
        Server details:
          With database:         Oracle
          WEB Monitoring:        cURL
          Native Jabber:         no
          SNMP:                  yes
          IPMI:                  no
          SSH:                   yes
          ODBC:                  yes
          Linker flags:          -rdynamic      -L/usr/lib/oracle/11.2/client64/lib/     -L/usr/lib64  -L/usr/lib64 -L/usr/lib   
          Libraries:             -lm -ldl  -lresolv     -lclntsh -lnnz11    -lxml2  -lodbc  -lnetsnmp -lssh2    -lcurl
      
        Enable proxy:          no
        Enable agent:          no
        Enable Java gateway:   no
        LDAP support:          no
        IPv6 support:          no
      ...
      
      
      Compilation fails with:
      ...
      make[3]: Entering directory `/usr/local/src/zabbix/zabbix-2.4.3/src/zabbix_server'
      gcc -DZABBIX_DAEMON -DSYSCONFDIR="\"/usr/local/etc\"" -DDATADIR="\"/usr/local/share\"" -DLIBDIR="\"/usr/local/lib\"" -I../../src/libs/zbxdbcache -g -O2   -I/usr/include/oracle/11.2/client64/    -I/usr/include/libxml2 -I/usr/include  -I/usr/local/include -I/usr/lib64/perl5/CORE -I. -I/usr/include -I/usr/include     -L/usr/lib/oracle/11.2/client64/lib/     -L/usr/lib64  -L/usr/lib64 -L/usr/lib    -rdynamic   -o zabbix_server zabbix_server-actions.o zabbix_server-operations.o zabbix_server-events.o zabbix_server-scripts.o zabbix_server-server.o alerter/libzbxalerter.a dbsyncer/libzbxdbsyncer.a dbconfig/libzbxdbconfig.a discoverer/libzbxdiscoverer.a pinger/libzbxpinger.a poller/libzbxpoller.a housekeeper/libzbxhousekeeper.a timer/libzbxtimer.a trapper/libzbxtrapper.a snmptrapper/libzbxsnmptrapper.a httppoller/libzbxhttppoller.a watchdog/libzbxwatchdog.a escalator/libzbxescalator.a proxypoller/libzbxproxypoller.a selfmon/libzbxselfmon.a vmware/libzbxvmware.a ../../src/libs/zbxsysinfo/libzbxserversysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxdbcache/libzbxdbcache.a ../../src/libs/zbxmemory/libzbxmemory.a ../../src/libs/zbxregexp/libzbxregexp.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxmedia/libzbxmedia.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxcommshigh/libzbxcommshigh.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a ../../src/libs/zbxself/libzbxself.a ../../src/libs/zbxserver/libzbxserver.a ../../src/libs/zbxicmpping/libzbxicmpping.a ../../src/libs/zbxdbupgrade/libzbxdbupgrade.a ../../src/libs/zbxdbhigh/libzbxdbhigh.a ../../src/libs/zbxdb/libzbxdb.a ../../src/libs/zbxmodules/libzbxmodules.a -lclntsh -lnnz11    -lxml2  -lodbc  -lnetsnmp -lssh2    -lcurl  -lm -ldl  -lresolv 
      ../../src/libs/zbxdbhigh/libzbxdbhigh.a(libzbxdbhigh_a-db.o): In function `zbx_db_insert_add_values_dyn':
      /usr/local/src/zabbix/zabbix-2.4.3/src/libs/zbxdbhigh/db.c:2201: undefined reference to `zbx_strlen_utf8_n'
      collect2: error: ld returned 1 exit status
      make[3]: *** [zabbix_server] Error 1
      make[3]: Leaving directory `/usr/local/src/zabbix/zabbix-2.4.3/src/zabbix_server'
      make[2]: *** [install-recursive] Error 1
      make[2]: Leaving directory `/usr/local/src/zabbix/zabbix-2.4.3/src/zabbix_server'
      make[1]: *** [install-recursive] Error 1
      make[1]: Leaving directory `/usr/local/src/zabbix/zabbix-2.4.3/src'
      make: *** [install-recursive] Error 1
      

        Activity

        Hide
        Alexander Vladishev added a comment -

        Broken in: ZBX-8328

        Show
        Alexander Vladishev added a comment - Broken in: ZBX-8328
        Hide
        Andris Zeila added a comment -

        Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9154

        Show
        Andris Zeila added a comment - Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9154
        Hide
        richlv added a comment -

        thanks for testing the development branch. you should run "make dbschema" first - see https://www.zabbix.org/wiki/Compilation_instructions for more detail

        Show
        richlv added a comment - thanks for testing the development branch. you should run "make dbschema" first - see https://www.zabbix.org/wiki/Compilation_instructions for more detail
        Hide
        Eugene Bezmaly added a comment -

        I've noticed this in the manual just a couple of minutes earlier then you answered Thanks a lot and sorry

        Show
        Eugene Bezmaly added a comment - I've noticed this in the manual just a couple of minutes earlier then you answered Thanks a lot and sorry
        Hide
        richlv added a comment -

        great, thanks for your interest again. no need to delete comments, though - it makes the comment flow look weird

        Show
        richlv added a comment - great, thanks for your interest again. no need to delete comments, though - it makes the comment flow look weird
        Hide
        Eugene Bezmaly added a comment -

        I've deleted it before your answer, just after reading manual
        Nevertheless, my story hasn't finished. I've migrated my prev MySQL DB (it was based on zabbix 2.4.3) to the Oracle, but now the next error occured:
        The server does not match Zabbix database. Current database version (mandatory/optional): 02040000/02040000. Required mandatory version: 02020000.
        It's a little bit strange cause zbx version hasn't changed, isn't it? :-\

        Show
        Eugene Bezmaly added a comment - I've deleted it before your answer, just after reading manual Nevertheless, my story hasn't finished. I've migrated my prev MySQL DB (it was based on zabbix 2.4.3) to the Oracle, but now the next error occured: The server does not match Zabbix database. Current database version (mandatory/optional): 02040000/02040000. Required mandatory version: 02020000. It's a little bit strange cause zbx version hasn't changed, isn't it? :-\
        Hide
        richlv added a comment -

        apparently you managed to run 2.2 server against that database

        Show
        richlv added a comment - apparently you managed to run 2.2 server against that database
        Hide
        Eugene Bezmaly added a comment -

        Maybe svn://svn.zabbix.com/branches/dev/ZBX-9154 is based on 2.2? is it possible?

        Show
        Eugene Bezmaly added a comment - Maybe svn://svn.zabbix.com/branches/dev/ZBX-9154 is based on 2.2? is it possible?
        Hide
        richlv added a comment -

        indeed, as this should be fixed for 2.2 as well, that development branch is based on 2.2

        Show
        richlv added a comment - indeed, as this should be fixed for 2.2 as well, that development branch is based on 2.2
        Hide
        Eugene Bezmaly added a comment - - edited

        Really....
        1352:20141231:102730.446 Starting Zabbix Server. Zabbix 2.2.9rc1 (revision

        {ZABBIX_REVISION}

        ).

        PS So, I'll start my old MySQL DB just to have monitoring during NY holiday and continue to migrate after 2.4.3 fix will be available.

        Have a nice NY holiday

        Show
        Eugene Bezmaly added a comment - - edited Really.... 1352:20141231:102730.446 Starting Zabbix Server. Zabbix 2.2.9rc1 (revision {ZABBIX_REVISION} ). PS So, I'll start my old MySQL DB just to have monitoring during NY holiday and continue to migrate after 2.4.3 fix will be available. Have a nice NY holiday
        Hide
        Eugene Bezmaly added a comment - - edited

        btw, I've compiled 2.4.2 with oracle support without any troubles but there're a lot of such messages
        1674:20141231:104119.657 delay period [ ]
        1674:20141231:104119.657 wrong delay period format [ ]

        Is it possible that 2.4.3 DB is incompatible with 2.4.2?

        Show
        Eugene Bezmaly added a comment - - edited btw, I've compiled 2.4.2 with oracle support without any troubles but there're a lot of such messages 1674:20141231:104119.657 delay period [ ] 1674:20141231:104119.657 wrong delay period format [ ] Is it possible that 2.4.3 DB is incompatible with 2.4.2?
        Hide
        richlv added a comment - - edited

        no, database schema in 2.4 is the same. could it be that your upgraded db has some broken data in it ?

        Show
        richlv added a comment - - edited no, database schema in 2.4 is the same. could it be that your upgraded db has some broken data in it ?
        Hide
        Eugene Bezmaly added a comment -

        Yes, sure, there's anything could be ))

        Show
        Eugene Bezmaly added a comment - Yes, sure, there's anything could be ))
        Hide
        Andris Zeila added a comment -

        Released in:

        • pre-2.2.9rc1 r51358
        • pre-2.4.4rc1 r51359
        • pre-2.5.0 r51360
        Show
        Andris Zeila added a comment - Released in: pre-2.2.9rc1 r51358 pre-2.4.4rc1 r51359 pre-2.5.0 r51360
        Hide
        Eugene Bezmaly added a comment -

        Excuse me, where can I download pre-2.4.4rc1 r51359?
        Here's http://www.zabbix.com/ru/developers.php only nightly builld (51340).

        Show
        Eugene Bezmaly added a comment - Excuse me, where can I download pre-2.4.4rc1 r51359? Here's http://www.zabbix.com/ru/developers.php only nightly builld (51340).
        Hide
        Alexander Vladishev added a comment -

        Eugene, the nightly builds are generated twice a day at 00:00 and 12:00 UTC time.

        Show
        Alexander Vladishev added a comment - Eugene, the nightly builds are generated twice a day at 00:00 and 12:00 UTC time.
        Hide
        Alexander Vladishev added a comment -

        I started builds forcibly. Please wait a moment.

        Show
        Alexander Vladishev added a comment - I started builds forcibly. Please wait a moment.
        Hide
        Eugene Bezmaly added a comment -

        Thanks, compilation was successful.
        Now there're some difficulties with MySQL2Oracle migration but this is not for this thread

        Show
        Eugene Bezmaly added a comment - Thanks, compilation was successful. Now there're some difficulties with MySQL2Oracle migration but this is not for this thread

          People

          • Assignee:
            Unassigned
            Reporter:
            Dmitry
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: