php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68985 Cannot compile on Ubuntu because OpenLDAP 2.4.x is not yet supported
Submitted: 2015-02-04 19:31 UTC Modified: 2015-06-17 14:28 UTC
From: jfha73 at gmail dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: master-Git-2015-02-04 (Git) OS: Ubuntu 14.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-04 19:31 UTC] jfha73 at gmail dot com
Description:
------------
Hey guys,

I have not been able to compile master on Ubuntu 14.04 because it's not yet supported by PHP, as per this line from your wiki:

ldap 	http://openldap.org 	No 	2004 	2.3.42 	2.3.42 	2.3.42 	Yes 	Yes 

And OpenLDAP doesn't support 2.3.x anymore because is too old, so let me ask you if you please make php_ldap compatible with OpenLDAP 2.4.x

Thanks.

Test script:
---------------
./configure --disable-all --enable-cli --with-ldap=shared

Expected result:
----------------
Run ./configure so make can be done.

Actual result:
--------------
Errors when checking for LDAP Libraries even when they are there.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-05 00:20 UTC] jfha73 at gmail dot com
This is what I get on Ubuntu 14.04.

checking for LDAP support... yes, shared
checking for LDAP Cyrus SASL support... no
checking size of long int... 8
checking for 3 arg ldap_set_rebind_proc... yes
checking for ldap_parse_result... no
checking for ldap_parse_reference... no
checking for ldap_start_tls_s... no
checking for ldap_bind_s... no
configure: error: LDAP build check failed. Please check config.log for more information.

and these are the library files:

>ls /usr/lib/libldap*
/usr/lib/libldap-2.4.so.2       /usr/lib/libldap_r-2.4.so.2.10.3
/usr/lib/libldap-2.4.so.2.10.3  /usr/lib/libldap_r.a
/usr/lib/libldap.a              /usr/lib/libldap_r.la
/usr/lib/libldap.la             /usr/lib/libldap_r.so
/usr/lib/libldap_r-2.4.so.2     /usr/lib/libldap.so
 [2015-06-17 14:28 UTC] mcmic@php.net
On Debian Wheezy I only have /usr/lib/libldap_r-2.4.so.2 and /usr/lib/libldap.so and it works fine:
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
checking for 3 arg ldap_set_rebind_proc... yes
checking for ldap_parse_result... yes
checking for ldap_parse_reference... yes
checking for ldap_start_tls_s... yes
checking for ldap_bind_s... yes
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 14:01:28 2019 UTC