Date: Thu, 9 Nov 2000 08:32:09 -0800 (PST) From: B.Candler@pobox.com To: freebsd-gnats-submit@FreeBSD.org Subject: ports/22721: libldap clash between openldap and ldapsdk/perldap ports Message-ID: <20001109163209.D1DBC37B479@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 22721 >Category: ports >Synopsis: libldap clash between openldap and ldapsdk/perldap ports >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 09 08:40:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Brian Candler >Release: FreeBSD-4.1 >Organization: >Environment: >Description: When you have both openldap and perldap installed, you end up with two different and incompatible libldap's. As a result, perldap fails because it is using the wrong one. >How-To-Repeat: Install the following ports: ldapsdk-1998.12.31 Mozilla LDAP sdk openldap-1.2.11 Open source LDAP client and server software perldap-1.4 Perl interface to LDAP Now run this test program: #!/usr/bin/perl use Mozilla::LDAP::Conn; exit; gives the following error: /usr/libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/Mozilla/LDAP/API/API.so: Undefined symbol "ldap_set_option" unless you run it as LD_LIBRARY_PATH=/usr/local/mozilla/directory/lib ./test.pl Also see: # ldconfig -r | grep ldap 108:-lldap.1 => /usr/local/lib/libldap.so.1 237:-lldap.1 => /usr/local/mozilla/directory/lib/libldap.so.1 >Fix: Erm, statically link perldap against ldapsdk? Or modify perldap to use openldap's libraries instead? Both are hacks. Better to rename one of the libldap's to something else. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001109163209.D1DBC37B479>