Cary Lewis
2003-09-16 19:23:16 UTC
I am having trouble compiling the latest openssh release.
The process fails during the ./configure script, specifically when
testing the openssl header version.
Configure creates a small c program and attempts to compile / execute
it.
The cc line is:
cc -o conftest -g -belf -I/usr/local/ssl/include -I/usr/local/include
-L/usr/lo
cal/lib conftest.c -lcrypto -lsocket -lprot -lx -ltinfo -lm
The program conftest compiles cleanly, but when run:
# ./conftest
dynamic linker : ./conftest : error opening libcrypto.so.0.9.7
Killed
#
I have the required libcrypto.so.0.9.7 library in /usr/local/lib.
What is puzzling, is that if I use the following compile line:
cc -o conftest -g -belf -I/usr/local/ssl/include -I/usr/local/include
-L/usr/lo
cal/lib conftest.c
i.e. without the -l options, the program compiles and executes
perfectly.
Can someone explain this?
Furthermore, how can I get configure to omit the the -l options?
The process fails during the ./configure script, specifically when
testing the openssl header version.
Configure creates a small c program and attempts to compile / execute
it.
The cc line is:
cc -o conftest -g -belf -I/usr/local/ssl/include -I/usr/local/include
-L/usr/lo
cal/lib conftest.c -lcrypto -lsocket -lprot -lx -ltinfo -lm
The program conftest compiles cleanly, but when run:
# ./conftest
dynamic linker : ./conftest : error opening libcrypto.so.0.9.7
Killed
#
I have the required libcrypto.so.0.9.7 library in /usr/local/lib.
What is puzzling, is that if I use the following compile line:
cc -o conftest -g -belf -I/usr/local/ssl/include -I/usr/local/include
-L/usr/lo
cal/lib conftest.c
i.e. without the -l options, the program compiles and executes
perfectly.
Can someone explain this?
Furthermore, how can I get configure to omit the the -l options?