MySQL++

View Ticket
Login
Ticket Hash: 5e73e7ddd88ab16b145a12b8f16027c839f07588
Title: install error
Status: Closed Type: Code Defect
Severity: Important Priority: Immediate
Subsystem: Library Resolution: Fixed
Last Modified: 2018-07-26 06:15:10
Version Found In: 3.2.3
User Comments:
anonymous added on 2018-07-11 06:13:29: (text/x-fossil-plain)
In CentOS7 and Mysql 8 version

configure is ok, but make and make install do now work at all...



./lib/options.cpp: In member function 'virtual mysqlpp::Option::Error mysqlpp::GuessConnectionOption::set(mysqlpp::DB    Driver*)':
./lib/options.cpp:72:20: error: 'MYSQL_OPT_GUESS_CONNECTION' was not declared in this scope
    dbd->set_option(MYSQL_OPT_GUESS_CONNECTION) ?
                    ^
./lib/options.cpp: In member function 'virtual mysqlpp::Option::Error mysqlpp::SecureAuthOption::set(mysqlpp::DBDrive    r*)':
./lib/options.cpp:264:20: error: 'MYSQL_SECURE_AUTH' was not declared in this scope
    dbd->set_option(MYSQL_SECURE_AUTH, &arg_) ?
                    ^
./lib/options.cpp: In member function 'virtual mysqlpp::Option::Error mysqlpp::SetClientIpOption::set(mysqlpp::DBDriv    er*)':
./lib/options.cpp:295:20: error: 'MYSQL_SET_CLIENT_IP' was not declared in this scope
    dbd->set_option(MYSQL_SET_CLIENT_IP, arg_.c_str()) ?
                    ^
./lib/options.cpp: In member function 'virtual mysqlpp::Option::Error mysqlpp::UseEmbeddedConnectionOption::set(mysql    pp::DBDriver*)':
./lib/options.cpp:340:20: error: 'MYSQL_OPT_USE_EMBEDDED_CONNECTION' was not declared in this scope
    dbd->set_option(MYSQL_OPT_USE_EMBEDDED_CONNECTION) ?
                    ^
./lib/options.cpp: In member function 'virtual mysqlpp::Option::Error mysqlpp::UseRemoteConnectionOption::set(mysqlpp    ::DBDriver*)':
./lib/options.cpp:353:20: error: 'MYSQL_OPT_USE_REMOTE_CONNECTION' was not declared in this scope
    dbd->set_option(MYSQL_OPT_USE_REMOTE_CONNECTION) ?

tangent added on 2018-07-12 17:01:13: (text/x-fossil-wiki)
This is due to the removal of the libmysqld embedded DB server feature in MySQL 8.0.1. I don't have that version here at the moment, but I think I've got it fixed on trunk as of checkin [5767708cd6].

Please try it and let me know if it solves your build issue.

If you'd rather not build from the Fossil trunk, you can just grab the [/raw/lib/options.cpp?name=trunk|current version of lib/options.cpp] and overwrite the release version in the MySQL++ source tree you're trying to build in.

tangent added on 2018-07-26 06:15:10: (text/x-fossil-plain)
Taking silence as "success."