LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2005, 11:24 AM   #1
ilredil
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Rep: Reputation: Disabled
OpenSSH configure problems (zlib, openssl)


I'm compiling OpenSSH from source. It told me I should upgrade zlib to 1.2.3 for security reasons, so I did (compiled from source). When compiling zlib, I used ./configure --prefix=/usr It configured, built and installed just fine. But when I go back to compiling OpenSSH, it still doesn't see the new version. After looking in the config.log file, I found out that it sees 1.2.1. I did a grep on /usr/include/* for 1.2.1 and found nothing relivant. I did the same thing on /usr/local/include/* and found zlib.h (the 1.2.1 version). I just gor rid of /usr/local/include/zlib.h and it passed the zlib test without any problems.

So I solved that problem on my own (while writing this); but I was wondering if there's a sane way to make the default path /usr/include before it looks in /use/local/include

The other problem is that my openssl headers don't match the openssl library (header is correct at 0.9.8a, library is detected as OpenSSL 0.9.7b). I'll look into this one then post back my solution. Everyone who uses SSH *should* have the lastest version (being that there's known security holes in all previous versions), which means others should also run into these problems. So hopefully this thread will help a bunch of people.

Last edited by ilredil; 12-05-2005 at 11:28 AM.
 
Old 12-05-2005, 01:29 PM   #2
Pocketace
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware 10.2
Posts: 9

Rep: Reputation: 0
Maybe try ldconfig to update the to recognize the new version.
 
Old 12-05-2005, 11:39 PM   #3
ilredil
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Original Poster
Rep: Reputation: Disabled
I ran ldconfig after installing zlib. I guess it couldn't hurt now that I re-compiled / installed openssl again. I locked myself out yesterday, so I didn't get very far yet.
 
Old 12-05-2005, 11:45 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Usually you can use ./configure options to tell it where to look for different stuff. You can see detailed options with: ./configure --help
 
Old 12-06-2005, 02:59 PM   #5
ilredil
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Original Poster
Rep: Reputation: Disabled
Here's the configure statement and a clip of the output:

Code:
./configure --prefix=/usr --sysconfdir=/etc --with-ssl-dir=/usr/openssl
checking OpenSSL header version... 90801f (OpenSSL 0.9.8a 11 Oct 2005)
checking OpenSSL library version... 90702f (OpenSSL 0.9.7b 10 Apr 2003)
checking whether OpenSSL's headers match the library... no
configure: error: Your OpenSSL headers do not match your library.
Check config.log for details.
Also see contrib/findssl.sh for help identifying header/library mismatches.
I removed /usr/ssl/ (which looked like another openssl installation (probably the original which I'm trying to upgrade), and ran the same ./configure statement... same error. I greped for OPENSSL_VERSION_NUMBER in /usr/local/include and /usr/include based on what I saw in config.log but came up pretty much empty handed. There's wasn't any code defining a value there. The search continues...
 
Old 12-06-2005, 05:48 PM   #6
ilredil
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Original Poster
Rep: Reputation: Disabled
grep just found this:
/usr/include/openssl/opensslv.h:#define OPENSSL_VERSION_NUMBER 0x0090801fL

so I decided to run this to search recursivly for OPENSSL_VERSION_NUMBER in /usr/
Code:
sudo find /usr -print | sudo xargs grep OPENSSL_VERSION_NUMBER
but that didn't really help much either :-/

same (lack of) results in /lib I'm just going to abuse my hard drive and search the whole drive...

Last edited by ilredil; 12-07-2005 at 05:46 PM.
 
Old 12-08-2005, 02:17 PM   #7
ilredil
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Original Poster
Rep: Reputation: Disabled
Problem solved

Maybe someday I'll learn to read the message that tells me how to troubleshoot it.

from my very own post:
"Also see contrib/findssl.sh for help identifying header/library mismatches."

sh ./contrib/findssl.sh tells you what libs and headers are installed. Mine were in /usr/lib (as I would expect). Just look to see what's there and where the symlinks point...
ls -l /usr/lib/libcrypto.so*

And finally, I believe that openssl as to be configured with the "shared" or you won't have the library. I could be wrong, but I can say this... here's my config statments for both openssl and openssh (and it compiled/installed on my Slackware 10.2 box).

openssl
./config threads shared zlib --prefix=/usr --openssldir=/usr/openssl

openssh
./configure --prefix=/usr --sysconfdir=/etc --with-openssl-dir=/usr/openssl

Last edited by ilredil; 12-08-2005 at 03:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
zlib not found when running ./configure quordandis Linux - Software 9 11-28-2010 07:51 AM
openssh-3.6p1 configure zlib error fredward Linux - Newbie 5 12-22-2008 05:44 AM
Is openssl used by openssh? servnov Linux - General 5 10-30-2005 12:31 PM
FC2 compiling openssl/openssh TSJoshB Fedora 4 07-04-2005 02:25 PM
Slackware8.0 .SlackBuild file for OpenSSH & OpenSSL init6 Slackware 1 09-20-2003 10:01 AM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration