[fetchmail]Re: SSL authentication problems with Gmail
Sebastian Tennant
sebyte@smolny.plus.com
Tue, 03 Jan 2006 16:32:49 +0000
--=-=-=
Sebastian Tennant <sebyte@smolny.plus.com> wrote:
>> Actually, the system SSL should have been fine after installation of the
>> -dev package. I know not a single system with OpenSSL in the base system
>> where --with-ssl=/usr hasn't worked for me.
>
> I'm not sure what you mean by the -dev package. Having read the
> INSTALL file, I checked the contents of the Debian openssl package
> with the following command ...
>
> $ dpkg -L openssl | egrep include
>
> ... and got nothing. I then searched the Debian apt repositories for
> suitable packages. Here is a list of all the Debian packages with
> `openssl' in the name:
>
> aolserver-nsopenssl - AOLserver module: module for SSL mode.
> aolserver4-nsopenssl - AOLserver 4 module: module for SSL mode.
> libopenssl-ruby - OpenSSL interface for Ruby
> libopenssl-ruby1.6 - OpenSSL interface for Ruby
> pyopenssl-doc - Documentation for pyOpenSSL
> python-pyopenssl - Python wrapper around the OpenSSL library (dummy package)
> python2.2-pyopenssl - Python wrapper around the OpenSSL library
> python2.3-pyopenssl - Python wrapper around the OpenSSL library
> python2.4-pyopenssl - Python wrapper around the OpenSSL library
> libcurl3-openssl-dev - Development files and documentation for libcurl
> libopensc-openssl - OpenSSL engine using PKCS#15 Smart Cards
> libopenssl-ruby1.9 - OpenSSL interface for Ruby 1.9
> libxmlsec1-openssl - Openssl engine for the XML security library
> libengine-pkcs11-openssl - OpenSSL engine for PKCS#11 modules
> libopenssl-ruby1.8 - OpenSSL interface for Ruby 1.8
> openssl - Secure Socket Layer (SSL) binary and related cryptographic tools
>
> None of these seemed suitable so then I decided to download the source
> of the openssl package itself and use that.
>
>>> configure:12595: gcc -o conftest -g -O2 conftest.c -L/home/sebyte/workspace/openssl-0.9.8a/lib -lcrypt -lresolv -lssl -lcrypto >&5
>>> /usr/bin/ld: cannot find -lssl
>>
>> Try running "ldconfig -n /home/sebyte/workspace/openssl-0.9.8a/lib" and
>> re-run ./configure.
>
> No joy I'm afraid. I had to run ldconfig with root privs so I ran
> configure with root privs, but it still borked at the same point. I
> even did a make clean and tried again but no luck.
>
> Here's the relevant config.log section again:
>
> $ cat config.log | egrep ssl
> $ ./configure --with-ssl=/home/sebyte/workspace/openssl-0.9.8a
> configure:12595: gcc -o conftest -g -O2 conftest.c -L/home/sebyte/workspace/openssl-0.9.8a/lib -lcrypt -lresolv -lssl -lcrypto >&5
> /usr/bin/ld: cannot find -lssl
> configure:12595: gcc -o conftest -g -O2 conftest.c -L/home/sebyte/workspace/openssl-0.9.8a/lib -lcrypt -lresolv -lssl -lcrypto -ldl >&5
> /usr/bin/ld: cannot find -lssl
> CEFLAGS=' -I/home/sebyte/workspace/openssl-0.9.8a/include -I/usr/kerberos/include'
> LDEFLAGS=' -L/home/sebyte/workspace/openssl-0.9.8a/lib'
> LIBS=' -L/home/sebyte/workspace/openssl-0.9.8a/lib -lcrypt -lresolv -lssl -lcrypto -ldl'
I've done a little more poking around and it is very strange...
openssl-0.9.8a/include/openssl/ contains symlinks to header files in
openssl-0.9.8a/ssl. There are `.c' files in there too but ssl.h is
definitely there... *scratch*
I've attached a recursive dir listing of these two directories in case
you can spot something I can't.
sdt
--=-=-=
Content-Disposition: attachment; filename=openssl_dir_listing.txt
Content-Description: include and ssl recursive dir listings
include:
total 12
drwxr-xr-x 3 sebyte adm 4096 Oct 11 11:21 .
drwxrwxr-x 23 sebyte adm 4096 Jan 3 16:20 ..
drwxr-xr-x 2 sebyte adm 4096 Oct 11 11:21 openssl
include/openssl:
total 8
drwxr-xr-x 2 sebyte adm 4096 Oct 11 11:21 .
drwxr-xr-x 3 sebyte adm 4096 Oct 11 11:21 ..
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 aes.h -> ../../crypto/aes/aes.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 asn1.h -> ../../crypto/asn1/asn1.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 asn1_mac.h -> ../../crypto/asn1/asn1_mac.h
lrwxrwxrwx 1 sebyte adm 25 Jan 2 22:46 asn1t.h -> ../../crypto/asn1/asn1t.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 bio.h -> ../../crypto/bio/bio.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 blowfish.h -> ../../crypto/bf/blowfish.h
lrwxrwxrwx 1 sebyte adm 20 Jan 2 22:46 bn.h -> ../../crypto/bn/bn.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 buffer.h -> ../../crypto/buffer/buffer.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 cast.h -> ../../crypto/cast/cast.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 comp.h -> ../../crypto/comp/comp.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 conf.h -> ../../crypto/conf/conf.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 conf_api.h -> ../../crypto/conf/conf_api.h
lrwxrwxrwx 1 sebyte adm 21 Jan 2 22:46 crypto.h -> ../../crypto/crypto.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 des.h -> ../../crypto/des/des.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 des_old.h -> ../../crypto/des/des_old.h
lrwxrwxrwx 1 sebyte adm 20 Jan 2 22:46 dh.h -> ../../crypto/dh/dh.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 dsa.h -> ../../crypto/dsa/dsa.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 dso.h -> ../../crypto/dso/dso.h
lrwxrwxrwx 1 sebyte adm 17 Jan 2 22:46 dtls1.h -> ../../ssl/dtls1.h
lrwxrwxrwx 1 sebyte adm 13 Jan 2 22:46 e_os2.h -> ../../e_os2.h
lrwxrwxrwx 1 sebyte adm 21 Jan 2 22:46 ebcdic.h -> ../../crypto/ebcdic.h
lrwxrwxrwx 1 sebyte adm 20 Jan 2 22:46 ec.h -> ../../crypto/ec/ec.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 ecdh.h -> ../../crypto/ecdh/ecdh.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 ecdsa.h -> ../../crypto/ecdsa/ecdsa.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 engine.h -> ../../crypto/engine/engine.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 err.h -> ../../crypto/err/err.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 evp.h -> ../../crypto/evp/evp.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 hmac.h -> ../../crypto/hmac/hmac.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 idea.h -> ../../crypto/idea/idea.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 krb5_asn.h -> ../../crypto/krb5/krb5_asn.h
lrwxrwxrwx 1 sebyte adm 16 Jan 2 22:46 kssl.h -> ../../ssl/kssl.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 lhash.h -> ../../crypto/lhash/lhash.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 md2.h -> ../../crypto/md2/md2.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 md4.h -> ../../crypto/md4/md4.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 md5.h -> ../../crypto/md5/md5.h
lrwxrwxrwx 1 sebyte adm 30 Jan 2 22:46 obj_mac.h -> ../../crypto/objects/obj_mac.h
lrwxrwxrwx 1 sebyte adm 30 Jan 2 22:46 objects.h -> ../../crypto/objects/objects.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 ocsp.h -> ../../crypto/ocsp/ocsp.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 opensslconf.h -> ../../crypto/opensslconf.h
lrwxrwxrwx 1 sebyte adm 23 Jan 2 22:46 opensslv.h -> ../../crypto/opensslv.h
lrwxrwxrwx 1 sebyte adm 23 Jan 2 22:46 ossl_typ.h -> ../../crypto/ossl_typ.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 pem.h -> ../../crypto/pem/pem.h
lrwxrwxrwx 1 sebyte adm 23 Jan 2 22:46 pem2.h -> ../../crypto/pem/pem2.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 pkcs12.h -> ../../crypto/pkcs12/pkcs12.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 pkcs7.h -> ../../crypto/pkcs7/pkcs7.h
lrwxrwxrwx 1 sebyte adm 31 Jan 2 22:46 pq_compat.h -> ../../crypto/pqueue/pq_compat.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 pqueue.h -> ../../crypto/pqueue/pqueue.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 rand.h -> ../../crypto/rand/rand.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 rc2.h -> ../../crypto/rc2/rc2.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 rc4.h -> ../../crypto/rc4/rc4.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 ripemd.h -> ../../crypto/ripemd/ripemd.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 rsa.h -> ../../crypto/rsa/rsa.h
lrwxrwxrwx 1 sebyte adm 30 Jan 2 22:46 safestack.h -> ../../crypto/stack/safestack.h
lrwxrwxrwx 1 sebyte adm 22 Jan 2 22:46 sha.h -> ../../crypto/sha/sha.h
lrwxrwxrwx 1 sebyte adm 15 Jan 2 22:46 ssl.h -> ../../ssl/ssl.h
lrwxrwxrwx 1 sebyte adm 16 Jan 2 22:46 ssl2.h -> ../../ssl/ssl2.h
lrwxrwxrwx 1 sebyte adm 17 Jan 2 22:46 ssl23.h -> ../../ssl/ssl23.h
lrwxrwxrwx 1 sebyte adm 16 Jan 2 22:46 ssl3.h -> ../../ssl/ssl3.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 stack.h -> ../../crypto/stack/stack.h
lrwxrwxrwx 1 sebyte adm 26 Jan 2 22:46 store.h -> ../../crypto/store/store.h
lrwxrwxrwx 1 sebyte adm 23 Jan 2 22:46 symhacks.h -> ../../crypto/symhacks.h
lrwxrwxrwx 1 sebyte adm 16 Jan 2 22:46 tls1.h -> ../../ssl/tls1.h
lrwxrwxrwx 1 sebyte adm 21 Jan 2 22:46 tmdiff.h -> ../../crypto/tmdiff.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 txt_db.h -> ../../crypto/txt_db/txt_db.h
lrwxrwxrwx 1 sebyte adm 20 Jan 2 22:46 ui.h -> ../../crypto/ui/ui.h
lrwxrwxrwx 1 sebyte adm 27 Jan 2 22:46 ui_compat.h -> ../../crypto/ui/ui_compat.h
lrwxrwxrwx 1 sebyte adm 24 Jan 2 22:46 x509.h -> ../../crypto/x509/x509.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 x509_vfy.h -> ../../crypto/x509/x509_vfy.h
lrwxrwxrwx 1 sebyte adm 28 Jan 2 22:46 x509v3.h -> ../../crypto/x509v3/x509v3.h
ssl:
total 1372
drwxr-xr-x 2 sebyte adm 4096 Oct 11 11:20 .
drwxrwxr-x 23 sebyte adm 4096 Jan 3 16:20 ..
-rw-rw-r-- 1 sebyte adm 58430 Jul 16 12:13 Makefile
-rw-rw-r-- 1 sebyte adm 14090 Apr 26 2005 bio_ssl.c
-rw-rw-r-- 1 sebyte adm 36134 Aug 29 00:20 d1_both.c
-rw-rw-r-- 1 sebyte adm 29783 Oct 1 00:38 d1_clnt.c
-rw-rw-r-- 1 sebyte adm 9851 Apr 26 2005 d1_enc.c
-rw-rw-r-- 1 sebyte adm 6028 Aug 8 20:26 d1_lib.c
-rw-rw-r-- 1 sebyte adm 3120 Aug 6 00:52 d1_meth.c
-rw-rw-r-- 1 sebyte adm 48486 Jun 6 2005 d1_pkt.c
-rw-rw-r-- 1 sebyte adm 29602 Oct 1 00:38 d1_srvr.c
-rw-rw-r-- 1 sebyte adm 6183 May 30 2005 dtls1.h
-rw-rw-r-- 1 sebyte adm 3034 May 31 2005 install.com
-rw-rw-r-- 1 sebyte adm 68921 Jun 27 2005 kssl.c
-rw-rw-r-- 1 sebyte adm 5927 Apr 10 2005 kssl.h
-rw-rw-r-- 1 sebyte adm 3433 Oct 10 2001 kssl_lcl.h
-rw-rw-r-- 1 sebyte adm 14558 Aug 6 00:52 s23_clnt.c
-rw-rw-r-- 1 sebyte adm 5634 Aug 6 00:52 s23_lib.c
-rw-rw-r-- 1 sebyte adm 3646 Aug 6 00:52 s23_meth.c
-rw-rw-r-- 1 sebyte adm 4187 Jul 10 2002 s23_pkt.c
-rw-rw-r-- 1 sebyte adm 16420 Oct 11 11:16 s23_srvr.c
-rw-rw-r-- 1 sebyte adm 30558 Aug 6 00:52 s2_clnt.c
-rw-rw-r-- 1 sebyte adm 6117 Dec 27 2003 s2_enc.c
-rw-rw-r-- 1 sebyte adm 11164 Aug 27 13:05 s2_lib.c
-rw-rw-r-- 1 sebyte adm 3635 Aug 6 00:52 s2_meth.c
-rw-rw-r-- 1 sebyte adm 20110 Dec 27 2003 s2_pkt.c
-rw-rw-r-- 1 sebyte adm 32184 Aug 6 00:52 s2_srvr.c
-rw-rw-r-- 1 sebyte adm 17540 Apr 26 2005 s3_both.c
-rw-rw-r-- 1 sebyte adm 60883 Oct 1 00:38 s3_clnt.c
-rw-rw-r-- 1 sebyte adm 20901 Oct 1 01:41 s3_enc.c
-rw-rw-r-- 1 sebyte adm 49069 Sep 21 01:57 s3_lib.c
-rw-rw-r-- 1 sebyte adm 3526 Aug 6 00:52 s3_meth.c
-rw-rw-r-- 1 sebyte adm 36587 Oct 1 00:38 s3_pkt.c
-rw-rw-r-- 1 sebyte adm 66003 Oct 1 00:38 s3_srvr.c
-rw-rw-r-- 1 sebyte adm 22129 May 31 2005 ssl-lib.com
-rw-rw-r-- 1 sebyte adm 79572 Oct 11 11:16 ssl.h
-rw-rw-r-- 1 sebyte adm 10716 Nov 10 2001 ssl2.h
-rw-rw-r-- 1 sebyte adm 3744 Dec 21 1998 ssl23.h
-rw-rw-r-- 1 sebyte adm 22012 Oct 1 00:38 ssl3.h
-rw-rw-r-- 1 sebyte adm 4898 Aug 22 00:06 ssl_algs.c
-rw-rw-r-- 1 sebyte adm 12610 Apr 20 2005 ssl_asn1.c
-rw-rw-r-- 1 sebyte adm 21108 Aug 8 20:39 ssl_cert.c
-rw-rw-r-- 1 sebyte adm 31864 Oct 1 00:38 ssl_ciph.c
-rw-rw-r-- 1 sebyte adm 31451 Jun 10 2005 ssl_err.c
-rw-rw-r-- 1 sebyte adm 3385 Feb 20 2001 ssl_err2.c
-rw-rw-r-- 1 sebyte adm 63177 Oct 1 00:38 ssl_lib.c
-rw-rw-r-- 1 sebyte adm 33448 Aug 22 00:06 ssl_locl.h
-rw-rw-r-- 1 sebyte adm 18001 Apr 8 2005 ssl_rsa.c
-rw-rw-r-- 1 sebyte adm 21795 Apr 29 2005 ssl_sess.c
-rw-rw-r-- 1 sebyte adm 21597 Jan 12 2002 ssl_stat.c
-rw-rw-r-- 1 sebyte adm 12681 Nov 13 2002 ssl_task.c
-rw-rw-r-- 1 sebyte adm 6337 Oct 1 00:38 ssl_txt.c
-rw-rw-r-- 1 sebyte adm 56548 Oct 2 13:26 ssltest.c
-rw-rw-r-- 1 sebyte adm 3649 Aug 6 00:52 t1_clnt.c
-rw-rw-r-- 1 sebyte adm 25210 Oct 1 00:38 t1_enc.c
-rw-rw-r-- 1 sebyte adm 4336 Aug 6 00:52 t1_lib.c
-rw-rw-r-- 1 sebyte adm 3524 Aug 6 00:52 t1_meth.c
-rw-rw-r-- 1 sebyte adm 3674 Aug 6 00:52 t1_srvr.c
-rw-rw-r-- 1 sebyte adm 14347 Jul 22 2003 tls1.h
--=-=-=--