Bug #18058 Updated: ldap_start_tls_s does not exist in Netscape SDK
| From: | rmeans at law dot berkeley dot edu | Date: | Sat, 29 Jun 2002 09:37:30 +0000 |
| Subject: | Bug #18058 Updated: ldap_start_tls_s does not exist in Netscape SDK | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12511@lists.php.net to get a copy of this message | ||
ID: 18058
Updated by: rmeans@law.berkeley.edu
Reported By: rmeans@law.berkeley.edu
Status: Open
Bug Type: Compile Failure
Operating System: Solaris 8
PHP Version: 4.2.1
New Comment:
The following patches to ldap.c and php_ldap.h resolve the problem:
*** ldap.c Sat Jun 29 02:24:23 2002
--- ldap.c.orig Sat Jun 29 02:21:36 2002
***************
*** 119,123 ****
#endif
! #if defined(LDAP_API_FEATURE_X_OPENLDAP) && ( LDAP_API_VERSION > 2000
)
PHP_FE(ldap_start_tls,
NULL)
#endif
--- 119,123 ----
#endif
! #if LDAP_API_VERSION > 2000
PHP_FE(ldap_start_tls,
NULL)
#endif
***************
*** 1993,1997 ****
#endif
! #if defined(LDAP_API_FEATURE_X_OPENLDAP) && ( LDAP_API_VERSION >
2000 )
/* {{{ proto bool ldap_start_tls(resource link)
Start TLS */
--- 1993,1997 ----
#endif
! #if LDAP_API_VERSION > 2000
/* {{{ proto bool ldap_start_tls(resource link)
Start TLS */
*** php_ldap.h Sat Jun 29 02:23:49 2002
--- php_ldap.h.orig Sat Jun 29 02:23:29 2002
***************
*** 90,94 ****
#endif
! #if defined(LDAP_API_FEATURE_X_OPENLDAP) && ( LDAP_API_VERSION > 2000
)
PHP_FUNCTION(ldap_start_tls);
#endif
--- 90,94 ----
#endif
! #if LDAP_API_VERSION > 2000
PHP_FUNCTION(ldap_start_tls);
#endif
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 05:15:55] rmeans@law.berkeley.edu
Using Netscape LDAP SDK 4 with PHP 4.2.1, Apache will not link because
of an undefined reference to ldap_start_tls_s in ldap.o.
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_start_tls':
/usr/local/src/php-4.2.1/ext/ldap/ldap.c:2009: undefined reference to
`ldap_start_tls_s'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
The Netscape SDK does not include this function and PHP doesn't seem to
know that I'm not using OpenLDAP. Does PHP only work with the OpenLDAP
libraries?
Thanks!
Configure line:
CC=gcc ./configure --with-oci8 --without-mysql
--with-ldap=/usr/local/ldapsdk \
--with-apache=../apache_1.3.26 --enable-track-vars --enable-sigchild \
--with-gd --with-png-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib
\
--with-freetype-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib \
--enable-inline-optimization
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18058&edit=1