![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
/usr/include/mysql/mysql.h:469: error: too few arguments to function `int mysql_shutdown(MYSQL*, mysql_enum_shutdown_level)' |
|
I'm running Redhat Enterprise |
#3
| |||
| |||
|
|
-----Original Message----- From: Warren Young [mailto:mysqlpp (AT) etr-usa (DOT) com] Stephen Povilaitis wrote: /usr/include/mysql/mysql.h:469: error: too few arguments to function `int mysql_shutdown(MYSQL*, mysql_enum_shutdown_level)' This should have been detected automatically. Please examine config.log to see why the test (config/mysql_shutdown.m4) failed to detect the extra argument. |
|
/* confdefs.h. */ #define PACKAGE_NAME "mysql++" #define PACKAGE_TARNAME "mysql++" #define PACKAGE_VERSION "2.0.2" #define PACKAGE_STRING "mysql++ 2.0.2" #define PACKAGE_BUGREPORT "plusplus (AT) lists (DOT) mysql.com" #define PACKAGE "mysql++" #define VERSION "2.0.2" #ifdef __cplusplus extern "C" void std::exit (int) throw (); using std::exit; #endif #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define STDC_HEADERS 1 #define HAVE_STRTOL 1 #define HAVE_ZLIB_H 1 #define HAVE_LIBZ 1 #define HAVE_LIBMYSQLCLIENT 1 /* end confdefs.h. */ #include <mysql.h int main () { mysql_shutdown(0, 0); ; return 0; } |
|
I'm running Redhat Enterprise Which version? |
#4
| |||
| |||
|
|
conftest.c:34: error: invalid conversion from `int' to `mysql_enum_shutdown_level' |
#5
| |||
| |||
|
|
-----Original Message----- From: Warren Young [mailto:mysqlpp (AT) etr-usa (DOT) com] Steve Povilaitis wrote: conftest.c:34: error: invalid conversion from `int' to `mysql_enum_shutdown_level' That's bizarre. Please apply the following patch, then say "./bootstrap". It should detect the shutdown parameter now. --- config/mysql_shutdown.m4 (revision 1059) +++ config/mysql_shutdown.m4 (working copy) @@ -11,7 +11,7 @@ [ AC_TRY_LINK( [ #include <mysql.h> ], - [ mysql_shutdown(0, 0); ], + [ mysql_shutdown(0, SHUTDOWN_DEFAULT); ], ac_cv_mysql_shutdown_arg=yes, ac_cv_mysql_shutdown_arg=no) ]) Let me know whether it works or not. If it does, I'll push the change into the next release. |
![]() |
| Thread Tools | |
| Display Modes | |
| |