From: steffen at hauihau dot de Operating system: Gentoo Linux PHP version: 5.2.3 PHP Bug Type: LDAP related Bug description: Can't configure php with ldap
Description: ------------ I tried to emerge php 5.2.2 on gentoo with ldap support. configure --prefix=/usr/lib/php5 --host=i686-pc-linux-gnu --mandir=/usr/lib/php5/man --infodir=/usr/lib/php5/info --sysconfdir=/etc --cache-file=./config.cache --enable-maintainer-zts --enable-cli --disable-cgi --with-config-file-path=/etc/php/cli-php5 --with-config-file-scan-dir=/etc/php/cli-php5/ext-active --without-pear --enable-bcmath=shared --with-bz2=shared --enable-calendar=shared --with-curl=shared --without-curlwrappers --disable-dbase --enable-exif=shared --without-fbsql --without-fdftk --disable-filter --enable-ftp=shared --with-gettext=shared --without-gmp --disable-json --without-kerberos --enable-mbstring=shared --with-mcrypt=shared --with-mhash=shared --without-msql --without-mssql --with-ncurses=shared --with-openssl --with-openssl-dir=/usr --disable-pcntl --disable-pdo --without-pgsql --with-pspell=shared --without-recode --disable-simplexml --disable-shmop --with-snmp=shared --enable-soap=shared --enable-sockets=shared --without-sybase --without-sybase-ct --disable-sysvmsg --disable-sysvsem --disable-sysvshm --with-tidy=shared --disable-wddx --with-xmlrpc=shared --with-xsl=shared --enable-zip=shared --with-zlib=shared --disable-debug --enable-dba=shared --without-cdb --with-db4 --without-flatfile --with-gdbm --without-inifile --without-qdbm --with-freetype-dir=/usr --with-t1lib=/usr --disable-gd-jis-conv --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gd --with-imap=shared --with-imap-ssl --with-ldap=shared --without-ldap-sasl --with-mysql=shared,/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysqli=shared,/usr/bin/mysql_config --with-readline --without-libedit --without-mm --with-sqlite=/usr --enable-sqlite-utf8 Configure failes with these ldap related functions: checking for LDAP support... yes, shared checking for LDAP Cyrus SASL support... no checking for 3 arg ldap_set_rebind_proc... yes checking for ldap_parse_result... no checking for ldap_parse_reference... no checking for ldap_start_tls_s... no checking for ldap_bind_s... no configure: error: LDAP build check failed. Please check config.log for more information. In config.log it sais: configure:67384: checking for ldap_bind_s configure:67440: i686-pc-linux-gnu-gcc -o conftest -I/usr/include -march=pentium-m -O2 -msse3 -pipe -fomit-frame-pointer -pthread -D_REENTRANT -I/usr/include -L/usr/lib -L/usr/lib -Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s -lldap -llber conftest.c -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -ldb-4.5 -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lxml2 -lz -lm >&5 /var/tmp/portage/dev-lang/php-5.2.2-r1/temp/ccfMyG4A.o: In function `main': conftest.c:(.text+0xf): undefined reference to `ldap_bind_s' collect2: ld returned 1 exit status I tried to manually compile the failed code and get it to work when I added "-lldap" to the end of the above command. So I think "-lldap" is missing in $LIBS. I do not know if this is really a bug, but I have no idea how to fix this issue as I need ldap support in php. If you need further Information, please let me know. Regards, Steffen Hau -- Edit bug report at http://bugs.php.net/?id=41973&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41973&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41973&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41973&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41973&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41973&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41973&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41973&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41973&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41973&r=support Expected behavior: http://bugs.php.net/fix.php?id=41973&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41973&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41973&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41973&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41973&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41973&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41973&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41973&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41973&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41973&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41973&r=mysqlcfg