Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180478 - media-sound/qmpdclient-1.0.7 compile failed
Summary: media-sound/qmpdclient-1.0.7 compile failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Andrej Kacian (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 210526
Blocks:
  Show dependency tree
 
Reported: 2007-05-31 18:52 UTC by Paul-Sebastian Manole
Modified: 2008-02-17 21:40 UTC (History)
3 users (show)

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


Attachments
Build log (build.log,6.13 KB, text/plain)
2007-05-31 18:55 UTC, Paul-Sebastian Manole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul-Sebastian Manole 2007-05-31 18:52:46 UTC
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.
Comment 1 Paul-Sebastian Manole 2007-05-31 18:55:43 UTC
Created attachment 120807 [details]
Build log

The corresponding build log.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2007-05-31 19:33:53 UTC
I put qt-4.3.0 into portage this morning.  So it's been there about 8 hours now.
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2007-05-31 22:12:24 UTC
Paul-Sebastian, can you please test with qt-4.3.0?
Comment 4 Paul-Sebastian Manole 2007-06-01 05:52:26 UTC
(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.
Comment 5 wrdaniel 2007-06-17 21:22:58 UTC
same problem here. went back to x11-libs/qt-4.2.3-r1 [from qt-4.3.0] and it compiles without errors.
Comment 6 rafnov 2007-06-22 12:11:31 UTC
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?
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2007-06-26 14:34:15 UTC
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...
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2007-06-30 14:43:29 UTC
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).
Comment 9 rafnov 2007-06-30 15:10:05 UTC
(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.
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2007-06-30 17:34:22 UTC
(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.
Comment 11 Andrej Kacian (RETIRED) gentoo-dev 2007-07-05 00:07:03 UTC
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.