Ad Widget

Collapse

Problem using --with-oracle-... and --with-ldap together

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Theoupneustos
    Junior Member
    • Dec 2008
    • 4

    #1

    Problem using --with-oracle-... and --with-ldap together

    Hello,

    I have installed and used Zabbix in the past, but this is my first time attempting to use it with an Oracle database. My DBA provided me with the Oracle 11.2 Instant Client libraries and headers, and I've run into a problem compiling.

    When I compile using --with-mysql --with-ldap --enable-server --enable-agent, the program compiles successfully. When I compile using --with-oracle-lib=/usr/lib/oracle/11.2/client64/lib --with-oracle-include=/usr/include/oracle/11.2/client64 --enable-server --enable-agent, it will compile successfully (haven't tested it yet). When I compile using the oracle options and --with-ldap together, I receive the following compile-time error:

    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 -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:321,
    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
    make[3]: Leaving directory `/usr/share/zabbix/src/zabbix-1.8.3/src/libs/zbxcrypto'


    Am I missing something obvious?

    Thanks.
  • Theoupneustos
    Junior Member
    • Dec 2008
    • 4

    #2
    (bump)

    Anyone?

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      We use Oracle but don't use LDAP authentication, so I haven't seen this error

      Wish I could help more.

      Comment

      • zabbix_zen
        Senior Member
        • Jul 2009
        • 426

        #4
        ALso experiencing this on 1.8.7rc1 over Oracle 11G with the --with-ldap flag.

        Opened a bug
        here

        Comment

        • vlturner
          Junior Member
          • Aug 2011
          • 28

          #5
          See where the redefinition occurs

          See where the redefinition occurs, then look to see if the structures are identical. If they are the same but just a redefinition we can see what can be done to drop one of the includes. If they are different, then we may need to se if one is an upgrade of the other and it includes the earlier structure. If they are way too different, then we need to rethink this. And seek advisement from the lead developers.

          Comment

          • Tractorboy
            Member
            • Oct 2010
            • 98

            #6
            Oracle10g with ldap

            We have zabbix with Oracle10G and ldap on red Hat and no issues at all occurred.

            We did do the original install without ldap and then added ldap after, if that makes any difference.

            Comment

            • zabbix_zen
              Senior Member
              • Jul 2009
              • 426

              #7
              Tractorboy,
              you still have to recompile the source for adding ldap later,
              that was my case.

              The difference from your scenario to mine is probably me specifically using 11G libraries,
              --with-oracle-include=/usr/include/oracle/11.2/client64 --with-oracle-lib=/usr/lib/oracle/11.2/client64/lib

              Comment

              • pedrums
                Junior Member
                • Jun 2012
                • 2

                #8
                is there an ldap.h under $ORACLE_HOME?
                i has 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

                Comment

                Working...