ID: 20773 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Closed Bug Type: LDAP related Operating System: Solaris 8 PHP Version: 4.3.0RC2 New Comment:
I fixed the problem in CVS but I guess the snapshot was already generated before that. Anyway, good to hear it works now. About that mysql segfault..please provide a backtrace of it. Previous Comments: ------------------------------------------------------------------------ [2002-12-03 09:27:29] [EMAIL PROTECTED] I tried the php snapshot to compile against "Sun One Directory/iPlanet" SDK 5.08 on linux/apache This is my debug.log: CONFIGURE: './configure' '--with-apxs=/usr/sbin/apxs' '--enable-debug=no' '--prefix=/opt/php-4_snap' '--with-config-file-path=/etc/php' '--enable-shmop' '--enable-sysvshm' '--enable-versioning' '--with-jpeg-dir=/usr/local' '--with-gd' '--enable-gd-native-tt' '--disable-static' '--disable-debug' '--disable-rpath' '--with-png-dir=/usr' '--with-zlib-dir=/usr' '-with-freetype-dir=/usr' '--with-t1lib=/usr' '--enable-track-vars' '--enable-trans-sid' '--with-mysql' '--with-ldap=/usr/local' CC: gcc CFLAGS: -O3 -march=pentium2 CPPFLAGS: -DLINUX=22 -DDEV_RANDOM=/dev/random -DEAPI -DEAPI_MM CXX: CXXFLAGS: INCLUDES: -I$(top_builddir)/Zend -I/usr/local/include -I/usr/include/freetype2 LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib LIBS: -lssldap50 -lplds4 -lplc4 -lnspr4 -lt1 -lfreetype -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt DLIBS: SAPI: apache PHP_RPATHS: /usr/local/lib uname -a: Linux localhost 2.4.19 #6 SMP Fri Sep 6 16:06:31 CEST 2002 i686 unknown gcc -o conftest -O3 -march=pentium2 -DLINUX=22 -DDEV_RANDOM=/dev/random -DEAPI -DEAPI_MM -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lssldap50 -lplds4 -lplc4 -lnspr4 -lt1 -lfreetype -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /usr/local/lib/libssldap50.so: undefined reference to `SSL_ImportFD' /usr/local/lib/libssldap50.so: undefined reference to `prldap_get_session_info' /usr/local/lib/libssldap50.so: undefined reference to `SSL_OptionSetDefault' /usr/local/lib/libssldap50.so: undefined reference to `prldap_set_session_info' /usr/local/lib/libssldap50.so: undefined reference to `PK11_FindCertFromNickname' /usr/local/lib/libssldap50.so: undefined reference to `NSS_Initialize' /usr/local/lib/libssldap50.so: undefined reference to `CERT_VerifyCertName' /usr/local/lib/libssldap50.so: undefined reference to `ldap_unbind' /usr/local/lib/libssldap50.so: undefined reference to `SSL_AuthCertificateHook' /usr/local/lib/libssldap50.so: undefined reference to `ldap_set_lderrno' /usr/local/lib/libssldap50.so: undefined reference to `SSL_RevealURL /usr/local/lib/libssldap50.so: undefined reference to `CERT_VerifyCertNow' /usr/local/lib/libssldap50.so: undefined reference to `NSS_Init' /usr/local/lib/libssldap50.so: undefined reference to `prldap_get_socket_info' /usr/local/lib/libssldap50.so: undefined reference to `PK11_SetPasswordFunc' /usr/local/lib/libssldap50.so: undefined reference to `PK11_FindKeyByAnyCert' /usr/local/lib/libssldap50.so: undefined reference to `ldap_get_option' /usr/local/lib/libssldap50.so: undefined reference to `ldap_set_option' /usr/local/lib/libssldap50.so: undefined reference to `PORT_SetError' /usr/local/lib/libssldap50.so: undefined reference to `PK11_ConfigurePKCS11' /usr/local/lib/libssldap50.so: undefined reference to `SSL_GetClientAuthDataHook' /usr/local/lib/libssldap50.so: undefined reference to `SSL_OptionSet' /usr/local/lib/libssldap50.so: undefined reference to `prldap_install_routines' /usr/local/lib/libssldap50.so: undefined reference to `CERT_DestroyCertificate' /usr/local/lib/libssldap50.so: undefined reference to `NSS_SetDomesticPolicy' /usr/local/lib/libssldap50.so: undefined reference to `prldap_set_socket_info' /usr/local/lib/libssldap50.so: undefined reference to `SECKEY_DestroyPrivateKey' /usr/local/lib/libssldap50.so: undefined reference to `SSL_PeerCertificate' /usr/local/lib/libssldap50.so: undefined reference to `SSL_ResetHandshake' /usr/local/lib/libssldap50.so: undefined reference to `ldap_init' /usr/local/lib/libssldap50.so: undefined reference to `CERT_GetDefaultCertDB' /usr/local/lib/libssldap50.so: undefined reference to `SSL_SetURL' I had to fix this for php4-200212031030 to please configure: --- configure.org Tue Dec 3 11:30:09 2002 +++ configure Tue Dec 3 15:48:49 2002 @@ -42264,7 +42264,7 @@ case ssldap50 in c|c_r|pthread*) ;; *) - LIBS="-lssldap50 $LIBS" + LIBS=" -lldap50 -lprldap50 -lnss3 -lssl3 -lssldap50 $LIBS" ;; esac After fixing that it compiles and runs. Sometimes when I login against mysql I get a browser error and a segfault (11) in the httpd log though. /Peder ------------------------------------------------------------------------ [2002-12-03 03:49:48] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Make sure the ext/ldap/config.m4 has revision 1.27. If not, then you need to wait for new snapshot to be generated.. ------------------------------------------------------------------------ [2002-12-03 02:39:34] [EMAIL PROTECTED] updated summary ------------------------------------------------------------------------ [2002-12-02 16:49:06] [EMAIL PROTECTED] Tried to compile with iplanet ldap 5.0.sp1 server. Config runs OK Compile does not. (config command line entries ) ./configure --with-apxs2=/www2/bin/apxs --with-gettext --with-xml --enable-ftp --with-mhash --with-gdbm --enable-bcmath --with-mysql --with-ldap=/usr/iplanet/servers/plugins/slapd/slapi --with-zlib --with-ndbm --enable-calendar --with-imap=/export/home/imiller/imap-2002 --with-openssl=/usr/local/ssl --with-mcrypt (Config section of ldap) checking for iconv support... no checking for IMAP support... yes checking for pam_start in -lpam... yes checking for crypt in -lcrypt... (cached) yes checking whether SSL libraries are needed for c-client... no checking whether IMAP works... yes checking for Informix support... no checking for Ingres II support... no checking for InterBase support... no checking for IRCG support... no checking for Java support... no checking for LDAP support... yes checking for 3 arg ldap_set_rebind_proc... yes checking for ldap_parse_reference... no checking for ldap_start_tls_s... no checking whether to enable multibyte string support... no checking whether to enable multibyte regex support... no checking for MCAL support... no checking for mcrypt support... yes checking for mcrypt_module_open in -lmcrypt... yes checking for mcrypt_generic_deinit in -lmcrypt... yes checking for MCVE support... no checking for mhash support... yes checking whether to enable mime_magic support... no (Compile section) cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory /bin/ksh libtool --silent --mode=compile gcc -Iext/imap/ -I/export/home/imiller/php-4.3.0RC2/ext/imap/ -DPHP_ATOM_INC -I/export/home/imiller/php-4.3.0RC2/include -I/export/home/imiller/php-4.3.0RC2/main -I/export/home/imiller/php-4.3.0RC2 -I/www2/include -I/export/home/imiller/php-4.3.0RC2/Zend -I/usr/local/ssl/include -I/usr/local/include -I/export/home/imiller/imap-2002/c-client -I/usr/iplanet/servers/plugins/slapd/slapi/include -I/export/home/imiller/php-4.3.0RC2/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/export/home/imiller/php-4.3.0RC2/TSRM -g -O2 -prefer-pic -c /export/home/imiller/php-4.3.0RC2/ext/imap/php_imap.c -o ext/imap/php_imap.lo cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory /bin/ksh libtool --silent --mode=compile gcc -Iext/ldap/ -I/export/home/imiller/php-4.3.0RC2/ext/ldap/ -DPHP_ATOM_INC -I/export/home/imiller/php-4.3.0RC2/include -I/export/home/imiller/php-4.3.0RC2/main -I/export/home/imiller/php-4.3.0RC2 -I/www2/include -I/export/home/imiller/php-4.3.0RC2/Zend -I/usr/local/ssl/include -I/usr/local/include -I/export/home/imiller/imap-2002/c-client -I/usr/iplanet/servers/plugins/slapd/slapi/include -I/export/home/imiller/php-4.3.0RC2/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/export/home/imiller/php-4.3.0RC2/TSRM -g -O2 -prefer-pic -c /export/home/imiller/php-4.3.0RC2/ext/ldap/ldap.c -o ext/ldap/ldap.lo cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory /export/home/imiller/php-4.3.0RC2/ext/ldap/ldap.c: In function `zif_ldap_set_rebind_proc': /export/home/imiller/php-4.3.0RC2/ext/ldap/ldap.c:2062: too many arguments to function `ldap_set_rebind_proc' /export/home/imiller/php-4.3.0RC2/ext/ldap/ldap.c:2077: warning: passing arg 2 of `ldap_set_rebind_proc' from incompatible pointer type /export/home/imiller/php-4.3.0RC2/ext/ldap/ldap.c:2077: too many arguments to function `ldap_set_rebind_proc' make: *** [ext/ldap/ldap.lo] Error 1 bash-2.05# ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20773&edit=1