Compiling media-sound/qmpdclient-1.0.7 failed with x11-libs/qt-4.3.0_rc1. This may be due to a bug in the qt-4.3.0_rc1. /usr/include/qt4/QtGui/qpushbutton.h:39: error: void value not ignored as it ought to be Reproducible: Always Steps to Reproduce: 1. Install x11-libs/qt-4.3.0_rc1 2. Emerge media-sound/qmpdclient-1.0.7 3. Actual Results: media-sound/qmpdclient-1.0.7 fails to compile. Expected Results: Successful compilation. When will x11-libs/qt-4.3.0 sharp get into Portage? This seems like a bug in the rc1 of qt4.
Created attachment 120807 [details] Build log The corresponding build log.
I put qt-4.3.0 into portage this morning. So it's been there about 8 hours now.
Paul-Sebastian, can you please test with qt-4.3.0?
(In reply to comment #3) > Paul-Sebastian, can you please test with qt-4.3.0? > I tested this morning. I get the same output. It's the same build log. So then this could be a bug with qmpdclient and not not Qt.
same problem here. went back to x11-libs/qt-4.2.3-r1 [from qt-4.3.0] and it compiles without errors.
The author of qmpdclient, as of 18.06.07, says: "I have already resolved the Qt 4.3 issues, and I'm currently in the progress of adding a few more features. " Perhaps someone could make a patch to fix compilation with QT 4.3?
I had a look at the sources... The problem here is that in line 123 (file src/idealbar.cpp) IdealButton *button = qobject_cast<IdealButton*>(sender()); a qobject_cast is used on a pointer to a class that does not contain a QOBJECT macro, which instead is necessary. I do not know QT4 programming, but a quick 'n' dirty fix is to replace qoject_cast with a static_cast. This hack seems to work fine here. Maybe a more proper fix would be to add a QOBJECT macro inside IdealButton class: I tried but then the linker started complaining about missing vtables and I didn't have time to fix the new issues...
1.0.8 is out and should compile fine with Qt 4.3 too without nasty hacks... I am waiting for the bump (bug 183593).
(In reply to comment #8) I've copied ebuild 1.0.7 to overlay and change it's version to 1.0.8. I've tried to compile it but the source package doesn't have configure file (wonder why?). I had to copy it from source tarball version 1.0.8. Then qmpdclient compiled fine.
(In reply to comment #9) > (In reply to comment #8) > I've copied ebuild 1.0.7 to overlay and change it's version to 1.0.8. I've > tried to compile it but the source package doesn't have configure file (wonder > why?). I had to copy it from source tarball version 1.0.8. Then qmpdclient > compiled fine. > Have a look at bug 183593: the build process has changed and you can find a new ebuild there.
The ebuild is in CVS now, with ~amd64 keyword temporarily dropped, due to segfaults on that arch. Let's all move on to 1.0.8.