> Hi All,
>
> I get the following error when I compile the sample program in demos/bio
>
> openssl-engine-0.9.6j> cc -I../../include -L../.. sconnect.c
> -lssl -lcrypto
>
> ../../libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
> dso_dlfcn.o(.text+0x77): undefined reference to `dlopen'
> dso_dlfcn.o(.text+0xe3): undefined reference to `dlclose'
> ../../libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
> dso_dlfcn.o(.text+0x1b6): undefined reference to `dlsym'
> ../../libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
> dso_dlfcn.o(.text+0x2a6): undefined reference to `dlsym'
> ../../libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
> dso_dlfcn.o(.text+0x3a5): undefined reference to `dlclose'
> collect2: ld returned 1 exit status
>
> I didn't encounter any errors while invoking make , make test and make
> install. Can somebody throw light on the above error?

        The first thing you should do when you get an 'undefined reference' error
is search your libraries to find out which library that is defined in, and
then link to that library. Probably you need to add '-ldl'. But since you
didn't specify your platform, there's really no way we could know. Did you
try the man pages for 'dlopen', 'dlclose', and 'dlsym'?

        DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to