php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11665 failure to configure --with-imap-ssl
Submitted: 2001-06-25 10:31 UTC Modified: 2001-07-21 00:53 UTC
From: green at umdnj dot edu Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.6 & 4.0.7-dev OS: RedHat 6.2 and 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: green at umdnj dot edu
New email:
PHP Version: OS:

 

 [2001-06-25 10:31 UTC] green at umdnj dot edu
my config.nice is:

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs=/usr/local/apache/bin/apxs' \
'--with-ttf=/usr/local' \
'--with-openssl=/usr/local/ssl' \
'--with-imap=/products/imap/imap-2001' \
'--with-imap-ssl=/products/imap/imap-2001' \
'--with-ldap=/usr/local' \
'--with-mysql=/usr/local/mysql' \
'--with-db2=/usr/local/BerkeleyDB' \
'--with-gettext' \
'--with-mcal=/usr/local/mcal' \
'--enable-calendar' \
'--with-zlib' \
"$@"

This will fail at the --with-imap-ssl check, with the note that the c-client.a library does not support ssl.  I get the same error with the current release (4.0.6) and with 4.0.7-cvs.  It did *not* happen with an earlier 4.0.6-dev version from a few weeks back (my build date: 4/27/2001), which was built with the same c-client.a file that is now being rejected.

What's more, the current release and cvs builds (4.0.6 and 4.0.7-cvs), without ssl, will perform a correct logon to an imap server, but then drop the connection without logging out, causing error messages in mail.log and mail clients to fail.  (I get the infamous "Command stream end of file,..." message in mail.log).

I'm currently using the earlier build with (from test.php):

     Horde: 1.3.5-cvs 
     IMP: 2.3.7-cvs 
     PHP Version: 4.0.6-dev (build date 4/27/01)
     UWash c-client 2000c and/or 2001
     OpenSSL 0.9.6 and/or 6a
     glibc

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-26 06:47 UTC] sniper@php.net
There was minor bug in PHP 4.0.6 but it is possible
to workaround using --with-openssl as you are doing.

But you are using wrong value for --with-imap-ssl
as it should be the same as for --with-openssl

--Jani

 [2001-06-26 09:22 UTC] green at umdnj dot edu
No, configure fails no matter what explicit or implicit value used for --with-imap-ssl.

Since that option test the c-client.a library, I don't see how pointing it at the openssl directory could help.

Running configure with just the option (no =DIRectory) used to work as well, but doesn't now (for me).
 [2001-07-11 17:33 UTC] green at umdnj dot edu
Well, configure works okay on HPUX, but still fails on RedHat 6.2 and 7.1 (as of 7/11/01).

It doesn't matter if I use:
--with-imap-ssl,
--with-imap-ssl=/path/to/c-client, or
--with-imap-ssl=/path/to/openssl

My guess is that there's something about the default build environment on RH that's getting in my way.

Has anyone built a current PHP (ie 4.0.7-dev) --with-imap-ssl on a RedHat install?

 [2001-07-12 10:57 UTC] sniper@php.net
If you use the suggested configure options,
it will work. Also, you might need --with-kerberos.
Check the config.log for more info.

--with-openssl=/path/to/openssl
--with-imap-ssl=/path/to/openssl
--with-kerberos

--Jani

 [2001-07-21 00:53 UTC] green at umdnj dot edu
Okay - I think I know what was going on.  Perhaps the documentation (INSTALL or README?) should have something about this for newbies like me.

When building c-client with ssl support, you only need the archive libraries from openssl, and you only get an archive library of c-client (c-client.a).

When php is configured as a static build, you only need the archive libraries as well (e.g., libssl.a).  However, if you build php as a DSO object, then you also need the shared libraries (libssl.so, etc.).  Build openssl with both archive and shared libraries, and configure will pass --with-imap-ssl.

This was not the case with earlier configure/compile cycles, so I guess I skunked myself.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 05:05:45 2022 UTC