|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-06-08 22:50 UTC] 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 Patchesmacos-ldap (last revision 2018-06-11 17:57 UTC by kevin dot abel dot 0 at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
The suggestion: "LDAP_F( int ) ldap_parse_passwordpolicy_control LDAP_P(( LDAP *ld, LDAPControl *ctrl, ber_int_t *expirep, ber_int_t *gracep, LDAPPasswordPolicyError *errorp )) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_11, __IPHONE_NA, __IPHONE_NA, "use OpenDirectory Framework"); " Do not work with System Version: OS X 10.11.6 Kernel Version: Darwin 15.6.0 Applied in files below, but without success: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdks/MacOSX.sdk/usr/include/ldap.h /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ldap.h /usr/include/ldap.h /usr/local/Cellar/openldap/2.4.47/include/ldap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ldap.h openLdap version: $OpenLDAP: ldapmodify 2.4.28 (Oct 3 2015 17:40:55)Hello, The patch macos-ldap (last revision 2018-06-11 17:57 UTC by kevin dot abel dot 0 at gmail dot com) do not work with : System Version: OS X 10.11.6 Kernel Version: Darwin 15.6.0 php-7.3.4.tar.gz httpd-2.4.39.tar.gz OpenLDAP: ldapmodify 2.4.28 (Oct 3 2015 17:40:55) Error: Undefined symbols for architecture x86_64: "_ldap_create_sort_control_value", referenced from: __php_ldap_control_from_array in ldap.o "_ldap_create_vlv_control_value", referenced from: __php_ldap_control_from_array in ldap.o ld: symbol(s) not found for architecture x86_64 It's seems only solves the issue about "_ldap_create_passwordpolicy_control" and "ldap_parse_passwordpolicy_control" symbols.