Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132158

Summary: kwin-3.5.2-r2 main.cpp compile fails on inclusion of ruleswidget.h
Product: Gentoo Linux Reporter: David H <gentoo>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David H 2006-05-03 11:59:02 UTC
Emerging kwin-3.5.2-r2 fails on main.cpp->ruleswidget.h:115:


/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I./../../kwin/lib -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -DKCMRULES -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long
long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arih -DNDEBUG -DNO_DEBUG -O2 -Os -march=athlon-xp -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_T
ANSLATION  -c -o main.lo `test -f 'main.cpp' || echo './'`main.cpp
echo 'extern "C" int kdemain(int argc, char* argv[]);' > kwin_rules_dialog.la.cpp; \
echo 'int main(int argc, char* argv[]) { return kdemain(argc,argv); }' >> kwin_rules_dialog.la.cpp
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I.
/../../kwin/lib -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -DKCMRULES -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long
long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-ari
h -DNDEBUG -DNO_DEBUG -O2 -Os -march=athlon-xp -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_T
ANSLATION  -c -o kcm.lo `test -f 'kcm.cpp' || echo './'`kcm.cpp
In file included from main.cpp:29:
ruleswidget.h:115: error: syntax error before `{' token
ruleswidget.h:116: error: virtual outside class declaration
ruleswidget.h:116: error: non-member function `const char* className()' cannot
   have `const' method qualifier
ruleswidget.h:116: error: virtual outside class declaration
ruleswidget.h:116: error: virtual outside class declaration
ruleswidget.h:116: error: virtual outside class declaration
ruleswidget.h:116: error: virtual outside class declaration
ruleswidget.h: In function `QObject* qObject()':
ruleswidget.h:116: error: invalid use of `this' in non-member function
ruleswidget.h: At global scope:
ruleswidget.h:116: error: syntax error before `private'
ruleswidget.h:122: error: syntax error before `}' token
ruleswidget.h:133: error: syntax error before `*' token
ruleswidget.h:146: error: syntax error before `}' token
rm -f ruleswidgetbase.cpp
echo '#include <kdialog.h>' > ruleswidgetbase.cpp
echo '#include <klocale.h>' >> ruleswidgetbase.cpp
/usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -tr tr2i18n -i ruleswidgetbase.h ./ruleswidgetbas
.ui > ruleswidgetbase.cpp.temp ; ret=$?; \
/usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" ruleswidgetbase.cpp.temp | /usr/bin/perl -pe "s,tr2i18n( \"\"\, \
\" ),QString::null,g" | /usr/bin/perl -pe "s,image([0-9][0-9]*)_data,img\$1_ruleswidgetbase,g" | /usr/bin/perl -pe "s,:
QWizard\(,: KWizard(,g" >> ruleswidgetbase.cpp ;\
rm -f ruleswidgetbase.cpp.temp ;\
if test "$ret" = 0; then echo '#include "ruleswidgetbase.moc"' >> ruleswidgetbase.cpp; else rm -f ruleswidgetbase.cpp ;
exit $ret ; fi
ruleswidget.h:116: warning: `bool qt_static_property(QObject*, int, int,
   QVariant*)' declared `static' but never defined
ruleswidget.h:116: warning: `QMetaObject* staticMetaObject()' declared `static'
   but never defined
make[4]: *** [main.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
Session management error: Could not open network socket
Session management error: Could not open network socket
make[4]: Leaving directory `/usr/portage/tmp/portage/kwin-3.5.2-r2/work/kwin-3.5.2/kwin/kcmkwin/kwinrules'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/portage/tmp/portage/kwin-3.5.2-r2/work/kwin-3.5.2/kwin/kcmkwin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/portage/tmp/portage/kwin-3.5.2-r2/work/kwin-3.5.2/kwin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/portage/tmp/portage/kwin-3.5.2-r2/work/kwin-3.5.2'
make: *** [all] Error 2



-----------------------------------------------------
emerge --info
-----------------------------------------------------





Portage 2203-svn (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/q
mail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apache2 apm audiofile avi bitmap-fonts bzip2 cdr cli crypt cups curl dri dvd dvdr emboss encode exif
 expat fam ffmpeg firefox flac foomaticdb fortran gdbm gif gimpprint glut gmp gphoto2 gpm gtk2 hal idn imagemagick imlib
 ipv6 isdnlog jack java jpeg kde libg++ libwww mad mhash mikmod mjpeg mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl o
ss pam pcre pdflib perl pic png ppds pppd python qt quicktime readline reflection samba sdl session spell spl ssl tcpd t
iff truetype truetype-fonts type1-fonts udev usb vcd vorbis win32codecs xine xml2 xmms xorg xv xvid zlib userland_GNU ke
rnel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-05-03 13:43:57 UTC

*** This bug has been marked as a duplicate of 130902 ***
Comment 2 David H 2006-05-03 15:15:46 UTC
I'm not sure if Bug 130902 applies.  The "fix" says to "update to kdelibs-3.5.2-r4 and stop hardcoding specific ebuild
revisions into package.keywords".

I have kdelibs-3.5.2-r4 and am not hardcoding specific revisions into package.keywords.

    valhalla portage # emerge -p kdelibs

    These are the packages that I would merge, in order:

    Calculating dependencies ...done!
    [ebuild   R   ] kde-base/kdelibs-3.5.2-r4

package keywords:
    ...
    kde-base/kdebase ~x86
    kde-base/kwin ~x86
    ...
Comment 3 David H 2006-05-04 10:31:10 UTC
I would like to reopen this bug, because the bug 130902 does not address this issue as far as I can tell.  I have the requisite packages unmasked and built.  It is kwin that won't build (as a dependency of kdebase-startup).


# emerge -p $(grep kde /var/lib/portage/world)

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] kde-base/kcalc-3.5.2
[ebuild   R   ] kde-misc/kdiff3-0.9.88
[ebuild   R   ] kde-base/kate-3.5.2
[ebuild   R   ] kde-base/kuickshow-3.5.2
[ebuild   R   ] kde-base/kdeprint-3.5.2
[ebuild   R   ] kde-base/knetattach-3.5.1
[ebuild   R   ] kde-base/kicker-3.5.2
[ebuild  NS   ] kde-base/kwin-3.5.2-r2
[ebuild  NS   ] kde-base/kdebase-startkde-3.5.2
[ebuild   R   ] kde-base/konsole-3.5.2-r1
[ebuild   R   ] kde-base/kcontrol-3.5.2
[ebuild   R   ] kde-base/konqueror-3.5.2
[ebuild   R   ] kde-base/ark-3.5.2
[ebuild   R   ] kde-base/kpdf-3.5.2
#
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2006-05-04 10:36:56 UTC
dup of 122059 though?
Comment 5 David H 2006-05-04 11:40:12 UTC
(In reply to comment #4)
> dup of 122059 though?
> 

Looks like the exact same problem I'm having, albeit on the 3.5.2-r2 package.  I was originally trying to build with distcc.  However when it failed I turned off the distcc feature but did not modify makeopts.  I'll change makeopts and turn off distcc and try to build again.
Comment 6 David H 2006-05-04 12:56:45 UTC
Well that did it.  I modified makeopts to 

MAKEOPTS="-j2"

distcc had already been turned off.

And then recompiled.  Originally the compile hung, but when I resumed, it completed cleanly.

I have since restored distcc and MAKEOPTS to "-j3".  If you would like I can try to recompile kwin with my original settings to see if it breaks again.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2006-05-10 05:54:44 UTC

*** This bug has been marked as a duplicate of 122059 ***