Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 709950

Summary: [kde overlay] media-sound/amarok-9999 - In file included from .../work/amarok-9999/src/core-impl/storage/sql/mysql-shared/MySqlStorage.cpp:31: /usr/include/mysql/mysql/client_plugin.h:108:8: error: using typedef-name ‘MYSQL’ after ‘struct’
Product: Gentoo Linux Reporter: François Valenduc <francoisvalenduc>
Component: OverlaysAssignee: Jorge Manuel B. S. Vicetto (RETIRED) <jmbsvicetto>
Status: RESOLVED UPSTREAM    
Severity: normal CC: cancellettopugno, gentoo.2019, kde, sound
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://phabricator.kde.org/D28165
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz
patch to solve compilation errors with mysq-connector-c- 8

Description François Valenduc 2020-02-17 15:43:01 UTC
Since mysql-connector-c was upgraded  to version 8.0.19, amarok can't be build anymore. It ends with these errors:

In file included from /usr/include/mysql/mysql.h:83,
                 from /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/core-impl/storage/sql/mysql-shared/MySqlStorage.cpp:31:
/usr/include/mysql/mysql/client_plugin.h:108:8: error: using typedef-name ‘MYSQL’ after ‘struct’
  108 | struct MYSQL;
      |        ^~~~~
In file included from /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/core-impl/storage/sql/mysql-shared/MySqlStorage.cpp:20:
/var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/core-impl/storage/sql/mysql-shared/MySqlStorage.h:32:25: note: ‘MYSQL’ has a previous declaration here
   32 | typedef struct st_mysql MYSQL;
      |                         ^~~~~

This seems to be related to the removal of embedded support in mysql. For kubuntu, there seems to be a workaround (see https://forum.kde.org/viewtopic.php?f=117&t=162903&sid=fc4595433f7a0463be265eefcf5162d4&start=15)
Would such workaround be possible in gentoo ? Or is this an hopeless problem ?
Comment 1 François Valenduc 2020-02-17 15:44:14 UTC
Created attachment 614106 [details]
build.log.gz

full build log
Comment 2 François Valenduc 2020-02-21 19:07:50 UTC
Created attachment 614956 [details, diff]
patch to solve compilation errors with mysq-connector-c- 8

A patch has been posted in the kde forum thread quoted above (see https://forum.kde.org/viewtopic.php?f=117&t=162903&sid=fe6f7700aa70c9918a56e8c29c49f9d6&start=15#p428579)
I can confirm that it works.
Comment 3 Andreas Sturmlechner gentoo-dev 2020-02-22 08:14:38 UTC
Great news, but obviously this patch needs to be sent upstream.
Comment 4 Andreas Sturmlechner gentoo-dev 2020-03-25 20:16:07 UTC
The change was accepted upstream and is close to landing in master.