You probably need to link with libdl

-ldl

-Tom

Thomas Floodeen, Jr.
Mentor Graphics BSD
720.494.1133


-----Original Message-----
From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] 
On Behalf Of Gyanendra Kumar
Sent: Sunday, October 09, 2011 8:05 PM
To: openssl-users@openssl.org
Subject: Link error

Hi:

I am compiling an example program and I get the following link error.
Please help:

human@human-DQ177A-ABA-A450N:~/Downloads/openssl-examples-20020110$ make gcc 
wclient.o client.o common.o  -o wclient -L/home/human/Downloads/openssl-1.0.0e  
-lssl -lcrypto
/home/human/Downloads/openssl-1.0.0e/libcrypto.a(dso_dlfcn.o): In function 
`dlfcn_globallookup':
dso_dlfcn.c:(.text+0x1c): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x32): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x3c): undefined reference to `dlclose'
/home/human/Downloads/openssl-1.0.0e/libcrypto.a(dso_dlfcn.o): In function 
`dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x70): undefined reference to `dladdr'
dso_dlfcn.c:(.text+0xc1): undefined reference to `dlerror'
/home/human/Downloads/openssl-1.0.0e/libcrypto.a(dso_dlfcn.o): In function 
`dlfcn_bind_func':
dso_dlfcn.c:(.text+0x38d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x40d): undefined reference to `dlerror'
/home/human/Downloads/openssl-1.0.0e/libcrypto.a(dso_dlfcn.o): In function 
`dlfcn_bind_var':
dso_dlfcn.c:(.text+0x48d): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x50d): undefined reference to `dlerror'
/home/human/Downloads/openssl-1.0.0e/libcrypto.a(dso_dlfcn.o): In function 
`dlfcn_unload':
dso_dlfcn.c:(.text+0x56e): undefined reference to `dlclose'
/home/human/Downloads/openssl-1.0.0e/libcrypto.a(dso_dlfcn.o): In function 
`dlfcn_load':
dso_dlfcn.c:(.text+0x615): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x67a): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x6a4): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make: *** [wclient] Error 1

Best Regards,

-G
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to