PHP 4.0 Bug #9646 Updated: PHP (4.0.4pl1, snaps) doesn't compile with OpenLDAP 2.07

From: Date: Fri, 09 Mar 2001 17:02:05 +0000
Subject: PHP 4.0 Bug #9646 Updated: PHP (4.0.4pl1, snaps) doesn't compile with OpenLDAP 2.07
Groups: php.dev 
Request: Send a blank email to php-dev+get-48422@lists.php.net to get a copy of this message
ID: 9646 User Update by: oernii@oernii.sk Status: Closed Bug Type: Compile Problem Description: PHP (4.0.4pl1, snaps) doesn't compile with OpenLDAP 2.07 thanx, it did help Previous Comments: --------------------------------------------------------------------------- [2001-03-09 06:18:53] sniper@php.net You have to use the INSTALL path of the ldap NOT the source path.ie. --with-ldap=/www/ldap (if you had --prefix=/www/ldap in openldap configure line) --Jani --------------------------------------------------------------------------- [2001-03-09 04:33:03] oernii@oernii.sk ./configure --with-ldap=../openldap-2.0.7/ make ... Making all in . make[1]: Entering directory `/storage/src/php-4.0.4pl1' gcc -Wall -I. -I/usr/src/php-4.0.4pl1/ -I/usr/src/php-4.0.4pl1/main -I/usr/src/php-4.0.4pl1 -I/usr/src/php-4.0.4pl1/Zend -I/ .. & touch stub.lo /bin/sh /usr/src/php-4.0.4pl1/libtool --silent --mode=link gcc -Wall -I. -I/usr/src/php-4.0.4pl1/ -I/usr/src/php-4.0. .. -lnsl -lresolv /bin/sh /usr/src/php-4.0.4pl1/libtool --silent --mode=link gcc -Wall -I. -I/usr/src/php-4.0.4pl1/ -I/usr/src/php-4.0. .. b.lo libphp4.la .libs/libphp4.a(ldap.o): In function `_close_ldap_link': /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:126: Error: undefined reference to `ldap_unbind_s' .libs/libphp4.a(ldap.o): In function `_free_ldap_result': /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:135: Error: undefined reference to `ldap_msgfree' .libs/libphp4.a(ldap.o): In function `php_if_ldap_connect': /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:366: Error: undefined reference to `ldap_initialize' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:368: Error: undefined reference to `ldap_err2string' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:374: Error: undefined reference to `ldap_open' .libs/libphp4.a(ldap.o): In function `_get_lderrno': /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:474: Error: undefined reference to `ldap_get_option' .libs/libphp4.a(ldap.o): In function `php_if_ldap_bind': /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:540: Error: undefined reference to `ldap_bind_s' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:541: Error: undefined reference to `ldap_err2string' .libs/libphp4.a(ldap.o): In function `php_ldap_do_search': /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:655: Error: undefined reference to `ldap_set_option' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:664: Error: undefined reference to `ldap_set_option' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:673: Error: undefined reference to `ldap_set_option' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:680: Error: undefined reference to `ldap_search_s' /usr/src/php-4.0.4pl1/ext/ldap/ldap.c:687: Error: undefined reference to `ldap_err2string' ... collect2: Error: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/storage/src/php-4.0.4pl1' make: *** [all-recursive] Error 1 PS: the same happens with snaps php4-200103061445,php4-200103071245 and php4-200103082345 PS2: the LDAP server works fine, so does the client --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9646

« previous php.dev (#48422) next »