Ad Widget

Collapse

Zabbix 1.6.1 --with-ldap compile problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duddits
    Junior Member
    • Nov 2008
    • 3

    #1

    Zabbix 1.6.1 --with-ldap compile problem

    Hello,

    I'm trying to build new zabbix on my system. I've got openldap header files installed (openldap-devel and libs):

    Code:
    simple.c:(.text+0x20d): undefined reference to `ldap_first_entry'
    simple.c:(.text+0x229): undefined reference to `ldap_first_attribute'
    simple.c:(.text+0x23a): undefined reference to `ldap_get_values'
    simple.c:(.text+0x24f): undefined reference to `ldap_value_free'
    simple.c:(.text+0x25c): undefined reference to `ldap_memfree'
    simple.c:(.text+0x26d): undefined reference to `ber_free'
    simple.c:(.text+0x27c): undefined reference to `ldap_msgfree'
    simple.c:(.text+0x28c): undefined reference to `ldap_unbind'
    simple.c:(.text+0x2b3): undefined reference to `ldap_err2string'
    simple.c:(.text+0x2eb): undefined reference to `ldap_err2string'
    collect2: ld returned 1 exit status
    make[2]: *** [zabbix_agent] Error 1
    make[2]: *** Waiting for unfinished jobs....
    ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a(simple.o): In function `check_ldap':
    simple.c:(.text+0x1c7): undefined reference to `ldap_init'
    simple.c:(.text+0x1f8): undefined reference to `ldap_search_s'
    simple.c:(.text+0x20d): undefined reference to `ldap_first_entry'
    simple.c:(.text+0x229): undefined reference to `ldap_first_attribute'
    simple.c:(.text+0x23a): undefined reference to `ldap_get_values'
    simple.c:(.text+0x24f): undefined reference to `ldap_value_free'
    simple.c:(.text+0x25c): undefined reference to `ldap_memfree'
    simple.c:(.text+0x26d): undefined reference to `ber_free'
    simple.c:(.text+0x27c): undefined reference to `ldap_msgfree'
    simple.c:(.text+0x28c): undefined reference to `ldap_unbind'
    simple.c:(.text+0x2b3): undefined reference to `ldap_err2string'
    simple.c:(.text+0x2eb): undefined reference to `ldap_err2string'
    collect2: ld returned 1 exit status
    make[2]: *** [zabbix_agentd] Error 1
    If you need more info about building surroundings I'll be happy to provide it.

    Default (without ldap support) make goes through without problems.

    TIA.
  • cbidwell
    Senior Member
    • Aug 2006
    • 127

    #2
    When you ran ./configure did you specify where your ldap install was?

    Code:
    --with-ldap[=DIR]       Include LDAP support [default=no]. DIR is the LDAP

    Comment

    • duddits
      Junior Member
      • Nov 2008
      • 3

      #3
      At first: no.
      It was clearly stated in --help that --with-ldap will search in common places for openldap header files. Then I explicitly set the search path to /usr/include (where ldap.h resides) but still no luck here. Errror remains unchanged.

      Any other suggestions?

      Comment

      • cbidwell
        Senior Member
        • Aug 2006
        • 127

        #4
        What OS are you running? When you installed openldap did you install as RPM? .deb pkg? I can't help but think that you may be missing an additional package on your openldap install.

        Comment

        • duddits
          Junior Member
          • Nov 2008
          • 3

          #5
          Yes, this rpm based Linux distro (PLD Linux) but I don't have any
          other problems with software that rely on openldap.
          As I mentioned before I've got header files installed in /usr/include
          and libs in /usr/lib64 (-devel and -libs packages).

          Comment

          • jzzhou
            Junior Member
            • Dec 2008
            • 2

            #6
            LDAP Config.

            i have encounter some problem of configuring ldap authentication with AD. anybody has detailed configuration guide? could you share with me?

            Thanks

            Comment

            • arli
              Member
              • Jan 2008
              • 71

              #7
              You'll need openldap-devel package. In Red Had:
              Code:
              yum install openldap-devel

              Comment

              Working...