Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709950 - [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’
Summary: [kde overlay] media-sound/amarok-9999 - In file included from .../work/amarok...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jorge Manuel B. S. Vicetto (RETIRED)
URL: https://phabricator.kde.org/D28165
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2020-02-17 15:43 UTC by François Valenduc
Modified: 2020-03-25 20:16 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,97.95 KB, application/x-gzip)
2020-02-17 15:44 UTC, François Valenduc
Details
patch to solve compilation errors with mysq-connector-c- 8 (0001-Amarok-fix-build-with-mysql-connector-c-8-and-above.patch,1.74 KB, patch)
2020-02-21 19:07 UTC, François Valenduc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.