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

OpenMacNews OpenMacNews at speakeasy.net
Mon Jul 11 04:58:53 EST 2005


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

my config.log reports:

	configure:13736: gcc -o conftest -g -O2 -Wall -Wpointer-arith 
-Wno-uninitialized -I/usr/local/ssl/include  -L/usr/local/ssl/lib  conftest.c 
-lcrypto -lz  >&5
	configure:13742: $? = 0
	configure:13746: test -z
							 || test ! -s conftest.err
	configure:13749: $? = 0
	configure:13752: test -s conftest
	configure:13755: $? = 0
	configure:13840: checking OpenSSL header version
	configure:13876: gcc -o conftest -g -O2 -Wall -Wpointer-arith 
-Wno-uninitialized -I/usr/local/ssl/include  -L/usr/local/ssl/lib  conftest.c 
-lcrypto -lz  >&5
	conftest.c: In function 'main':
	conftest.c:151: warning: implicit declaration of function 'exit'
	conftest.c:151: warning: incompatible implicit declaration of built-in 
function 'exit'
	conftest.c:153: warning: format '%x' expects type 'unsigned int', but argument 
3 has type 'long int'
	configure:13879: $? = 0
	configure:13881: ./conftest
	dyld: Library not loaded: libcrypto.0.9.8.dylib
	  Referenced from: /usr/ports/openssh-4.0p1/./conftest
	  Reason: image not found
	./configure: line 1: 15872 Trace/BPT trap          ./conftest$ac_exeext
	configure:13884: $? = 133
	configure: program exited with status 133
	configure: failed program was:
	| /* confdefs.h.  */
	|

per above, it's complaining about:

	dyld: Library not loaded: libcrypto.0.9.8.dylib
	...
	Reason: image not found

which *is* in place @:

	ls -al /usr/local/ssl/lib/libcrypto.0.9.8.dylib
		-r-xr-xr-x  1 root staff 1412444 Jul 10 10:46 
/usr/local/ssl/lib/libcrypto.0.9.8.dylib


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

comments? thoughts?

cheers,

richard




More information about the openssh-unix-dev mailing list