> /usr/local/lib//libcrypto.a(dso_dlfcn.o)(.text+0x45): In function > `dlfcn_load': > : undefined reference to `dlopen'
It looks like your libcrypto.a has references to dl*(). On lots of systems these functions are provided by a "libdl." Also, on lots of systems, these functions are only available from shared objects (i.e. ".so" libraries and not ".a" libraries.) It's obvious that you're doing your own build of OpenSSL. I would try and rework that into a shared library build. Failing that, you can try and figure out a way to put a "-ldl" on that line to get libdl in there.
