php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34970 ldap configuration problems
Submitted: 2005-10-24 18:04 UTC Modified: 2005-10-24 22:26 UTC
From: hip at okstate dot edu Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 5CVS-2005-10-24 (CVS) OS: Solaris 10
Private report: No CVE-ID: None
 [2005-10-24 18:04 UTC] hip at okstate dot edu
Description:
------------
configure fails with the --with-ldap option.

Reproduce code:
---------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-ldap

Actual result:
--------------
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... no
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no
checking for Informix support... no
checking for InterBase support... no
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
./configure: test: argument expected


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-24 18:12 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Please upload your config.log file somewhere and provide a link here.
 [2005-10-24 18:23 UTC] hip at okstate dot edu
config.log at http://www.cs.okstate.edu/~hip/config.log
 [2005-10-24 21:02 UTC] tony2001@php.net
Please try with this patch:

Index: ext/ldap/config.m4
===================================================================
RCS file: /repository/php-src/ext/ldap/config.m4,v
retrieving revision 1.39.2.2
diff -u -p -d -r1.39.2.2 config.m4
--- ext/ldap/config.m4  16 Sep 2005 12:09:17 -0000      1.39.2.2
+++ ext/ldap/config.m4  24 Oct 2005 19:01:09 -0000
@@ -95,7 +95,7 @@ if test "$PHP_LDAP" != "no"; then
     LDAP_PTHREAD=
   fi

-  if test -f $LDAP_LIBDIR/liblber.a -o -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
+  if test -f $LDAP_LIBDIR/liblber.a || -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
     PHP_ADD_LIBRARY_WITH_PATH(lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
     PHP_ADD_LIBRARY_WITH_PATH(ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)

Don't forget to run ./buildconf after applying it and follow the usual procedure (./configure .. make.. etc.).
 [2005-10-24 22:15 UTC] hip at okstate dot edu
Patch fixed the configuration problem.
 [2005-10-24 22:26 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 21:01:32 2024 UTC