php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14223 "configure: error: This c-client library does not support SSL." error msg
Submitted: 2001-11-26 03:31 UTC Modified: 2001-12-17 07:15 UTC
From: erwann at abalea dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: Linux 2.0.36
Private report: No CVE-ID: None
 [2001-11-26 03:31 UTC] erwann at abalea dot com
I'm still getting this message, and I think I've found why.

You correctly try to detect the crypto lib before the ssl lib of OpenSSL, but when trying to compile a test program to test if the IMAP library was compiled with SSL support, you link with the crypto lib before the ssl lib. These libraries should be reversed (the ssl lib needs symbols that are defined in the crypto lib).

I tried to correct this, and still got the same error. I also found that you must link with the c-client library before the ssl and crypto libs (the config.log tries to run this:

gcc -o conftest -g -O2  -DLINUX=20 -DDEV_RANDOM=/dev/random -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT  -Wl,
-rpath,/usr/X11/lib -L/usr/X11/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lpam -lgmp -lgd -lX11 -lXpm -ljpeg -lgdbm -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lc-client 1>&5
and fails, for the same reason (the c-client lib needs some symbols that are defined in the ssl lib). I added -lssl and -lcrypto after the -lc-client, and it works.

I don't know if this has been fixed in the CVS version.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-26 07:19 UTC] sniper@php.net
Why don't you test it? (it should be fixed)
Try a snapshot: http://snaps.php.net/ or wait for PHP 4.1.0 to be released.
(Today/tomorrow)

--Jani

 [2001-12-17 07:15 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC