Bug #76433 [Asn]: Build failure with macOS libldap.dylib
| From: | mcmic@php.net | Date: | Mon, 11 Jun 2018 07:39:25 +0000 |
| Subject: | Bug #76433 [Asn]: Build failure with macOS libldap.dylib | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215595@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76433&edit=1
ID: 76433
Updated by: mcmic@php.net
Reported by: kevin dot abel dot 0 at gmail dot com
Summary: Build failure with macOS libldap.dylib
Status: Assigned
Type: Bug
Package: LDAP related
Operating System: macOS
PHP Version: 7.3.0alpha1
Assigned To: mcmic
Block user comment: N
Private report: N
New Comment:
First, the documentation says OpenLDAP 2.4 or newer is needed: https://secure.php.net/manual/en/ldap.requirements.php
There was a discussion and a patch to make it build with solaris LDAP but it was for PHP 5.6 IIRC,
not sure itâs still building: https://php.markmail.org/thread/mke5rclimfzvtaza#query:+page:1+mid:22llnz6vwjpl6sl5+state:results
Which changes would be needed to make it build with libldap.dylib?
Previous Comments:
------------------------------------------------------------------------
[2018-06-09 13:51:45] cmb@php.net
Côme, could you please have a look at this issue?
------------------------------------------------------------------------
[2018-06-08 22:50:33] kevin dot abel dot 0 at gmail dot com
Description:
------------
Trying to build PHP 7.3.0alpha1 on macOS 10.13 with the ldap extension results in failure during
linking. The macOS library for ldap (/usr/lib/libldap.dylib) does not contain some of the new
symbols used in the 7.3 ldap changes.
Test script:
---------------
Output from configure script run is available at https://gist.github.com/kabel/28ffd286da24d39ad7a6062d7cf27564#file-01-configure
Output from the make process is available at https://gist.github.com/kabel/28ffd286da24d39ad7a6062d7cf27564#file-02-make
Expected result:
----------------
Build success or configure failure
Actual result:
--------------
Configure success, build failure at link.
make: *** [sapi/cli/php] Error 1
Undefined symbols for architecture x86_64:
"_ldap_create_passwordpolicy_control", referenced from:
_zif_ldap_exop_passwd in ldap.o
"_ldap_create_sort_control_value", referenced from:
__php_ldap_controls_from_array in ldap.o
"_ldap_create_vlv_control_value", referenced from:
__php_ldap_controls_from_array in ldap.o
"_ldap_parse_passwordpolicy_control", referenced from:
__php_ldap_controls_to_array in ldap.o
ld: symbol(s) not found for architecture x86_64
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76433&edit=1