Re: [RE-REPOST] Openssl support not activated?
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]
Re: [RE-REPOST] Openssl support not activated?
Mark Matthews wrote: Greg G wrote: I'm still having trouble figuring this out. Please help! I compiled MySQL 4.1.1 --with-openssl --with-vio and when I look at the variables with mysqladmin, has_openssl is set to NO. I've got OpenSSL 0.9.7c installed. I'm seeing this on both Solaris and Debian hosts. I'm not seeing any errors during the configure or compile phases. What could have happened to cause this, and how can I fix it? Did you create certificates and configure mysqld and the client libraries to find them (as it says to in the manual :))? http://www.mysql.com/doc/en/Secure_connections.html According to 4.4.10.2 Requirements, have_openssl must be YES prior to setting up certificates. Is this in error? -Greg G
Re: [RE-REPOST] Openssl support not activated?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg G wrote: Mark Matthews wrote: Greg G wrote: I'm still having trouble figuring this out. Please help! I compiled MySQL 4.1.1 --with-openssl --with-vio and when I look at the variables with mysqladmin, has_openssl is set to NO. I've got OpenSSL 0.9.7c installed. I'm seeing this on both Solaris and Debian hosts. I'm not seeing any errors during the configure or compile phases. What could have happened to cause this, and how can I fix it? Did you create certificates and configure mysqld and the client libraries to find them (as it says to in the manual :))? http://www.mysql.com/doc/en/Secure_connections.html According to 4.4.10.2 Requirements, have_openssl must be YES prior to setting up certificates. Is this in error? Sorry, I missed that small fact. What does the file include/my_config.h say about #define HAVE_OPENSSL (it's generated by 'configure'). If HAVE_OPENSSL is not defined, then, for some reason the configure script is not picking up that you want SSL support compiled in. To debug that, you'd need to post the output of configure and/or config.log. In config.log, you should see something like 'configure:22899: checking for OpenSSL', and towards the end of config.log, you should see a '#define HAVE_OPENSSL 1'. Regards, -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 557 2388 www.mysql.com Are you MySQL Certified? http://www.mysql.com/certification/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/2OsvtvXNTca6JD8RAmGMAJ4hNy1FpGYhiO+HavUaxY641yTnKQCfZETR GVnVqlBa/s4oySojtYwqWxw= =jfvG -END PGP SIGNATURE- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: [RE-REPOST] Openssl support not activated?
Mark Matthews wrote: According to 4.4.10.2 Requirements, have_openssl must be YES prior to setting up certificates. Is this in error? Sorry, I missed that small fact. What does the file include/my_config.h say about #define HAVE_OPENSSL (it's generated by 'configure'). /* OpenSSL */ /* #undef HAVE_OPENSSL */ I can't find anywhere that HAVE_OPENSSL is being #define'd. There's a bunch of #ifdefs and #undefs, but not #define. If HAVE_OPENSSL is not defined, then, for some reason the configure script is not picking up that you want SSL support compiled in. To debug that, you'd need to post the output of configure and/or config.log. I did find these: ./aclocal.m4:AC_DEFINE(HAVE_OPENSSL) ./configure: #define HAVE_OPENSSL 1 In config.log, you should see something like 'configure:22899: checking for OpenSSL', and towards the end of config.log, you should see a '#define HAVE_OPENSSL 1'. Here's the relevant lines from config.log: $ ./configure --with-openssl=/usr/local/ssl --with-vio --prefix=/usr/local/mysql configure:20954: checking for OpenSSL configure:21080: result: no Hmm. That's probably the problem. :) However, I didn't get any messages when running configure. I've even specified --with-openssl-include and --with-openssl-lib since the --with-openssl directory doesn't seem to be getting using to determine those directories. I'm not sure what's happening. I have a lot of trouble debugging configure. -Greg G
Re: [RE-REPOST] Openssl support not activated?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg G wrote: I'm still having trouble figuring this out. Please help! I compiled MySQL 4.1.1 --with-openssl --with-vio and when I look at the variables with mysqladmin, has_openssl is set to NO. I've got OpenSSL 0.9.7c installed. I'm seeing this on both Solaris and Debian hosts. I'm not seeing any errors during the configure or compile phases. What could have happened to cause this, and how can I fix it? Did you create certificates and configure mysqld and the client libraries to find them (as it says to in the manual :))? http://www.mysql.com/doc/en/Secure_connections.html -Mark - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 557 2388 www.mysql.com Are you MySQL Certified? http://www.mysql.com/certification/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/19/6tvXNTca6JD8RAmWRAJ9fVokwiOLvkJGSfdkqO3lM2VH2ngCfQ3vE bpDK+g0PmvqtB3755EX7ncM= =1qIY -END PGP SIGNATURE- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]