From:             [EMAIL PROTECTED]
Operating system: linux 2.2.14
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Problem
Bug description:  PHP (4.0.4pl1, snaps) doesn't compile with OpenLDAP 2.07

./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


-- 
Edit Bug report at: http://bugs.php.net/?id=9646&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to