OK. I've made some progress. It looks like just doing --with-openssl doesn't work. You have to specify both the includes and the libs as well. So, this is what I'm using now:


./configure --with-openssl --with-openssl-includes=/usr/local/ssl/include --with-openssl-libs=/usr/local/ssl/lib --with-vio --prefix=/usr/local/mysql4016

I do get "#define HAVE_OPENSSL 1" in my config.h and config.log. However, it doesn't build. Here's what I get:

make[2]: Entering directory `/usr/local/src/mysql-4.0.16/strings'
source='strxmov.c' object='strxmov.o' libtool=no \
depfile='.deps/strxmov.Po' tmpdepfile='.deps/strxmov.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -O3 -DDBUG_OFF -c `test -f strxmov.c || echo './'`strxmov.c
In file included from /usr/include/linux/config.h:4,
from /usr/include/asm/atomic.h:4,
from ../include/my_global.h:273,
from strxmov.c:33:
/usr/include/linux/autoconf.h:64: warning: `CONFIG_SMP' redefined
../include/my_global.h:271: warning: this is the location of the previous definition
In file included from strxmov.c:33:
../include/my_global.h:1109: openssl/opensslv.h: No such file or directory
make[2]: *** [strxmov.o] Error 1
make[2]: Leaving directory `/usr/local/src/mysql-4.0.16/strings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-4.0.16'
make: *** [all] Error 2


It's fairly clear what's happening here. The openssl include directory isn't being added into the list of -I's. I fixed it locally by adding ${openssl_includes} to the INCLUDES line in the makefile. However, I had to do the same thing in the dbug, mysys, extra, regex, isam, merge, innobase/*... I gave up after a few of these.

Any ideas where to go from here?

This is for mysql 4.0.16, openssl 0.9.7c and gcc 2.95.4 on a Debian linux box (2.2.20).

Thanks.

-Greg G




-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to