From:             mkj dot its at cbs dot dk
Operating system: RedHat 9
PHP version:      5.0.0b1 (beta1)
PHP Bug Type:     *Configuration Issues
Bug description:  Can't configure fir LDAP

Description:
------------
When configure with LDAP support it fails, with:

Im using:

RedHat 9
OpenLDAP 2.1.22

The CVS version of PHP 5 (taken from snaps.php.net) was working fine with
my setup. But the Beta don't.

checking for LDAP support... yes, shared
checking for LDAP Cyrus SASL support... /usr
checking for 3 arg ldap_set_rebind_proc... yes
checking for ldap_parse_reference... no
checking for ldap_start_tls_s... no
checking for sasl_version in -lldap... yes
checking for ldap_bind_s... no
configure: error: LDAP build check failed. Please check config.log for
more information.
error: Bad exit status from /var/tmp/rpm-tmp.47994 (%build)
 
 
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.47994 (%build)


Reproduce code:
---------------
configure:41658: checking for ldap_bind_s
configure:41686: gcc -o conftest -g -O2 -I/usr/kerberos/include -L/usr/lib
-ldb-4.1  conftest.c -lcrypt -lpam -lgd -lfreetype -lpng -lz -ljpeg
-ldb-4.1 -lgdbm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  1>&5
/tmp/cc08qEfy.o(.text+0xa): In function `main':
/home/mkj/rpm/BUILD/php-5.0.0b1/configure:41680: undefined reference to
`ldap_bind_s'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41663 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ldap_bind_s(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ldap_bind_s();
 
int main() {
 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ldap_bind_s) || defined (__stub___ldap_bind_s)
choke me
#else
ldap_bind_s();
#endif
                                                                          
                         
; return 0; }



-- 
Edit bug report at http://bugs.php.net/?id=24532&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24532&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24532&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24532&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24532&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24532&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24532&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24532&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24532&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24532&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24532&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24532&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24532&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24532&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24532&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24532&r=gnused

Reply via email to