openssh-4.1p1 on OSX 10.4.1 w/ openssl-0.9.8 NOT FINDING -lcrypto

Darren Tucker dtucker at
Mon Jul 11 11:09:54 EST 2005

OpenMacNews wrote:
> hi all,
> building on OSX 10.4.1, with a prereq of:
> % which openssl
> 	/usr/local/ssl/bin/openssl
> % openssl version
> 	OpenSSL 0.9.8 05 Jul 2005
> building either openssh-4.0p1 or openssh-4.1p1 on OSX 10.4.1, w/:
> 	./configure --with-ssl-dir=/usr/local/ssl
> configure fails w/:
> 	...
> 	checking whether getpgrp requires zero arguments... yes
> 	checking OpenSSL header version... not found
> 	configure: error: OpenSSL version header not found.
> popping up a dialog of:
> 	Link (dyld) error:
> 	Library not loaded: libcrypto.0.9.8.dylib
> 	  Referenced from: /usr/ports/openssh-4.1p1/./conftest
> 	  Reason: image not found

I don't know OS X but on other platforms that kind of error would 
indicate that /usr/local/ssl/lib was not in the run-time link path (ie 
LD_LIBRARY_PATH or LIBPATH depending on the platform).

If your runtime linker supports "-R" then you can use it too 
("./configure --with-rpath").

> so, i suspect it may be an issue in "contrib/", not picking up *MY* 
> ssl path, but dunno as yet ....

No, isn't part of the build process, it's merely a 
supplemental tool to show what OpenSSL versions you have installed. 
(Reports of "your OpenSSL headers do not match your library" errors used 
to be common, and it's to help diagnose those.)

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list