Bug #14408 Updated: compiled failed for target ldap.lo
| From: | venaas@php.net | Date: | Sun, 23 Dec 2001 16:48:54 +0000 |
| Subject: | Bug #14408 Updated: compiled failed for target ldap.lo | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74869@lists.php.net to get a copy of this message | ||
ID: 14408
Updated by: venaas
Reported By: fowler@csufresno.edu
Old Status: Open
Status: Closed
Bug Type: LDAP related
Operating System: Solaris 8
PHP Version: php4-200112040900
New Comment:
Sorry, my fault. I added some rebind_proc code which is
highly experimental. I thought my check would only be
satisfied for some OpenLDAP versions, didn't check with
Netscape SDK. I've now made sure it is only included for
OpenLDAP. Actually, since the check was triggered for
Netscape SDK, it's possible that I will add this feature
for Netscape also in the future. I checked for
ldap_set_rebind_proc() having three parameters. For those
APIs that only accept two, it is very ugly to implement it.
I'm pretty sure current ldap.c compiles for everyone. It's
nice if you try the latest snapshot. Let me know if there
still are problems.
Previous Comments:
------------------------------------------------------------------------
[2001-12-12 14:38:30] sniper@php.net
Not so fast! This problem was reported to be in the latest CVS!
And I can confirm it. There are some missing TSRM macros in the
new stuff Stig added just recently.
------------------------------------------------------------------------
[2001-12-12 14:37:08] jpm@php.net
Closing then.
-- Joao
------------------------------------------------------------------------
[2001-12-12 14:35:23] fowler@csufresno.edu
compiled under php 4.1.0
------------------------------------------------------------------------
[2001-12-10 19:19:34] fowler@csufresno.edu
I am using Netscape Directory SDK for C 4.14. The ldap header file being used while compliling is
the one that came with the SDK. Is 4.14 not supported?
The configuration options I specified to build php were:
./configure \
--with-expat-dir=/usr/local \
--with-sablot=/usr/local \
--enable-xslt \
--with-xslt-sablot \
--with-openssl=/usr/local/ssl \
--with-curl=/opt \
--with-ldap=/usr/local \
--with-mysql \
--with-nsapi=/usr/netscape/server4 \
--with-iconv=/usr/local
------------------------------------------------------------------------
[2001-12-10 13:23:42] fowler@csufresno.edu
Compiling with the LDAP module fails with the following error. Am I missing something?
# make
...
...
/bin/sh /usr/software/php2/php4-200112040900/libtool --silent --mode=compile gcc -I.
-I/usr/software/php2/php4-200112040900/ext/ldap -I/usr/software/php2/php4-200112040900/main
-I/usr/software/php2/php4-200112040900 -I/usr/netscape/server4/plugins/include
-I/usr/software/php2/php4-200112040900/Zend -I/usr/local/ssl/include -I/opt/include
-I/usr/local/include -I/usr/software/php2/php4-200112040900/ext/mysql/libmysql
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/software/php2/php4-200112040900/TSRM -DTHREAD=1 -g
-O2 -pthreads -DZTS -prefer-pic -c ldap.c
ldap.c:2010: parse error before `LDAP_CONST'
ldap.c: In function `_ldap_rebind_proc':
ldap.c:2016: `params' undeclared (first use in this function)
ldap.c:2016: (Each undeclared identifier is reported only once
ldap.c:2016: for each function it appears in.)
ldap.c:2018: `tsrm_ls' undeclared (first use in this function)
ldap.c:2028: `url' undeclared (first use in this function)
ldap.c:2031: too few arguments to function `call_user_function_ex'
*** Error code 1
make: Fatal error: Command failed for target `ldap.lo'
Current working directory /usr/software/php2/php4-200112040900/ext/ldap
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/software/php2/php4-200112040900/ext/ldap
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/software/php2/php4-200112040900/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14408&edit=1