List:MySQL++« Previous MessageNext Message »
From:Steve Povilaitis Date:August 25 2005 3:28pm
Subject:RE: unable to build from source
View as plain text  
 

> -----Original Message-----
> From: Warren Young [mailto:mysqlpp@stripped] 

> 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.

Here's an excerpt from my log. In addition to the shutdown test, there are
probably a dozen or so other areas where 'confdefs.h' failed in the same
manner.

configure:21760: checking for level argument to mysql_shutdown()
configure:21782: /usr/bin/g++ -o conftest -g -O2  -I/usr/include/mysql
-L/usr/lib/mysql conftest.c -lmysqlclient -lz  >&5
conftest.c: In function `int main()':
conftest.c:34: error: invalid conversion from `int' to
`mysql_enum_shutdown_level'
conftest.c:34: error:   initializing argument 2 of `int
mysql_shutdown(MYSQL*, mysql_enum_shutdown_level)'
configure:21788: $? = 1
configure: failed program was:
| /* 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@stripped"
| #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?

Enterprise Workstation Kernel 2.6.9-11



Thread
unable to build from sourceStephen Povilaitis24 Aug
  • Re: unable to build from sourceWarren Young25 Aug
    • RE: unable to build from sourceSteve Povilaitis25 Aug
      • Re: unable to build from sourceWarren Young25 Aug
        • RE: unable to build from sourceSteve Povilaitis25 Aug