On Thu, 28 Jul 2005, Tim Rosmus wrote:

|# On Thu, 28 Jul 2005, Ruiyuan Jiang wrote:
|# 
|# |# 
|# |# I tried to compile openssl 0.9.8 like this:
|# |# 
|# |# ./config no-threads -fPIC -ldl
|# |# 
|# |# I got the same message from "make test". Thanks.
|# |# 
|# 
|# Just use "./config no-threads" only.
|# 


Now if you compile some other program that uses the OpenSSL libs and
your compile fails will the following....

Undefined                       first referenced
 symbol                             in file
dlsym                               /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) 
 (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlopen                              /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) 
 (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlclose                             /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) 
 (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlerror                             /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o) 
 (symbol belongs to implicit dependency /usr/lib/libdl.so.1)


You will need to add Dynamic Linker Libraries (-ldl) to the linking
section of the program your trying to compile.

With openssh-4.1p1 this can be done by configuring with the
"--with-ldflags=-ldl" option.  Other programs may require editing
the Makefile to add the '-ldl' library flag to the "LIBS" or other
linking definition.
-- 
                Tim Rosmus <[EMAIL PROTECTED]>
                   Postmaster / USENET / DNS
                      Northwest Nexus Inc.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to