Bug 400916 - kdepim-runtime does not compile with qt 5.11 (because QString::QString(const char*) is private)
Summary: kdepim-runtime does not compile with qt 5.11 (because QString::QString(const ...
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: libkdepim (show other bugs)
Version: GIT (master)
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-10 14:57 UTC by Benjamin Traut
Modified: 2018-11-11 08:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Traut 2018-11-10 14:57:28 UTC
Note:

  * Severity "major" only because no compilation is possible. Please change accordingly.
  * Component "libkdepim": It's a wild guess. Git-Repo would be kdepim-runtime.git

SUMMARY

I am using gentoos qt5-live packages, which currently results in qt-5.11.x being used.

When trying to compile the live kdepim-runtime-packages using the ebuild provided by the gentoo kde-overlay repository, the following error occurs:

/var/tmp/portage/kde-apps/kdepim-runtime-9999/work/kdepim-runtime-9999/resources/ews/ewsclient/ewsrequest.cpp: In member function ‘void EwsRequest::prepare(const QString&)’:
/var/tmp/portage/kde-apps/kdepim-runtime-9999/work/kdepim-runtime-9999/resources/ews/ewsclient/ewsrequest.cpp:104:87: error: ‘QString::QString(const char*)’ is private within this context
         job->addMetaData(QStringLiteral("customHTTPHeader"), customHeaders.join("\r\n"));
                                                                                       ^
In file included from /usr/include/qt5/QtCore/qhashfunctions.h:44:0,
                 from /usr/include/qt5/QtCore/qlist.h:47,
                 from /usr/include/qt5/QtCore/qhash.h:46,
                 from /usr/include/qt5/QtCore/qshareddata.h:46,
                 from /usr/include/qt5/QtCore/qsharedpointer.h:45,
                 from /usr/include/qt5/QtCore/QSharedPointer:1,
                 from /var/tmp/portage/kde-apps/kdepim-runtime-9999/work/kdepim-runtime-9999/resources/ews/ewsclient/ewsrequest.h:25,
                 from /var/tmp/portage/kde-apps/kdepim-runtime-9999/work/kdepim-runtime-9999/resources/ews/ewsclient/ewsrequest.cpp:20:
/usr/include/qt5/QtCore/qstring.h:829:5: note: declared private here
     QString(const char *ch);
     ^~~~~~~
make[2]: *** [resources/ews/ewsclient/CMakeFiles/ewsclient.dir/build.make:466: resources/ews/ewsclient/CMakeFiles/ewsclient.dir/ewsrequest.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/kde-apps/kdepim-runtime-9999/work/kdepim-runtime-9999_build'
make[1]: *** [CMakeFiles/Makefile2:3124: resources/ews/ewsclient/CMakeFiles/ewsclient.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-apps/kdepim-runtime-9999/work/kdepim-runtime-9999_build'

STEPS TO REPRODUCE
1. compile Qt5-5.11 from sources (gentoo qt-overlay)
2. compile kdepim-live-package-set (if you haven't before).
3. or compile directly the kde-apps/kdepim-runtime-9999.ebuild

OBSERVED RESULT
Package does not compile (see above error message)

EXPECTED RESULT
Package does compile and install

SOFTWARE/OS VERSIONS
Windows: -
MacOS: -
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.18 (live)
KDE Frameworks Version: 5.52.0 (live)
Qt Version: 5.11.2 (live)

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2018-11-11 08:56:16 UTC
Git commit 607e505028a23f75f7efa22027f66c54efb60c6d by Laurent Montel.
Committed on 11/11/2018 at 08:54.
Pushed by mlaurent into branch 'Applications/18.12'.

Fix Bug 400916 - kdepim-runtime does not compile with qt 5.11 (because QString::QString(const char*) is private)
FIXED-IN: 5.10.0

M  +1    -1    resources/ews/ewsclient/ewsrequest.cpp

https://commits.kde.org/kdepim-runtime/607e505028a23f75f7efa22027f66c54efb60c6d