|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-30 19:02 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 10:00:02 2025 UTC |
The configure test for ldap_start_tls_s and other ldap functions fails to pass along needed ldap libraries: (...) configure:41587: checking for ldap_parse_reference configure:41615: gcc -o conftest -O2 -march=i386 -mcpu=pentiumpro -fPIC -L/usr/lib -ldb-4.1 -L/usr/lib/krb5 conftest.c -lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -lz -ldb-4.1 -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcr ypto -ldl -lz -lxml2 -lz -lm 1>&5 (...) configure:41587: checking for ldap_start_tls_s configure:41615: gcc -o conftest -O2 -march=i386 -mcpu=pentiumpro -fPIC -L/usr/lib -ldb-4.1 -L/usr/lib/krb5 conftest.c -lcrypt -lpam -lgmp -lfreetype -lpng -lz -ljpeg -lz -ldb-4.1 -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcr ypto -ldl -lz -lxml2 -lz -lm 1>&5 (...) The patch below, against ext/ldap/config.m4, worksaround this problem. Worked here, but may not be the right way to fix this: --- php4-STABLE-200306041730/ext/ldap/config.m4.orig 2003-06-04 16:25:11.000000000 -0300 +++ php4-STABLE-200306041730/ext/ldap/config.m4 2003-06-04 16:30:21.000000000 -0300 @@ -110,7 +110,9 @@ dnl Check for 3 arg ldap_set_rebind_proc _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LDFLAGS=$LDFLAGS CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LDFLAGS="$LDFLAGS -L$LDAP_LIBDIR $LDAP_SHARED_LIBADD" AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc, [AC_TRY_COMPILE([#include <ldap.h>], [ldap_set_rebind_proc(0,0,0)], ac_cv_3arg_setrebindproc=yes, ac_cv_3arg_setrebindproc=no)]) @@ -118,8 +120,15 @@ AC_DEFINE(HAVE_3ARG_SETREBINDPROC,1,[Whether 3 arg set_rebind_proc()]) fi CPPFLAGS=$_SAVE_CPPFLAGS + LDFLAGS=$_SAVE_LDFLAGS dnl Solaris 2.8 claims to be 2004 API, but doesn't have dnl ldap_parse_reference() nor ldap_start_tls_s() + _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LDFLAGS=$LDFLAGS + CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" + LDFLAGS="$LDFLAGS -L$LDAP_LIBDIR $LDAP_SHARED_LIBADD" AC_CHECK_FUNCS([ldap_parse_reference ldap_start_tls_s]) + CPPFLAGS=$_SAVE_CPPFLAGS + LDFLAGS=$_SAVE_LDFLAGS fi