Bug #14223: "configure: error: This c-client library does not support SSL." error msg
| From: | erwann at abalea dot com | Date: | Mon, 26 Nov 2001 08:31:37 +0000 |
| Subject: | Bug #14223: "configure: error: This c-client library does not support SSL." error msg | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71627@lists.php.net to get a copy of this message | ||
From: erwann@abalea.com
Operating system: Linux 2.0.36
PHP version: 4.0.6
PHP Bug Type: *Compile Issues
Bug description: "configure: error: This c-client library does not support SSL." error
msg
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.
--
Edit bug report at: http://bugs.php.net/?id=14223&edit=1