[ZBX-9154] Compilation of server fails for 2.4.3 with Oracle support Created: 2014 Dec 19 Updated: 2017 May 30 Resolved: 2015 Jan 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I) |
Affects Version/s: | 2.4.3, 2.4.4rc1 |
Fix Version/s: | 2.2.9rc1, 2.4.4rc1, 2.5.0 |
Type: | Incident report | Priority: | Critical |
Reporter: | Dmitry | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | compilation, oracle, zabbix_server, zbx_strlen_utf8_n | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS Linux release 7.0.1406 |
Issue Links: |
|
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 |
Comments |
Comment by Alexander Vladishev [ 2014 Dec 19 ] |
Broken in: |
Comment by Andris Zeila [ 2014 Dec 19 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9154 |
Comment by richlv [ 2014 Dec 31 ] |
thanks for testing the development branch. you should run "make dbschema" first - see https://www.zabbix.org/wiki/Compilation_instructions for more detail |
Comment by Eugene Bezmaly [ 2014 Dec 31 ] |
I've noticed this in the manual just a couple of minutes earlier then you answered Thanks a lot and sorry |
Comment by richlv [ 2014 Dec 31 ] |
great, thanks for your interest again. no need to delete comments, though - it makes the comment flow look weird |
Comment by Eugene Bezmaly [ 2014 Dec 31 ] |
I've deleted it before your answer, just after reading manual |
Comment by richlv [ 2014 Dec 31 ] |
apparently you managed to run 2.2 server against that database |
Comment by Eugene Bezmaly [ 2014 Dec 31 ] |
Maybe svn://svn.zabbix.com/branches/dev/ZBX-9154 is based on 2.2? is it possible? |
Comment by richlv [ 2014 Dec 31 ] |
indeed, as this should be fixed for 2.2 as well, that development branch is based on 2.2 |
Comment by Eugene Bezmaly [ 2014 Dec 31 ] |
Really.... ). 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 |
Comment by Eugene Bezmaly [ 2014 Dec 31 ] |
btw, I've compiled 2.4.2 with oracle support without any troubles but there're a lot of such messages Is it possible that 2.4.3 DB is incompatible with 2.4.2? |
Comment by richlv [ 2014 Dec 31 ] |
no, database schema in 2.4 is the same. could it be that your upgraded db has some broken data in it ? |
Comment by Eugene Bezmaly [ 2014 Dec 31 ] |
Yes, sure, there's anything could be )) |
Comment by Andris Zeila [ 2015 Jan 05 ] |
Released in:
|
Comment by Eugene Bezmaly [ 2015 Jan 05 ] |
Excuse me, where can I download pre-2.4.4rc1 r51359? |
Comment by Alexander Vladishev [ 2015 Jan 05 ] |
Eugene, the nightly builds are generated twice a day at 00:00 and 12:00 UTC time. |
Comment by Alexander Vladishev [ 2015 Jan 05 ] |
I started builds forcibly. Please wait a moment. |
Comment by Eugene Bezmaly [ 2015 Jan 05 ] |
Thanks, compilation was successful. |