make[3]: Entering directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1 /quanta/treeviews' g++ -I. -I. -I../.. -I. -I. -I../.. -I/usr/kde/3/include -I/usr/qt/3/include -I/ usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-l ong-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissin g-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-alig n -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe -fno-exceptions -fno -check-new -c -o quantapropertiespage.o `test -f quantapropertiespage.cpp || ec ho './'`quantapropertiespage.cpp quantapropertiespage.cpp: In method `QuantaPropertiesPage::QuantaPropertiesPage( QWidget * = 0, const char * = 0, unsigned int = 0)': quantapropertiespage.cpp:48: invalid use of undefined type `class KComboBox' quantapropertiespage.h:17: forward declaration of `class KComboBox' quantapropertiespage.cpp:49: no matching function for call to `QHBoxLayout::addW idget (KComboBox *&)' /usr/qt/3/include/qlayout.h:378: candidates are: void QBoxLayout::addWidget(QWid get *, int = 0, int = 0) quantapropertiespage.cpp:74: no matching function for call to `QuantaPropertiesP age::connect (QCheckBox *&, const char[15], KComboBox *&, const char[19])' /usr/qt/3/include/qobject.h:112: candidates are: static bool QObject::connect(co nst QObject *, const char *, const QObject *, const char *) /usr/qt/3/include/qobject.h:208: bool QObject::connect(const QOb ject *, const char *, const char *) const make[3]: *** [quantapropertiespage.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1/ quanta/treeviews' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1/ quanta' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line -4761, Exitcode 2 !!! died running emake, kde_src_compile:make !!! emerge aborting on /usr/portage/app-editors/quanta/quanta-3.0_pre1.ebuild .
Just a quick comment to say I have the same results.
I can't reproduce it. Could you please post some more output from before the error? What we see here is the last make thread (by default, of 2 total) dying; I'd like to see the first. Go back in the output and look for the first error. Also: this probably won't help but is worth a try - export MAKEOPTS="-j1" before emerging to disable multiple make threads. This has caused some various problems recently, and could perhaps be behind this one as well (though unlikely).
Ok, here's my output any anything related to that file that causes the error. Also note that I am using kde3.1alpha. I do know somoene who compiled quanta without a problem using 3.0.2. So maybe thats the difference. Another thing to note is that I can get by this problem by editting the file and adding #include <kcombobox.h> to the top, but later on I start running into more and more problems. /usr/qt/3/bin/moc quantapropertiespage.h -o quantapropertiespage.moc rm -f quantapropertiespage.cpp echo '#include <klocale.h>' > quantapropertiespage.cpp /usr/qt/3/bin/uic -L /usr/kde/3/lib/kde3/plugins/designer -nounload -tr tr2i18n -i quantapropertiespage.h ./quantapropertiespage.ui | sed -e "s,tr2i18n( \"\" ),QString::null,g" | sed -e "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | sed -e "s,image\([0-9][0-9]*\)_data,img\1_quantapropertiespage,g" >> quantapropertiespage.cpp || rm -f quantapropertiespage.cpp echo '#include "quantapropertiespage.moc"' >> quantapropertiespage.cpp i686-pc-linux-gnu-g++ -I. -I. -I../.. -I. -I. -I../.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fomit-frame-pointer -fno-exceptions -fno-check-new -c -o quantapropertiespage.o `test -f quantapropertiespage.cpp || echo './'`quantapropertiespage.cpp quantapropertiespage.cpp: In constructor `QuantaPropertiesPage::QuantaPropertiesPage(QWidget*, const char*, unsigned int)': quantapropertiespage.cpp:48: invalid use of undefined type `struct KComboBox' quantapropertiespage.h:17: forward declaration of `struct KComboBox' quantapropertiespage.cpp:49: no matching function for call to `QHBoxLayout::addWidget(KComboBox*&)' /usr/qt/3/include/qlayout.h:378: candidates are: void QBoxLayout::addWidget(QWidget*, int = 0, int = 0) quantapropertiespage.cpp:74: no matching function for call to `QuantaPropertiesPage::connect(QCheckBox*&, const char[15], KComboBox*&, const char[19])' /usr/qt/3/include/qobject.h:112: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*) /usr/qt/3/include/qobject.h:208: bool QObject::connect(const QObject*, const char*, const char*) const make[3]: *** [quantapropertiespage.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1/quanta/treeviews' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1/quanta' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/quanta-3.0_pre1/work/quanta-3.0pr1' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line -4754, Exitcode 2 !!! died running emake, kde_src_compile:make !!! emerge aborting on /usr/portage/app-editors/quanta/quanta-3.0_pre1.ebuild .
Ah, the fact that you use 3.1 alpha1 may indeed be the reason for this. It builds ok for both 3.0.2 and current cvs head. alpha1 is buggy anyway, why don't you try out my cvs ebuilds? (www.gentoo.org/~danarmak/kde-cvs.html). Also, to test this hypotesis: emerge kdelibs-3.0.2, export KDE3LIBSDIR=/usr/kde/3 and emerge quanta. This will make it compile against the 3.0.2 kdelibs. John: what version of kdelibs do you use?
Well, i'm going to emerge your cvs version and then see what happens.. DIdn't know about you cvs ebuild. Nice. I will post my results after I'm done building.
Well, after using your KDE ebuilds (much nicer, thank you.), I still get the same problems building quanta. But now if I edit the files as it comes up with errors, i'm able to build it. More or less, here's what I do: ebuild quanta-blah.ebuild compile <wait for it to error out. Examine the error for the file the problem is in, noticing that the error occurs because its not including some kde header file, like kcombobox.h> edit the offending file, adding an #include like: #include <kcombobox.h> ebuild quanta-blah.ebuild compile <repeat as necessary, approx 4 times> ebuild quanta-blah.ebuild merge and then it finally builds and installs. ANd this was w/ a cvs build of kdelibs/kdebase out of cvs as of Aug 2 12pm EST or so.
I still can't reproduce it. But since we're dealing with all kinds of alpha-status prereleases here that may not be so surprising. I'll make a cvs ebuild for quanta soon btw, and then you can se if these changes are still required for you.
I am having the same problem when tying to merge quanta-3.0_pre1 against kdelibs 3.0.2 ... I tried the -j1 option and it still fails the exact same way. I would like to solve this problem if anyone has any ideas please post them :)
This may have been due to the widgetdir bug I fixed a few days ago. Please try to emerge quanta again now. John: there's now a quanta cvs ebuild in the latest kde-csv tarball. If 3.0_pre fails for you, please try that as well.
Both these problems are, I believe, variations on the widgetdir issue and thus have been fixed.