Silvex Security Team wrote:
> 
> I am trying to configure OpenSSH 3.4P1 using OpenSSL 0.9.6d without success
> 
> # LIBS="-ldl" CPPFLAGS="-I/usr/include/openssh" ./configure --with-tcp-wrappers 
>--with-ssl-dir=/usr/share/ssl/lib
> 
> <bunch_of stuff>
> 
> checking for getpagesize... yes
> checking whether snprintf correctly terminates long strings... yes
> checking whether getpgrp requires zero arguments... yes
> checking whether OpenSSL's headers match the library... no
> configure: error: Your OpenSSL headers do not match your library
> 
> portion of config.log
> 
> configure:7780: result: yes
> configure:8149: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized 
>-I/usr/include/openssh  conftest.c -lutil -lz -lnsl -ldl -lcrypto >&5
> configure:8152: $? = 0
> configure:8155: test -s conftest
> configure:8158: $? = 0
> configure:8233: checking whether OpenSSL's headers match the library
> configure:8250: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized 
>-I/usr/include/openssh  conftest.c -lutil -lz -lnsl -ldl -lcrypto >&5
> configure: In function `main':
> configure:8244: warning: implicit declaration of function `SSLeay'
> configure:8253: $? = 0
> configure:8255: ./conftest
> configure:8258: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> #line 8240 "configure"
> #include "confdefs.h"
> 
> #include <string.h>
> #include <openssl/opensslv.h>
> int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
> 
> configure:8270: result: no
> configure:8272: error: Your OpenSSL headers do not match your library
> 
> I also recompiled and installed OpenSSL:
> 
> # ls -l /usr/share/ssl/lib
> total 8388
> -rw-r--r--    1 root     root      1408930 Jun 26 15:33 libcrypto.a
> lrwxrwxrwx    1 root     root           14 Jun 26 15:33 libcrypto.so -> 
>libcrypto.so.0
> lrwxrwxrwx    1 root     root           18 Jun 26 15:33 libcrypto.so.0 -> 
>libcrypto.so.0.9.6
> -rw-r--r--    1 root     root       896785 Jun 26 15:33 libcrypto.so.0.9.6
> -rw-r--r--    1 root     root       265238 Jun 26 15:33 libssl.a
> lrwxrwxrwx    1 root     root           11 Jun 26 15:33 libssl.so -> libssl.so.0
> lrwxrwxrwx    1 root     root           15 Jun 26 15:33 libssl.so.0 -> 
>libssl.so.0.9.6
> -rw-r--r--    1 root     root       212841 Jun 26 15:33 libssl.so.0.9.6
> #
> 
> Any clues...

Well, it gave you the big clue several times.  You don't seem to have
picked up on it, so I'll spell it out for you.

It thinks your OpenSSL headers don't match your installed library.

The most likely cause of its confusion is that you have multiple
conflicting versions of OpenSSL on the system.  Start by making darn
sure there aren't any stray copies of OpenSSL sitting around.  The
typical Linux system will have that stuff under /usr.  The usual
location when you build from source is under /usr/local.

Note that the argument to the --with-ssl-dir= switch is the OpenSSL
install directory, not the subdirectory that has the libraries.  In
your case, it's probably /usr/share/ssl.

If none of the above helps, there might be a bug in configure for your
platform.  If you ask about this again, you might include the OS name
and version.

Paul Allen
-- 
Boeing Phantom Works                   \ Paul L. Allen, (425) 865-3297
Math & Computing Technology              \ [EMAIL PROTECTED]
POB 3707 M/S 7L-40, Seattle, WA 98124-2207 \ Prototype Systems Group
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to