Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148736 - media-sound/lastfmplayer-1.0.0.1_p2113 compilation error - 'WindowText' is not a member of 'QPalette'"
Summary: media-sound/lastfmplayer-1.0.0.1_p2113 compilation error - 'WindowText' is no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 23:21 UTC by David Grant
Modified: 2006-09-23 15:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2006-09-22 23:21:54 UTC
Here's an error I get compiling media-sound/lastfmplayer-1.0.0.1_p2113. I'm going to try recompiling qt4 just for the heck of it. I have compiled lastfm succcesfully on a different machine that is also using gcc 4.1, so I'm not sure what's up.

g++ -c -pipe -march=pentium3 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_SHARED -I/usr/share/doc/qt-4.0.1/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I.. -I. -I. -o URLLabel.o URLLabel.cpp
URLLabel.cpp:90: warning: unused parameter 'name'
URLLabel.cpp:100: warning: unused parameter 'name'
URLLabel.cpp: In member function 'void URLLabel::setLinkColor(const QColor&)':
URLLabel.cpp:176: error: 'WindowText' is not a member of 'QPalette'
make[1]: *** [URLLabel.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/lastfmplayer-1.0.0.1_p2113/work/lastfmplayer-1.0.0.1_p2113/src/libLastFMTools'
make: *** [sub-src-libLastFMTools-make_default] Error 2

!!! ERROR: media-sound/lastfmplayer-1.0.0.1_p2113 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  lastfmplayer-1.0.0.1_p2113.ebuild, line 47:   Called die

thinkpad david # emerge --info
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Fri, 22 Sep 2006 08:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en en_GB en_US"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm bash-completion bitmap-fonts browserplugin bzip2 cli cpudetection cups divx4linux dlloader eds elibc_glibc emboss encode ffmpeg foomaticdb gdbm gecko-sdk gif gpm gtk gtk2 hal imagemagick imlib input_devices_keyboard input_devices_mouse isdnlog javascript jpeg kernel_linux libg++ libwww linguas_en linguas_en_GB linguas_en_US mad mikmod mmx motif mozilla mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly nsplugin offensive ogg pam pcmcia pcre png pppd qt3 qt4 quicktime readline reflection sdl session spell spl sqlite ssl startup-notification svg tcpd tiff tk truetype truetype-fonts type1-fonts udev usb userland_GNU v4l video_cards_fbdev video_cards_radeon video_cards_vesa vorbis win32codecs xorg xprint xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 David Li 2006-09-23 07:22:05 UTC
error: 'WindowText' is not a member of 'QPalette'

Well, http://doc.trolltech.com/4.1/qpalette.html#ColorRole-enum says otherwise.

Anyways, could you please attach your /usr/include/qt4/QtGui/qpalette.h to the bug?
Comment 2 David Grant 2006-09-23 11:37:51 UTC
I just re-emerged qt overnight, and actually it installed qt-4.1.4 (upgrade from qt-4.0.1 which caused the error). Let's see if lastfmplayer emerges now. It's gone longer than it did before, so it might be working.
Comment 3 David Li 2006-09-23 12:55:06 UTC
Acutally, qt-4.0* is unsupported. There are a lot of bugs those versions that are fixed in 4.1.
Comment 4 David Grant 2006-09-23 12:57:43 UTC
4.1 fixed it. I think this must have been what happened on my other machine previously, because I remember lastfm not compiling, and then qt-4.1 must have gone stable, I upgraded without knowing it, and then lastfm suddenly worked. Same thing on this different machine except I have all sorts of old packages on there because it is a slow, old computer and I don't upgrade it unless I have to.
Comment 5 David Grant 2006-09-23 15:11:26 UTC
4.1 fixded it