Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9154

Compilation of server fails for 2.4.3 with Oracle support

XMLWordPrintable

      ./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
      

            Unassigned Unassigned
            quilin Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: