OpenMacNews
2005-Jul-10 18:58 UTC
openssh-4.1p1 on OSX 10.4.1 w/ openssl-0.9.8 NOT FINDING -lcrypto
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
Darren Tucker
2005-Jul-11 01:09 UTC
openssh-4.1p1 on OSX 10.4.1 w/ openssl-0.9.8 NOT FINDING -lcrypto
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 foundI 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/findssl.sh", not picking up *MY* > ssl path, but dunno as yet ....No, findssl.sh 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 zip.com.au) 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.