![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
--- cut & paste ---------------------------------------------------------------------------- ---------- g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/include/sys g++ -I/usr/include -I/opt/mysql/include -g -O2 -c coldata.cpp -MT g++ coldata.lo -MD -MP -MF .deps/coldata.TPlo -fPIC -DPIC -o coldata.lo In file included from /opt/common/lib/gcc-lib/../../include/c++/3.2.3/cwchar:51, from /opt/common/lib/gcc-lib/../../include/c++/3.2.3/bits/fpos.h:45, from /opt/common/lib/gcc-lib/../../include/c++/3.2.3/bits/char_traits.h:46, from /opt/common/lib/gcc-lib/../../include/c++/3.2.3/string:47, from /opt/common/lib/gcc-lib/../../include/c++/3.2.3/stdexcept:45, from const_string.h:34, from coldata.h:37, from coldata.cpp:27: /opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:68: `tm' not declared /opt/common/lib/gcc-lib/../../include/c++/3.2.3/ctime:70: `clock' not declared |
#3
| |||
| |||
|
|
This appears to be a bug in the gcc C++ headers. mysql++ doesn't use C time functions, and as the include list shows, they are being included indirectly through stdexcept. You might try upgrading the compiler, or you can hack the source to include <time.h> manually, before anything else. |
#4
| |||
| |||
|
|
The only mysql_ssl_set(...) in mysql.h is defined as: #ifdef HAVE_OPENSSL int STDCALL mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath); #endif /* HAVE_OPENSSL */ Yours has an extra char*, is there another definition somewhere I am missing? |
|
I don't plan to use ssl, and the code will compile if I comment out this call. Would that effect anything else that I am not aware of? Taking out the extra arg didn't help, the error remained the same. |
#5
| |||
| |||
|
|
On Thu, Nov 10, 2005 at 12:30:23PM -0500, Dave Brooks wrote: The only mysql_ssl_set(...) in mysql.h is defined as: #ifdef HAVE_OPENSSL int STDCALL mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath); #endif /* HAVE_OPENSSL */ Yours has an extra char*, is there another definition somewhere I am missing? Looks like you found a bug. :-) I don't plan to use ssl, and the code will compile if I comment out this call. Would that effect anything else that I am not aware of? Taking out the extra arg didn't help, the error remained the same. Try changing your config.h manually to disable HAVE_OPENSSL. There might be a --disable-openssl in configure, but I don't have a machine in front of me to check. That would be the best way. - Chris |
#6
| |||
| |||
|
|
If you are using MySQL 3.23.x and you don't need SSL you could try my patch. MySQL versions newer than 4.0.x have mysql_ssl_set() with different number of arguments than 3.23.x. |
#7
| |||
| |||
|
|
Ovidiu Bivolaru wrote: If you are using MySQL 3.23.x and you don't need SSL you could try my patch. MySQL versions newer than 4.0.x have mysql_ssl_set() with different number of arguments than 3.23.x. If you change your patch to detect the proper number of arguments instead of just removing Connection::enable_ssl() from the library, I'll accept it for the next version. |
#8
| |||
| |||
|
|
So, I'm reading a good automake/autoconf book meanwhile My initial plan was to provide a patch as you are asking,but it didn't worked for me. I will let you know if I can do something about this. Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
| |