php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20773 will not compile with iplanet ldap 5.0.sp1
Submitted: 2002-12-02 16:49 UTC Modified: 2002-12-09 14:08 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: imiller at bsd dot uchicago dot edu Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.3.0RC2 OS: Solaris 8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: imiller at bsd dot uchicago dot edu
New email:
PHP Version: OS:

 

 [2002-12-02 16:49 UTC] imiller at bsd dot uchicago dot edu
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# 




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-03 02:39 UTC] sniper@php.net
updated summary
 [2002-12-03 03:49 UTC] sniper@php.net
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 09:27 UTC] peder at park dot se
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 11:25 UTC] sniper@php.net
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.

 [2002-12-04 10:53 UTC] peder at park dot se
Well, I compiled the 200212041430 version and haven't been able to reproduce the error so I guess it's fixed.
BTW, I wasn't able to debug httpd anyways; I followed the info about generating a non core backtrace and httpd seemed to start but I couldn't contact it.

Thanx a lot,

 Peder
 [2002-12-09 06:42 UTC] peder at park dot se
Err.. I don't know if my posting here will matter, since it seems this bug is closed but the aforementioned segfaults seems to be present in php4-200212041430 after all. I'm not sure what's causing it, I'm only maintaining the server and others write the php code. I'll see if I can do a backtrace despite previous problems in that area.

/Peder
 [2002-12-09 14:08 UTC] imiller at bsd dot uchicago dot edu
the error is still their I just 
compiled with openldap client 
but this is not  a fix
-Ian
 [2003-02-03 09:40 UTC] cauduro at yahoo dot com
Won't compile with php.4.3.0 final release! Same error!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC