Description:
I am attempting to build 5.0.10 with SSL support, using the libraries from OpenSSL 0.9.8. Configuration script goes off without a hitch, but build dies relatively early on with the following error messages at the end:
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o test-ssl test-ssl.o ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a -L/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib -lssl -lcrypto -lpthread -lcrypt -lnsl -lm -lpthread
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x37): In function `dlfcn_load':
: undefined reference to `dlopen'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x98): In function `dlfcn_load':
: undefined reference to `dlclose'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0xc0): In function `dlfcn_load':
: undefined reference to `dlerror'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x141): In function `dlfcn_bind_var':
: undefined reference to `dlsym'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x16c): In function `dlfcn_bind_var':
: undefined reference to `dlerror'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x229): In function `dlfcn_bind_func':
: undefined reference to `dlsym'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x254): In function `dlfcn_bind_func':
: undefined reference to `dlerror'
/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib/libcrypto.a(dso_dlfcn.o)(.text+0x50a): In function `dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [test-ssl] Error 1
make[2]: Leaving directory `/home/jweicher/sbir/builds/MySQL/mysql_open/vio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jweicher/sbir/builds/MySQL/mysql_open'
make: *** [all] Error 2
I am having trouble determining if this is a MySQL bug, or an error in the OpenSSL libraries. Unsure, as I have successfully built same version of MySQL using it's own native SSL libs, as well as libs from a couple other sources to test. Perhaps I am just not linking in a library that is needed with using OpenSSL libs, but not when using other versions of SSL libs?
I admit I'm a bit of a novice building on Linux. Any help is appreciated.
How to repeat:
> CFLAGS="-O2 -mcpu=pentiumpro" CC=gcc CXX=gcc
> CXXFLAGS="-O2 -mcpu=pentiumpro -felide-constructors -fno-exceptions -fno-rtti"
> ./configure --with-vio --with-openssl --with-openssl-includes=/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/include --with-openssl-libs=/home/jweicher/sbir/builds/OpenSSL/openssl-0.9.8/lib --enable-assembler --enable-thread-safe-client --disable-libtool-lock --with-extra-charsets=complex --enable-local-infile
NOTE: Path to includes and libs IS correct.