[ZBX-4069] make install - breaking in a LDAP & Oracle environment Created: 2011 Aug 24  Updated: 2017 May 30  Resolved: 2016 Mar 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I), Server (S)
Affects Version/s: 1.8.7rc1, 3.0.0alpha5
Fix Version/s: 3.0.0beta2

Type: Incident report Priority: Major
Reporter: João Figueiredo Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: installation, oracle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, RHEL5, Oracle 11G


Issue Links:
Duplicate
is duplicated by ZBX-4223 not possible to compile zabbix_server... Closed

 Description   

make install'ing the the source code returns

Making install in zbxcrypto
make[3]: Entering directory `/opt/zabbix/zabbix-1.8.7rc1/src/libs/zbxcrypto'
gcc -DHAVE_CONFIG_H -I. -I../../../include     -g -O2   -I/usr/include/oracle/11.2/client64      -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -I. -I/usr/include/net-snmp   -I/usr/include -I/usr/include  -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
In file included from ../../../include/sysinc.h:330,
                 from ../../../include/common.h:23,
                 from md5.c:54:
/usr/include/lber.h:204: error: redefinition of ‘struct berval’
make[3]: *** [md5.o] Error 1

while ./configure finished flawlessly with these flags:

./configure exec_prefix=/opt/zabbix --prefix=/opt/zabbix --with-oracle --with-net-snmp --with-libcurl --with-jabber --with-openipmi --with-ldap --enable-server --with-oracle-include=/usr/include/oracle/11.2/client64  --with-oracle-lib=/usr/lib/oracle/11.2/client64/lib

returning at the end,

    Linker flags:          -rdynamic  -L/usr/lib -lldap -llber      -L/usr/lib/oracle/11.2/client64/lib   -liksemel    -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz  -L/usr/lib64 -L/usr/lib64 -lnetsnmp -lcrypto -lm -L/usr/lib64/lib -lwrap -lcrypto  -L/usr/lib64 -L/usr/lib64 -lnetsnmp -lcrypto -lm -L/usr/lib64/lib -lwrap -lcrypto  -L/usr/lib
    Libraries:             -lm  -lresolv     -lclntsh -lnnz11   -liksemel -lcurl  -lnetsnmp   -lOpenIPMI -lOpenIPMIposix

but when make install'ing the upper error was thrown.



 Comments   
Comment by João Figueiredo [ 2011 Aug 24 ]

The only post found discussing this was the late 2010,

http://www.zabbix.com/forum/showthread.php?t=20066

Comment by João Figueiredo [ 2011 Sep 27 ]

This is still present in pre-zabbix-1.8.8.x-21940

"error: redefinition of ‘struct berval’ "
How to correct this ?

Comment by Marcus Oliveira [ 2011 Dec 12 ]

The problem is still present on zabbix-1.9.8. Any news on this thread ?

Thanks

Comment by richlv [ 2012 Jan 11 ]

might be related to ZBX-494

Comment by Peter Schmeisser [ 2012 Oct 03 ]

is there an ldap.h under $ORACLE_HOME?
i had the same problem, and i made this:
#mv /orasys/oracle/product/11.2.0.3IC/sdk/include/ldap.h /orasys/oracle/product/11.2.0.3IC/sdk/include/ldap.h.ori

and it works
now, only the /usr/include/ldap.h is available

Comment by Ronald Rood [ 2015 Mar 12 ]

Still an issue in 2.4.4.
client 12.1
RH 6.6
I renamed the oracle client's ldap.h and was able to compile.

Comment by Viktors Tjarve [ 2016 Jan 20 ]

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

Comment by Andris Zeila [ 2016 Jan 26 ]

Successfully tested, I added a comment in 57980, please review

viktors.tjarve Looks good thanks.

Comment by Viktors Tjarve [ 2016 Jan 29 ]

Released in:

  • pre-3.0.0alpha3 r58074
Comment by Glebs Ivanovskis (Inactive) [ 2016 Feb 09 ]

Header include path of the database client library disappeared from configure script final summary ("Compiler flags"), but this issue will be fixed in ZBX-4148.

Generated at Fri Apr 19 19:10:10 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.