php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9646 PHP (4.0.4pl1, snaps) doesn't compile with OpenLDAP 2.07
Submitted: 2001-03-09 04:33 UTC Modified: 2001-03-09 12:02 UTC
From: oernii at oernii dot sk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: linux 2.2.14
Private report: No CVE-ID: None
 [2001-03-09 04:33 UTC] oernii at oernii dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-09 06:18 UTC] 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 12:02 UTC] oernii at oernii dot sk
thanx, it did help
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC