ID: 16862 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Operating System: Solaris 8.0 PHP Version: 4.2.0 New Comment:
I had the same problem using gcc. PHP 4.2 seems to include code for start_tls when it sees an ldap version >2000, however, solaris ldap version (defined in /usr/include/ldap.h) is 2004, yet it does not support this function. I changed line 441 in ldap.c to read #if LDAP_API_VERSION >= 2000 lines 528, 537, 546 #if ( LDAP_API_VERSION >= 2000 ) || HAVE_NSLDAP and set the LDAP_API_VERSION in /usr/include/ldap.h to 2000 this seemed to compile ok and ran with no error. Looks like we need some more #ifdef statements. Previous Comments: ------------------------------------------------------------------------ [2002-05-06 18:49:04] [EMAIL PROTECTED] I had the same problem using gcc. PHP 4.2 seems to include code for start_tls when it sees an ldap version >2000, however, solaris ldap version (defined in /usr/include/ldap.h) is 2004, yet it does not support this function. I changed line 441 in ldap.c to read #if LDAP_API_VERSION >= 2000 lines 528, 537, 546 #if ( LDAP_API_VERSION >= 2000 ) || HAVE_NSLDAP and set the LDAP_API_VERSION in /usr/include/ldap.h to 2000 this seemed to compile ok and ran with no error. Looks like we need some more #ifdef statements. ------------------------------------------------------------------------ [2002-04-26 15:37:00] [EMAIL PROTECTED] When try to compile the PHP under Solaris 8 with NS-LDAP API 4.1 or native ldap, generate the follow error: Undefined first referenced symbol in file ldap_start_tls_s ./.libs/libphp4.a(ldap.o) ld: fatal: Symbol referencing errors. No output written to php collect2: ld returned 1 exit status Using SUN native C compiler (SUNWspro rel 5.0) and gcc 3.0.4 The configure line is: './configure' '--prefix=/usr/opt/php' '--enable-shared' '--with-openssl' '--with-ibm-db2=/SOMEWHERE/IBMdb2/V6.1' '--enable-sysvsem' '--enable-sysvshm' '--with-java=/usr/j2se' '--enable-ftp' '--with-mysql=/SOMEWHERE/mysql' '--with-pgsql=/SOMEWHERE/pgsql' '--with-config-file-path=/usr/opt/php/etc' '--with-pdflib' '--with-jpeg-dir=/SOMEWHERE' '--with-png-dir' '--with-tiff-dir' '--with-xpm-dir' '--with-gd' '--with-zlib-dir=/usr/lib' '--enable-shmop' '--enable-sigchild' '--enable-safe-mode' '--with-exec-dir=/usr/opt/php/bin' '--with-tsrm-pthreads' '--with-mhash=/SOMEWHERE' '--enable-memory-limit' '--with-ldap=/SOMEWHERE' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16862&edit=1