dbTalk Databases Forums  

unable to build from source

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss unable to build from source in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephen Povilaitis
 
Posts: n/a

Default unable to build from source - 08-24-2005 , 02:35 PM






------_=_NextPart_001_01C5A8E3.04D765F8
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm trying to build mysql++2.0.2 from the source and I get the following =
output/error when I run make:

make
make all-recursive
make[1]: Entering directory `/home/xanadu/Desktop/mysql++-2.0.2'
Making all in lib
make[2]: Entering directory `/home/xanadu/Desktop/mysql++-2.0.2/lib'
if /bin/sh ../libtool --mode=3Dcompile --tag=3DCXX g++ -DHAVE_CONFIG_H =
-I. -I. -I..-I../lib -I/usr/include/mysql -g -O2 -MT connection.lo -MD =
-MP -MF ".deps/connection.Tpo" -c -o connection.lo connection.cpp; \
then mv -f ".deps/connection.Tpo" ".deps/connection.Plo"; else rm -f =
".deps/connection.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/include/mysql -g -O2 =
-MT connection.lo -MD -MP -MF .deps/connection.Tpo -c connection.cpp =
-fPIC -DPIC -o .libs/connection.o
connection.cpp: In member function `bool =
mysqlpp::Connection::shutdown()':
/usr/include/mysql/mysql.h:469: error: too few arguments to function =
`int mysql_shutdown(MYSQL*, mysql_enum_shutdown_level)'
connection.cpp:249: error: at this point in file
make[2]: *** [connection.lo] Error 1
make[2]: Leaving directory `/home/xanadu/Desktop/mysql++-2.0.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xanadu/Desktop/mysql++-2.0.2'
make: *** [all] Error 2

Any idea how I can resolve this?

I'm running Redhat Enterprise and MySQL v4.1.10a

thanks in advance!

------_=_NextPart_001_01C5A8E3.04D765F8--

Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: unable to build from source - 08-25-2005 , 12:18 AM






Stephen Povilaitis wrote:
Quote:
/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.

Quote:
I'm running Redhat Enterprise
Which version?

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Steve Povilaitis
 
Posts: n/a

Default RE: unable to build from source - 08-25-2005 , 10:29 AM





Quote:
-----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.
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:
Quote:
/* 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;
}

Quote:
I'm running Redhat Enterprise

Which version?
Enterprise Workstation Kernel 2.6.9-11




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #4  
Old   
Warren Young
 
Posts: n/a

Default Re: unable to build from source - 08-25-2005 , 11:20 AM



Steve Povilaitis wrote:
Quote:
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.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #5  
Old   
Steve Povilaitis
 
Posts: n/a

Default RE: unable to build from source - 08-25-2005 , 11:50 AM





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

YES! The patch worked. Thanks for your prompt assistance!


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.