[Bug 145501] New: cmake error on Solaris in kdepimlibs with ldap/lber

stevee at zuken.co.uk stevee at zuken.co.uk
Wed May 16 14:07:50 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=145501         
           Summary: cmake error on Solaris in kdepimlibs with ldap/lber
           Product: kontact
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: mail
        AssignedTo: kdepim-bugs kde org
        ReportedBy: stevee zuken co uk


Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

(This bug is in kdepimlibs, but there is no application entry for that in bugs.kde.org)

I get this error when running cmake on Solaris:

--
----------------------------------------------------------------------------------
-- The following list of OPTIONAL packages were located on your system.         --
-- You will have all the following features available from this software.       --
----------------------------------------------------------------------------------
+ boost
+ OpenLDAP
----------------------------------------------------------------------------------
-- The following list of OPTIONAL packages could NOT be located on your system. --
-- Consider installing them to enable more features from this software.         --
----------------------------------------------------------------------------------
+ cyrus-sasl: Cyrus SASL API <http://asg.web.cmu.edu/sasl/sasl-library.html>
Needed to support authentication of logins

CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
LBER_LIBRARIES (ADVANCED)

The problem is that Solaris has an implementation of ldap that is not OpenLDAP which cmake incorrectly identifies as being openldap. The solaris ldap does *not* have a liblber, so that is not found.

I worked around it, as I don't need ldap, by changing FindLdap.cmake as in the attached patch so that it only supports ldap if both ldap and lber are found. However I don't think this is correct solution as it will probably break the APPLE specific checks in FindLdap.cmake



More information about the Kdepim-bugs mailing list