This forum has been archived. All content is frozen. Please use KDE Discuss instead.

cmake fails after upgrade to Kubuntu 19.10

Tags: None
(comma "," separated)
User avatar
mfraser
Registered Member
Posts
18
Karma
0
OS
Fran??ois Valenduc wrote:libmariadb-dev-compat doesn't seem to exists under gentoo. I am not running kubuntu, but I face exactly the same problem after upgrading mysql-connector-c

Is this of any help? https://gentoobrowse.randomdan.homeip.n ... ysqlcompat
Fran??ois Valenduc
Registered Member
Posts
8
Karma
0
mysqlcompat was an use flag in older version of mariadb-connector-c. Meanwhile, the removal of embedded support in mysql is known for more than 3 years...
jfowkes
Registered Member
Posts
2
Karma
0
Fran??ois Valenduc wrote:I also hit this problem now with gentoo since mysql-connector-c was upgraded from 6.1.11 to 8.0.19. I already use -DWITH_MYSQL_EMBEDDED=FALSE but it fails with the same error as above.
Does anybody have an idea on how to solve this ?

I am also on gentoo and ran into this problem, there are two simple fixes:

--- a/src/core-impl/storage/sql/mysql-shared/MySqlStorage.h
+++ b/src/core-impl/storage/sql/mysql-shared/MySqlStorage.h
@@ -31,2 +31,1 @@
-struct st_mysql;
-typedef struct st_mysql MYSQL;
+typedef struct MYSQL MYSQL;

--- a/src/core-impl/storage/sql/mysqlserverstorage/MySqlServerStorage.cpp
+++ b/src/core-impl/storage/sql/mysqlserverstorage/MySqlServerStorage.cpp
@@ -69,1 +69,1 @@
- my_bool reconnect = true;
+ bool reconnect = true;

These are necessary in response to changes in MariaDB/MySQL 8 from upstream.
tillschafer
Registered Member
Posts
3
Karma
0
jfowkes wrote:
Fran??ois Valenduc wrote:I also hit this problem now with gentoo since mysql-connector-c was upgraded from 6.1.11 to 8.0.19. I already use -DWITH_MYSQL_EMBEDDED=FALSE but it fails with the same error as above.
Does anybody have an idea on how to solve this ?

I am also on gentoo and ran into this problem, there are two simple fixes:

--- a/src/core-impl/storage/sql/mysql-shared/MySqlStorage.h
+++ b/src/core-impl/storage/sql/mysql-shared/MySqlStorage.h
@@ -31,2 +31,1 @@
-struct st_mysql;
-typedef struct st_mysql MYSQL;
+typedef struct MYSQL MYSQL;

--- a/src/core-impl/storage/sql/mysqlserverstorage/MySqlServerStorage.cpp
+++ b/src/core-impl/storage/sql/mysqlserverstorage/MySqlServerStorage.cpp
@@ -69,1 +69,1 @@
- my_bool reconnect = true;
+ bool reconnect = true;

These are necessary in response to changes in MariaDB/MySQL 8 from upstream.


cool, thx! I can confirm that this fixed my build issues (gentoo as well).
a17r
Registered Member
Posts
21
Karma
1
OS
Please submit your patch upstream in phabricator.
jfowkes
Registered Member
Posts
2
Karma
0
A patch for this has now been submitted upstream:
https://phabricator.kde.org/D28165
(sorry should have done this myself earlier)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]