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: 2020-03-01 04:22 UTC
From: jfha73 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: master-Git-2015-02-04 (Git) OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jfha73 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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
 [2020-02-18 08:51 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-02-18 08:51 UTC] cmb@php.net
> […] because it's not yet supported by PHP, as per this line from
> your wiki:

Well, that's from an mostly unmaintained page for Windows[1], and
the good news is, that OpenLDAP 2.4 is actually used for our
Windows builds for many years now.

> LDAP build check failed. Please check config.log for more
> information.

Well, is there more information in config.log?

[1] <https://wiki.php.net/internals/windows/libs>
 [2020-03-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC