Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: unable to build from source: msg#00107

db.mysql.c++

Subject: RE: unable to build from source



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

> 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@xxxxxxxxxxxxxxx"
| #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




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation