| Bug #42619 | Can't build MySQL++ programs using mysql++.m4 | ||
|---|---|---|---|
| Submitted: | 5 Feb 2009 12:16 | Modified: | 1 Oct 2009 11:05 |
| Reporter: | juan carlos | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL++ | Severity: | S3 (Non-critical) |
| Version: | mysql++-3.0.9 | OS: | Linux (Debian 4.1.2-24) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | Contribution, mysql++ dependancy, mysql++.m4 | ||
[9 Feb 2009 19:16]
Sveta Smirnova
Thank you for the report. Could you please provide your config.log file: we want to be sure this is problem of MySQL++ and not your application.
[11 Feb 2009 15:54]
juan carlos
Log for configure execution
Attachment: config.log (text/x-log), 35.89 KiB.
[31 Jul 2009 9:33]
Sveta Smirnova
Thank you for the feedback. Could you also please upload repeatable test case or at least autotools files you created. Thanks in advance.
[31 Aug 2009 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[1 Oct 2009 23:05]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".

Description: When I try to use autotools and the mysql++.m4 file in order to add a dependency for mysql++ in my project, I get the following error message: checking for MySQL++ devel stuff... lib in /usr/lib checking for MySQL++ header directory... /usr/include/mysql++ checking that we can build MySQL++ programs... configure: error: no By the end of the mysql++.m4 file there is a small code compilation using CC, but in my case this was done with gcc instead of g++. How to repeat: I use autoconf 2.61-8 and automake 1:1.10.1-3 - Insert the entry MYSQL_API_LOCATION in a configure.ac file. Therefore you should also use the mysql_loc.m4 file. - Insert the entry MYSQLPP_DEVEL in the configure.ac file. - Run aclocal -I <path-to-m4-files> - Run autoheader, automake, autoconf - Run ./configure Suggested fix: It is solved adding two lines near the end of your mysql++.m4 file, AC_LANG_PUSH and AC_LANG_POP : AC_MSG_CHECKING([that we can build MySQL++ programs]) --> AC_LANG_PUSH(C++) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([#include <mysql++.h>], [mysqlpp::Connection c(false)])], ac_cv_mysqlpp_devel=yes, AC_MSG_ERROR(no)) --> AC_LANG_POP(C++)